Specify permissions for GitHub Actions workflows.

This commit is contained in:
Joshua Bronson 2022-12-24 10:25:58 -05:00
parent b0cd2a4f07
commit ae9f10bc7b
5 changed files with 16 additions and 0 deletions

View File

@ -25,3 +25,6 @@ jobs:
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
with:
extra_args: --verbose
permissions:
contents: read

View File

@ -20,3 +20,6 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
permissions:
contents: read

View File

@ -32,3 +32,6 @@ jobs:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
verbose: true
permissions:
contents: read

View File

@ -60,3 +60,6 @@ jobs:
verbose: true
files: ./coverage.xml
fail_ci_if_error: false # https://github.com/codecov/codecov-action/issues/557
permissions:
contents: read

View File

@ -21,3 +21,7 @@ jobs:
with:
token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }}
update_version_with: release-commit-sha
permissions:
contents: read
pull-requests: write