-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: fix failing docker CI due to permission issues on PRs #94
Conversation
…n them on merge events
[nit] I think the PR title may have meant to use the conventional commit prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untested but roughly LGTM
Co-authored-by: Rootul P <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Overview
Closes #93
This change skips running the dockerhub and scaleway runs when it is a PR.
We use org level secrets for logging into dockerhub and scaleway, and these secretes are only accessible by native branches, or users with write access.
This means that on PRs from forks or non team members, the runs would fail.
These still pass on main on merge, because at that point, the permission issue is no longer present.
Additional this change removes the appended hash to the action run, which causes issues with linking the action to the branch protection rules.
Verified and tested: https://github.com/celestiaorg/.github/actions/runs/7790602743
Checklist