Skip to content

fix: add GHCR auth and fix idempotency check in deploy-artifact publish#47

Merged
jorisjonkers-dev-agents[bot] merged 1 commit into
mainfrom
fix/deploy-artifact-publish-auth-and-idempotency
Jul 9, 2026
Merged

fix: add GHCR auth and fix idempotency check in deploy-artifact publish#47
jorisjonkers-dev-agents[bot] merged 1 commit into
mainfrom
fix/deploy-artifact-publish-auth-and-idempotency

Conversation

@jorisjonkers-dev-agents

Copy link
Copy Markdown
Contributor

Two issues in publish.sh:

  1. No GHCR auth before oras push / cosign sign. GITHUB_TOKEN/GITHUB_ACTOR are now passed explicitly via env to publish.sh, which logs in to ghcr.io via both oras and docker at startup.

  2. The idempotency check matched the container image tag rather than the deploy artifact (both share the same OCI ref). Adding --media-type to the oras manifest fetch restricts the match to deploy artifacts only.

Also removes the syft SBOM step: SBOM is only meaningful for container images (handled in container-publish.yml), not for YAML/tar deploy artifacts.

Two issues in publish.sh:

1. No GHCR authentication before oras push / cosign sign. GITHUB_TOKEN
   and GITHUB_ACTOR are now passed explicitly via env to publish.sh, which
   logs in to ghcr.io via both oras and docker at startup.

2. The idempotency check (oras manifest fetch) matched the container image
   tag rather than the deploy artifact, because both share the same OCI ref
   (ghcr.io/<owner>/<name>:<version>). Adding --media-type to the fetch call
   restricts the match to deploy artifacts only, preventing false-positive
   idempotency hits that silently used the container image digest as the
   artifact digest.

Also removes the syft SBOM step: SBOM is only meaningful for container images
(handled in container-publish.yml), not for YAML/tar deploy artifacts.
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot added the type: bug Something is broken or behaving incorrectly. label Jul 9, 2026
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot merged commit 1dcc8d0 into main Jul 9, 2026
5 checks passed
@jorisjonkers-dev-agents jorisjonkers-dev-agents Bot deleted the fix/deploy-artifact-publish-auth-and-idempotency branch July 9, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something is broken or behaving incorrectly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant