mre-fog/GHCR Pruning

GitHub Action to prune/delete container versions from GitHub Container Registry (ghcr.io)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
tokenSecret access token with scopes `packages:read` and `packages:delete` and write permissions on the targeted containeryes
organizationOrganisation to which the container belongsno
userUser to which the container belongsno
containerName of the container to pruneyes
dry-runWhen `true` prints out matching container versions without pruning themnofalse
older-thanMinimum age in days of container versions to pruneno0
keep-lastCount of most recent, matching containers to exclude from pruningno0
keep-tagsList of tags to exclude from pruning, one per line. Any version with at least one matching tag will be excluded. Matching is exact and case-sensitive. no
keep-tags-regexesList of regular expressions for tags to exclude from pruning, one per line. Each expression will be evaluated against all tags of a version. Any version with at least one tag matching the expression will be excluded from pruning. no
untaggedWhether untagged container versions should be prunednofalse
tag-regexRegular expression matching tagged container versions which should be prunedno

no outputs