Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix flash_analysis workflow on private forks #24404

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

haumarco
Copy link
Contributor

Solved Problem

This previous change explicitly set pull-requests: write and issues: write, but when defining custom permissions, GitHub removes all default permissions unless explicitly specified. This caused the workflow to fail with "Repository not found" on private forks because contents: read was missing, preventing repository access for actions like checkout and git clone.

@mrpollo
Copy link
Contributor

mrpollo commented Feb 24, 2025

Nice catch thanks, we are still working throughout all the failures this workflows has had in the last few weeks, hoping to get this working well everytime

@mrpollo mrpollo merged commit 689db41 into main Feb 24, 2025
63 checks passed
@mrpollo mrpollo deleted the fix_flash_analysis_on_private_forks branch February 24, 2025 15:33
@dakejahl
Copy link
Contributor

Unfortunately this doesn't fix the issue

@haumarco
Copy link
Contributor Author

@dakejahl what error do you get? I tested it on our private fork and it fixed the issue for me.

@dakejahl
Copy link
Contributor

@dakejahl what error do you get? I tested it on our private fork and it fixed the issue for me.

The error is the same. I disabled the check for now, but every PR from a fork has the same error.

Resource not accessible by integration

Everything I've read online suggests using pull_request_target, with many mentions about commenting on PRs specifically. Sounds like Ramon will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants