gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75k stars 7.47k forks source link

Fix: swap GITHUB_TOKEN for GH_PAT #12769

Closed webgtx closed 1 month ago

webgtx commented 1 month ago

You can't use default GITHUB_TOKEN if you want to push container to ghcr, you need to use Personal Access Token instead.

Don't forget to add a new secret, and configure scopes for your personal token.

CLAassistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

bep commented 1 month ago

Thanks, but your statement is not true. I have pushed several images with the default token; the problem is that the workflow does not trigger on tags produced by the GitHub release UI.

webgtx commented 1 month ago

@bep You're right, sorry for the false PR. If think you need PAT only for private registries/repositories