Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctr-actions: add a registry cleanup workflow #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sando38
Copy link
Collaborator

@sando38 sando38 commented Jun 13, 2023

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.

This action needs a personal access token with 'delete:package' capacity defined as a secret for this repository. Secret name is PAT_TOKEN
@sando38 sando38 added the enhancement New feature or request label Jun 17, 2023
@weiss weiss added the containers Issues related to our Docker containers label Jul 24, 2023
@mremond
Copy link
Member

mremond commented Jul 25, 2023

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
Copy link
Collaborator Author

sando38 commented Jul 25, 2023

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issues related to our Docker containers enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants