Skip to content

Commit

Permalink
use PAT for pruning images
Browse files Browse the repository at this point in the history
According to
snok/container-retention-policy#27 (comment)
a PAT is needed.
  • Loading branch information
makkes committed Feb 10, 2023
1 parent 4bd0b04 commit 9d6c285
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/image-retention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:

jobs:
prune-images:
env:
HTTPX_LOG_LEVEL: trace
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: prune all images, keeping the two most recent ones
uses: snok/container-retention-policy@v1
with:
image-names: cerebro
cut-off: 1 second ago UTC
cut-off: 1 day ago UTC
timestamp-to-use: created_at
account-type: personal
keep-at-least: 2
filter-include-untagged: false
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PRUNE_TOKEN }}

0 comments on commit 9d6c285

Please sign in to comment.