peterstolz/ContainerCrop

Delete unwanted GHCR images in your CI

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 18, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: peterstolz/containercrop@b041efa0d4da17fbfb2caa39cbc6b67f3c6abb88 # v1.0.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
image-nameImage name to delete.yes
cut-offThe cut-off for which to delete images older than. For example '2 days ago UTC'. Timezone is required.yes
tokenPersonal access token with read and delete scopes.yes
untagged-onlyRestrict deletions to images without tags.nofalse
skip-tagsRestrict deletions to images without specific tags. Supports Unix-shell style wildcardsno
keep-at-leastHow many matching images to keep no matter what. Defaults to 0 which means you would delete all matching images.no0
filter-tagsComma-separated list of tags to consider for deletion. Supports Unix-shell style wildcardsno
dry-runDo not actually delete images. Print output showing what would have been deleted.nofalse

no outputs