The Automatic token authentication page uses a GITHUB_TOKEN
secret, which should, as its name suggests, remains... a secret.
At the start of each workflow run, GitHub automatically creates a unique GITHUB_TOKEN
secret to use in your workflow.
You can use the GITHUB_TOKEN
to authenticate in a workflow run.
The GITHUB_TOKEN
secret is a GitHub App installation access token.
You can use the installation access token to authenticate on behalf of the GitHub App installed on your repository.
The token's permissions are limited to the repository that contains your workflow.
So you should not need to use your own GitHub token, only the one generated by GitHub Action.