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

feat!: migrate clean-ghcr workflow to use GH token #50

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

erikgb
Copy link
Member

@erikgb erikgb commented Dec 8, 2023

Since https://github.com/snok/container-retention-policy/releases/tag/v2.2.0 (snok/container-retention-policy#70) https://github.com/snok/container-retention-policy supports using GH token to authenticate. This allows us to avoid using PATs.

Using the GH token only works for a single image matching the repository that runs the action. This is also how we use this action right now, ref. https://github.com/search?q=org%3Astatnett%20clean-ghcr.yaml&type=code

BREAKING CHANGE: Calling workflows have to remove use of removed parameters

@erikgb erikgb requested a review from a team as a code owner December 8, 2023 17:42
@mikaelol
Copy link
Contributor

Depends on #49

@erikgb erikgb merged commit 8de53b8 into statnett:main Dec 11, 2023
2 checks passed
@statnett-bot statnett-bot bot mentioned this pull request Dec 11, 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

Successfully merging this pull request may close these issues.

2 participants