Use the job token as the default GITHUB_TOKEN
nhedger opened this issue · 0 comments
nhedger commented
Let's explore the possibility of using the job token (${{ github.token }}
) as the default value for the token
input.
inputs:
token:
description: GitHub Token
required: true
default: ${{ github.token }}
This would result in one less thing to consider when setting up the action, and we could remove the caveats section from the README.
To do
- Add a new
token
input toaction.yaml
- Set its default value to
${{ github.token }}
- Remove the caveats section from
README.md