Skip to content

fix: deploy_image output was silently dropped (secret in output value) - #39

Merged
rejas merged 1 commit into
prereleasefrom
fix/deploy-image-secret-output
Aug 18, 2026
Merged

fix: deploy_image output was silently dropped (secret in output value)#39
rejas merged 1 commit into
prereleasefrom
fix/deploy-image-secret-output

Conversation

@rejas

@rejas rejas commented Aug 18, 2026

Copy link
Copy Markdown
Member

Summary

Fast-follow to #38. The very first deploy it triggered (run 32130766048) shows GitHub Actions dropping the deploy_image job output:

##[warning]Skip output 'deploy_image' since it may contain secret.

GitHub Actions silently withholds any job/step output whose value contains a secret (CONTAINER_REGISTRY_ENDPOINT was embedded in deploy_image). That leaves needs.docker-build.outputs.deploy_image empty in docker-push-deploy, so the sha-tagged docker push and both PATCH deploy bodies were reading a blank image reference.

Fix: stop passing it through $GITHUB_OUTPUT at all. secrets.CONTAINER_REGISTRY_ENDPOINT and github.sha are both directly available in every job already, so the image ref is reconstructed inline wherever it's needed instead of crossing the job boundary as an output.

Note: that same deploy run also failed earlier at the Scaleway login step with a 404 api_key not_found — that's a separate, unrelated issue (the configured SCALEWAY_API_KEY secret doesn't correspond to a live Scaleway API key) that needs fixing on the Scaleway/secrets side, not in this workflow.

Test plan

  • Confirm SCALEWAY_API_KEY is fixed on the Scaleway/secrets side first
  • After merge, confirm a prerelease push shows both docker push lines succeed and the PATCH body contains a real image ref (not blank)

GitHub Actions silently drops any job/step output whose value contains a
secret (CONTAINER_REGISTRY_ENDPOINT here) -- confirmed in the #38 deploy run:
"Skip output 'deploy_image' since it may contain secret." That made
`needs.docker-build.outputs.deploy_image` empty in docker-push-deploy, so the
sha-tagged push and both PATCH deploy calls were reading a blank image ref.

Fix: stop routing it through $GITHUB_OUTPUT entirely and reconstruct
`${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/my-docker-image:${{ github.sha }}`
inline wherever it's used -- secrets and github.sha are both available
directly in every job, no cross-job output needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rejas
rejas merged commit d355b85 into prerelease Aug 18, 2026
5 checks passed
@rejas
rejas deleted the fix/deploy-image-secret-output branch August 18, 2026 11:24
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