peterstolz/ContainerCrop
Delete unwanted GHCR images in your CI
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 18, 2026
- License
- None
Pinned Snippet
uses: peterstolz/containercrop@b041efa0d4da17fbfb2caa39cbc6b67f3c6abb88 # v1.0.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| image-name | Image name to delete. | yes | — |
| cut-off | The cut-off for which to delete images older than. For example '2 days ago UTC'. Timezone is required. | yes | — |
| token | Personal access token with read and delete scopes. | yes | — |
| untagged-only | Restrict deletions to images without tags. | no | false |
| skip-tags | Restrict deletions to images without specific tags. Supports Unix-shell style wildcards | no | — |
| keep-at-least | How many matching images to keep no matter what. Defaults to 0 which means you would delete all matching images. | no | 0 |
| filter-tags | Comma-separated list of tags to consider for deletion. Supports Unix-shell style wildcards | no | — |
| dry-run | Do not actually delete images. Print output showing what would have been deleted. | no | false |
Outputs
no outputs