actions-marketplace-validations/ghcr.io Container Cleanup
A GitHub Action that cleans up old ghcr.io Containers
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Apr 4, 2025
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/davahome_ghcr-cleanup@5bdf8f643f4ac8cb6e73732abe7932da5f4113c1 # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| token | A github token with the read:packages, write:packages and delete:packages permissions | yes | — |
| package | Name of the package (e.g. for "ghcr.io/example/container" the packageName is "container") | yes | — |
| owner | The 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_tagged | Delete all TAGGED containers (1/0) | no | 1 |
| keep_versions | The minimum amount of versions to keep | no | 30 |
| minimum_days | The minimum age (in days) that an image has to be untouched | no | 14 |
| skip_tags | A comma separated list of Tags that should be skipped | no | latest |
| delete_untagged | Delete all untagged containers (1/0) | no | 0 |
| keep_versions_untagged | The minimum amount of untagged versions to keep | no | 14 |
Outputs
no outputs