The oauth token for github.com seems invalid #806
Unanswered
liepumartins
asked this question in
Q&A / Help
Replies: 1 comment 2 replies
-
|
To fix the keys error, you can add this step before composer diagnose. - name: Add keys
run: |
sudo curl -o ~/.composer/keys.tags.pub -sL https://composer.github.io/releases.pub
sudo curl -o ~/.composer/dev.tags.pub -sL https://composer.github.io/snapshots.pubBut the invalid GitHub token error is not related to this, please recheck the token and the auth JSON you have saved in the secret. Also, since you are using a self-hosted runner, please specify env Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/7260138465/workflow |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to create self-hosted CI/CD pipeline.
composer installfailedFailed to download phpstan/phpstan from dist: Could not authenticate against github.com Now trying to download from sourceAt first I blamed gitea act_runner, because it sets GITHUB_TOKEN env variable. However passing COMPOSER_AUTH_JSON directly and verifying the contents concludes that I was wrong.
Debugging
{ "github-oauth": { "github.com": "ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } }composer diagnoseWhat is wrong here? Same token works on other machine, and
composer diagnosedoes not complain there.EDIT: also tried
composer self-update --update-keysbefore diagnostics.Beta Was this translation helpful? Give feedback.
All reactions