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

Failures for GHCR prune task #950

Closed
esune opened this issue Dec 7, 2023 · 6 comments
Closed

Failures for GHCR prune task #950

esune opened this issue Dec 7, 2023 · 6 comments
Assignees

Comments

@esune
Copy link
Member

esune commented Dec 7, 2023

The GHA responsible for pruning old container images failed its execution. The error seems to be related to a malformed/missing token - see https://github.com/bcgov/traction/actions/runs/7095370789/job/19420872161

@rajpalc7
Copy link
Contributor

rajpalc7 commented Dec 7, 2023

#951 - Please refer to the PR in reference to this ticket

@rajpalc7
Copy link
Contributor

rajpalc7 commented Dec 7, 2023

https://github.com/bcgov/traction/actions/runs/7133186796/job/19425331189 - Successful workflow run.

Hi @esune, so https://github.com/snok/container-retention-policy/tree/main made some changes this morning and they want us to use token-type as github-token or PAT so i have made the new changes accordingly and our workflow is running successfully again.

@esune
Copy link
Member Author

esune commented Dec 7, 2023

https://github.com/bcgov/traction/actions/runs/7133186796/job/19425331189 - Successful workflow run.

Hi @esune, so https://github.com/snok/container-retention-policy/tree/main made some changes this morning and they want us to use token-type as github-token or PAT so i have made the new changes accordingly and our workflow is running successfully again.

Can we use a service token for the repository, rather than a PAT associated to your user?

@rajpalc7
Copy link
Contributor

rajpalc7 commented Dec 8, 2023

https://github.com/bcgov/traction/actions/runs/7135573072/job/19432583988 - looks like service token works only if there is single image name, it doesnt support multiple image names .

https://github.com/bcgov/traction/actions/runs/7135595743 - Successful run with single image name

@rajpalc7
Copy link
Contributor

rajpalc7 commented Dec 8, 2023

image

@esune
Copy link
Member Author

esune commented Dec 8, 2023

Resolved by #951

@esune esune closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants