Skip to content

Add secure GHCR container publishing - #195

Open
gonced8 wants to merge 2 commits into
Taxuspt:mainfrom
gonced8:feat/ghcr-publishing
Open

Add secure GHCR container publishing#195
gonced8 wants to merge 2 commits into
Taxuspt:mainfrom
gonced8:feat/ghcr-publishing

Conversation

@gonced8

@gonced8 gonced8 commented Jul 20, 2026

Copy link
Copy Markdown

What changed

  • build the existing Dockerfile for linux/amd64 and linux/arm64 on pull requests
  • publish latest and sha-<short-sha> images to GHCR after pushes to main
  • add OCI source and revision labels plus GitHub Actions caching

Security

  • keep pull-request builds in a read-only workflow with no package permission
  • isolate packages: write in the main-push publishing workflow
  • pin every referenced Action to a full commit SHA
  • use the repository-scoped automatic GITHUB_TOKEN; no custom secrets are required

Validation

  • parsed both workflow files as YAML
  • verified all Action references use full SHAs
  • verified PR builds cannot publish and have no packages: write permission
  • verified the publish workflow targets both architectures and only runs on main pushes

@gonced8
gonced8 marked this pull request as ready for review July 20, 2026 16:50
@gonced8
gonced8 force-pushed the feat/ghcr-publishing branch 3 times, most recently from cd66d87 to b5875ca Compare August 3, 2026 16:35
@gonced8
gonced8 force-pushed the feat/ghcr-publishing branch from b5875ca to 0dd45ce Compare August 3, 2026 16:47
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