Skip to content

Fix Docker workflow: run only on master push, update checkout to v6#45

Merged
tepickering merged 1 commit intomasterfrom
fix-docker-workflow
Feb 23, 2026
Merged

Fix Docker workflow: run only on master push, update checkout to v6#45
tepickering merged 1 commit intomasterfrom
fix-docker-workflow

Conversation

@tepickering
Copy link
Copy Markdown
Contributor

Problem

The Docker publish workflow runs on both push and pull_request events. GitHub doesn't pass repository secrets to PR workflow runs (security restriction), so the DOCKER_USERNAME/DOCKER_PASSWORD secrets are always empty on PRs, causing every PR check to fail with:

Unable to find the username. Did you set with.username?

Fix

  • Scope the trigger to push on master only — Docker image publishing only makes sense when code lands on the default branch, not on every PR
  • Update actions/checkout from v4 to v6 (supersedes dependabot PR Bump actions/checkout from 4 to 6 #41, which can be closed)

- Scope workflow trigger to push on master only (not pull_request).
  Secrets are unavailable in PR contexts so the publish step was
  always failing on PRs.
- Update actions/checkout from v4 to v6 (supersedes PR #41).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tepickering tepickering merged commit e953b64 into master Feb 23, 2026
@tepickering tepickering deleted the fix-docker-workflow branch February 23, 2026 19:54
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.

1 participant