machineswithvision/Container Retention Policy

Create a retention policy for your GHCR hosted container images

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
account-typeThe type of account. Can be either 'org' or 'personal'.yes
org-nameThe name of the organization. Only required if the account type is 'personal'.no""
image-namesImage name to delete. Supports passing several names as a comma-separated list.yes
timestamp-to-useWhether to use updated_at or created_at timestamps. Defaults to updated_at.yesupdated_at
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 images to keep no matter what. Defaults to 0 which means you might delete everythingno0
filter-tagsComma-separated list of tags to consider for deletion. Supports Unix-shell style wildcardsno
filter-include-untaggedWhether to consider untagged images for deletion.notrue
dry-runDo not actually delete images. Print output showing what would have been deleted.nofalse
token-typeThe token type. Can be either 'pat' or 'github-token'. If 'github-token', then image-names must the package name of repository from where this action is invoked.nopat
namedescription
needs-github-assistanceComma-separated list of image names and tags, for image versions that are public and have more than 5000 downloads.
deletedComma-separated list of image names and tags, for image versions that were deleted during the run.
failedComma-separated list of image names and tags, for image versions that we failed to delete during the run, for an unknown reason.