Skip to content

How to verify that it is GITHUB_TOKEN? #25411

Answered by BrightRan
yi-Xu-0100 asked this question in Actions
Discussion options

You must be logged in to vote

@yi-Xu-0100,

There is no any default environment variable named “ACTIONS_RUNTIME_TOKEN” for the GITHUB_TOKEN secret.
If you want to access the GITHUB_TOKEN secret via an environment variable, you need to map it as an environment variable in the workflow.
For example:

env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 

The GITHUB_TOKEN secret has the following usage limitation:

To verify whether a token is the GITHUB_TOKEN,…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants