actions-marketplace-validations/ghcr.io Container Cleanup

A GitHub Action that cleans up old ghcr.io Containers

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Apr 4, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/davahome_ghcr-cleanup@5bdf8f643f4ac8cb6e73732abe7932da5f4113c1 # no releases — HEAD as of 2026-07-10

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

namedescriptionrequireddefault
tokenA github token with the read:packages, write:packages and delete:packages permissionsyes
packageName of the package (e.g. for "ghcr.io/example/container" the packageName is "container")yes
ownerThe owner of the package (for regular users this value is always "user" and NOT your name, for organizations this value is "orgs/<Name of Org>")yes
delete_taggedDelete all TAGGED containers (1/0)no1
keep_versionsThe minimum amount of versions to keepno30
minimum_daysThe minimum age (in days) that an image has to be untouchedno14
skip_tagsA comma separated list of Tags that should be skippednolatest
delete_untaggedDelete all untagged containers (1/0)no0
keep_versions_untaggedThe minimum amount of untagged versions to keepno14

no outputs