Skip to content

Commit ed3d4db

Browse files
authored
ci: use github.token for image retention (#128)
* ? * ci: use default github.token again --------- Co-authored-by: Andrey Kaipov <andreykaipov@users.noreply.github.com>
1 parent 521d68f commit ed3d4db

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/image-retention-policy.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,12 @@ jobs:
88
clean-ghcr:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: tibdex/github-app-token@v2
12-
id: generate-token
13-
with:
14-
app_id: ${{ secrets.CATHY_CLOUD_APP_ID }}
15-
private_key: ${{ secrets.CATHY_CLOUD_APP_PRIVATE_KEY }}
16-
1711
- name: Delete old images
18-
uses: snok/container-retention-policy@main
12+
uses: snok/container-retention-policy@v2
1913
with:
2014
account-type: personal
21-
token: ${{ steps.generate-token.outputs.token }}
15+
token-type: github-token
16+
token: ${{ github.token }}
2217
image-names: ${{ github.event.repository.name }}
2318
cut-off: one month ago EST
2419
untagged-only: true

0 commit comments

Comments
 (0)