processone / eturnal

STUN / TURN standalone server
https://eturnal.net
Apache License 2.0
225 stars 22 forks source link

ctr-actions: add a registry cleanup workflow #40

Open sando38 opened 1 year ago

sando38 commented 1 year ago

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.

mremond commented 11 months 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.

sando38 commented 11 months 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.

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: