Skip to content

Pin the GHCR cleanup action to a commit - #15

Merged
robertying merged 1 commit into
mainfrom
ci/pin-cleanup-action
Oct 26, 2026
Merged

robertying merged 1 commit into
mainfrom
ci/pin-cleanup-action

Conversation

@robertying

Copy link
Copy Markdown
Owner

Pins dataaxiom/ghcr-cleanup-action to commit d52806a0dc70b430571a37da1fde39733ffd640f (v1.2.2, the same code @v1 points to today) instead of the movable @v1 tag.

Why: the cleanup step runs in the image job, whose token can push to and delete from this repo's GHCR package. If the third-party author moved v1 to new code, that code could push its own :latest, and Watchtower would deploy it on the server within 10 minutes. A commit hash can't be repointed. The tradeoff is that updates need a deliberate bump of the hash. The GitHub and Docker actions keep their version tags, since they come from the parties that already host the code and the image. Same change as in cardinal.

🤖 Generated with Claude Code

Its job holds a token that can push to and delete from the package, and
Watchtower deploys :latest, so a moved v1 tag could ship someone else's image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robertying
robertying merged commit 3427291 into main Oct 26, 2026
2 checks passed
@robertying
robertying deleted the ci/pin-cleanup-action branch October 26, 2026 18:11
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