From e6a4551f6a14cd6370acf52fba9b0d73ccd8525d Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Thu, 26 Sep 2024 16:08:39 +0200 Subject: [PATCH] workflows: use GITHUP_TOKEN for registry cleanup The container-retention-policy v2 supports the GITHUP_TOKEN which is recommended to use. Signed-off-by: Daniel Wagner --- .github/workflows/registry.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index b14f9c3..19ff651 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -14,13 +14,13 @@ jobs: uses: snok/container-retention-policy@v2 id: retention with: - image-names: linux-nvme* + image-names: * cut-off: One week ago UTC keep-at-least: 1 timestamp-to-use: updated_at skip-tags: latest account-type: personal - token: ${{ secrets.PAT }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Print Output run: |-