Open sando38 opened 1 year ago
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.
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:
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.