Give GITHUB_TOKEN just enough permissions to run the workflow

This commit is contained in:
Sajith Sasidharan 2022-11-26 18:18:05 -06:00
parent ac524a3077
commit 562111012e
No known key found for this signature in database
GPG Key ID: 0C6DA6A29D5F02BA

View File

@ -6,6 +6,16 @@ on:
- "master"
pull_request:
# At the start of each workflow run, GitHub creates a unique
# GITHUB_TOKEN secret to use in the workflow. It is a good idea for
# this GITHUB_TOKEN to have the minimum of permissions. See:
#
# - https://docs.github.com/en/actions/security-guides/automatic-token-authentication
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
#
permissions:
contents: read
# Control to what degree jobs in this workflow will run concurrently with
# other instances of themselves.
#