vlaurin/GHCR Pruning
GitHub Action to prune/delete container versions from GitHub Container Registry (ghcr.io)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Secret access token with scopes `packages:read` and `packages:delete` and write permissions on the targeted container | yes | — |
| organization | Organisation to which the container belongs, mutually exclusive with input `user` | no | — |
| user | User to which the container belongs, mutually exclusive with input `organization` | no | — |
| container | Name of the container to prune | yes | — |
| dry-run | When `true` prints out matching container versions without pruning them | no | false |
| older-than | Minimum age in days of container versions to prune | no | 0 |
| keep-last | Count of most recent, matching containers to exclude from pruning | no | 0 |
| keep-tags | List 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-regexes | List 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 | — |
| keep-younger-than | Minimum age in days of container versions that will be pruned | no | 0 |
| prune-tags-regexes | List of regular expressions for tags to include in 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 included in pruning. | no | — |
| prune-untagged | Whether untagged container versions should be pruned | no | false |
| untagged | Whether untagged container versions should be pruned | no | false |
| tag-regex | Regular expression matching tagged container versions which should be pruned | no | — |
Outputs
no outputs