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.pub But 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
-
Trying to create self-hosted CI/CD pipeline.
composer install
failedFailed to download phpstan/phpstan from dist: Could not authenticate against github.com Now trying to download from source
At 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
composer diagnose
What is wrong here? Same token works on other machine, and
composer diagnose
does not complain there.EDIT: also tried
composer self-update --update-keys
before diagnostics.Beta Was this translation helpful? Give feedback.
All reactions