unb-libraries/container-image-pruner

Safely prune old per-build container images from GHCR (deletes hash-time build tags and their orphaned child manifests; never touches text/branch tags or anything a retained image references).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
image-nameFull image reference ghcr.io/<owner>/<package>. Alternative to owner/package.no""
ownerRepository owner (used when image-name is not given).no""
packagePackage name (used with owner). Empty processes every package under the owner.no""
tokenGitHub token with read:packages (+ delete:packages unless dry-run).yes
older-than-daysDelete build images strictly older than this many days.no60
keep-at-leastAlways keep at least this many of the most-recent build images.no5
dry-runWhen true, only report the plan; delete nothing.nofalse
max-deleteAbort (delete nothing) if the plan exceeds this many deletions.no500
protect-subject-attestationsAlso protect subject-linked attestations of retained images (extra fetches).nofalse
read-concurrencyConcurrency for read/manifest requests.no8
delete-concurrencyConcurrency for DELETE requests (kept low for secondary rate limits).no3
owner-typeForce owner kind: user or org (default: auto-detect).no""
github-api-urlOverride the GitHub REST API base URL (GitHub Enterprise Server).no""
upload-audit-logUpload the plan (and audit JSONL, when executing) as a build artifact.notrue
artifact-nameName of the uploaded artifact.nocontainer-image-pruner-audit
artifact-retention-daysRetention for the uploaded artifact.no14
versionRelease tag of the binary to download (default: derived from the crate version).no""
binary-pathAdvanced/testing: run this local binary and skip the release download+verify.no""
namedescription
deletedNumber of versions actually deleted.
planned-deleteNumber of versions the plan would delete.
statusOverall run status: clean | degraded | errored | aborted.
summary-jsonPath to the JSON run summary (the plan/results).
audit-logPath to the JSONL audit log (present only when executing).