Skip to content

prevent forks from trying and failing to deploy to GHCR#5768

Merged
jakecoffman merged 1 commit intomainfrom
jakecoffman/dont-try-to-deploy-forks
Sep 21, 2022
Merged

prevent forks from trying and failing to deploy to GHCR#5768
jakecoffman merged 1 commit intomainfrom
jakecoffman/dont-try-to-deploy-forks

Conversation

@jakecoffman
Copy link
Copy Markdown
Member

@jakecoffman jakecoffman commented Sep 21, 2022

Another attempt to prevent forks from trying to deploy, which will fail. Previous attempt reverted in #5711.

I found a fork boolean in the payload so this seems to be the way to go. If the run is found to be a fork, it sets DECISION to FORK which is not APPROVED and so it skips the rest of the steps.

Dependabot PRs are not considered forks.

@jakecoffman jakecoffman requested a review from a team as a code owner September 21, 2022 14:47
@jakecoffman jakecoffman merged commit 35d5a78 into main Sep 21, 2022
@jakecoffman jakecoffman deleted the jakecoffman/dont-try-to-deploy-forks branch September 21, 2022 15:02
@pavera pavera mentioned this pull request Oct 31, 2022
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.

2 participants