Problem
Fork PRs can currently reach the build-and-push-image workflow and fail at the Quay authentication step because repository registry credentials are not available in the fork context.
The observed failure is:
Username and password required
This was seen in:
The failure appears to be independent of the contributor's code changes. In #887, the Quay failure was also identified as a registry-credentials issue for a fork-sourced workflow run, and the PR was considered okay to merge despite the red check.
Why this is a problem
For external contributors, a red CI check caused by unavailable registry credentials is misleading. It makes it harder to tell whether the PR itself is valid and can discourage external contributions.
The registry publishing step also has a different purpose from normal PR validation: PR CI should primarily validate the submitted code, while publishing an image requires trusted registry credentials.
Expected behavior
Fork PRs should continue to receive the normal build/test/lint validation without requiring Quay credentials. The registry-dependent publishing step should only run when the workflow has the required credentials/permissions.
Two possible approaches are:
-
Build the image but do not push it for fork PRs.
- Keeps Docker image build validation for contributors.
- Avoids the Quay login/push step when credentials are unavailable.
-
Separate image publishing from normal PR validation.
- PR workflows validate the code/image build without publishing.
- A trusted workflow (for example, on the main/release path) handles Quay authentication and publishing.
Option 1 may be the smallest change, while option 2 may provide a cleaner long-term separation between PR validation and artifact publishing. The existing workflow dependencies can determine which approach fits best.
Related PRs
Goal
Remove the misleading registry-credential failure from fork PR validation while preserving useful CI coverage and keeping Quay credentials restricted to trusted workflow contexts.
Problem
Fork PRs can currently reach the
build-and-push-imageworkflow and fail at the Quay authentication step because repository registry credentials are not available in the fork context.The observed failure is:
This was seen in:
build-and-push-imagefails during Quay loginThe failure appears to be independent of the contributor's code changes. In #887, the Quay failure was also identified as a registry-credentials issue for a fork-sourced workflow run, and the PR was considered okay to merge despite the red check.
Why this is a problem
For external contributors, a red CI check caused by unavailable registry credentials is misleading. It makes it harder to tell whether the PR itself is valid and can discourage external contributions.
The registry publishing step also has a different purpose from normal PR validation: PR CI should primarily validate the submitted code, while publishing an image requires trusted registry credentials.
Expected behavior
Fork PRs should continue to receive the normal build/test/lint validation without requiring Quay credentials. The registry-dependent publishing step should only run when the workflow has the required credentials/permissions.
Two possible approaches are:
Build the image but do not push it for fork PRs.
Separate image publishing from normal PR validation.
Option 1 may be the smallest change, while option 2 may provide a cleaner long-term separation between PR validation and artifact publishing. The existing workflow dependencies can determine which approach fits best.
Related PRs
Goal
Remove the misleading registry-credential failure from fork PR validation while preserving useful CI coverage and keeping Quay credentials restricted to trusted workflow contexts.