Skip to content

ci: skip DockerHub login on pull request builds - #64

Merged
beevelop merged 2 commits into
latestfrom
copilot/skip-dockerhub-login-for-pr-pipelines
Aug 3, 2026
Merged

ci: skip DockerHub login on pull request builds#64
beevelop merged 2 commits into
latestfrom
copilot/skip-dockerhub-login-for-pr-pipelines

Conversation

Copilot AI commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Dependabot-authored PRs have no access to repository secrets, so the docker/login-action step failed with Error: Username and password required. PR builds never push images, so the login is unnecessary there.

Changes

  • Gate the "Login to DockerHub" step on github.event_name != 'pull_request'
  • Remove the Docker Scout "Compare to deployed image" step, which only ran on PRs and required DockerHub authentication

The build step already used push: ${{ github.event_name != 'pull_request' }}, so PR builds continue to build (but not push) images.

@beevelop
beevelop marked this pull request as ready for review August 3, 2026 13:45
@beevelop
beevelop merged commit 396457d into latest Aug 3, 2026
1 check passed
@beevelop
beevelop deleted the copilot/skip-dockerhub-login-for-pr-pipelines branch August 3, 2026 13:45
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