eturnal icon indicating copy to clipboard operation
eturnal copied to clipboard

ctr-actions: add a registry cleanup workflow

Open sando38 opened this issue 2 years ago • 2 comments

This action needs a personal access token with 'delete:package' capacity defined as a secret for this repository. Secret name is PAT_TOKEN .

This will delete all test/ edge container images which have no image tag anymore. It does not delete the released images.

sando38 avatar Jun 13 '23 17:06 sando38

Hi, I am trying to set that up, but I do not see such a permission "delete:package". The list is here: https://docs.github.com/en/rest/overview/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28

Please, also note that fine-grained tokens will have to be updated every year, that's the longest possible duration.

mremond avatar Jul 25 '23 07:07 mremond

Hi, I am trying to set that up, but I do not see such a permission "delete:package". The list is here: https://docs.github.com/en/rest/overview/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28

Please, also note that fine-grained tokens will have to be updated every year, that's the longest possible duration.

Thank you for the quick reply.

Currently, it seems it is only supported via the classic token. https://github.com/orgs/community/discussions/36441#discussion-4480575

As integrating this is not mission critical (rather a hygiene measure), we can leave the PR open or label it as a draft, and come back to it, once fine grained access tokens support managing github package permissions.

If it is too much hassle updating the PATs once a year, I am fine with closing the PR entirely :+1:

sando38 avatar Jul 25 '23 08:07 sando38