Skip to content

Skip PR image push when secrets are unavailable - #1008

Open
leighmcculloch wants to merge 2 commits into
mainfrom
dependabot-builds-no-secrets-6hj4vb
Open

leighmcculloch wants to merge 2 commits into
mainfrom
dependabot-builds-no-secrets-6hj4vb

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What

Skip the image push and registry action test for pull requests whose builds can't access repository secrets, matching how fork PRs are handled.

Why

Dependabot PRs come from this repo but only receive Dependabot secrets, so the push falls back fails the build. We should just skip the build if there are no secrets on pull requests.

Note that we could also address this by not pushing when the pr author is dependabot, but secrets do become part of the build if a maintainer commits to the dependabot branch and so that change would prevent push from working then unnecessarily, hence this approach.

See the following PR to see how the failures occur:

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Oct 23, 2026
@leighmcculloch
leighmcculloch requested a review from a team October 23, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog (Not Ready)

Development

Successfully merging this pull request may close these issues.

1 participant