Skip to content

Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable #123735

Answered by Sonichigo
Sonichigo asked this question in Actions
Discussion options

You must be logged in to vote

So wworkflow sets permissions at the workflow-level and job-level. With permissions, there is no inheritance of scopes from level to level - so any scopes not configured at the relevant level are set to none.

At the workflow-level, write for contents, pages, and id-token is set. But, at the job-level only contents: read and pull-requests: write are set, so that is all that GITHUB_TOKEN grants when passed to your action.

Therefore I had to consolidate the two permissions scopes and set to a single level.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sonichigo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Show & Tell
1 participant