Explicitly add the contents: write permission for publishing releases. (#9617)

This commit is contained in:
Predrag Gruevski 2023-08-22 11:38:18 -04:00 committed by GitHub
parent c75e1aa5ed
commit a1e89aa8d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ jobs:
# Trusted publishing has to also be configured on PyPI for each package: # Trusted publishing has to also be configured on PyPI for each package:
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/ # https://docs.pypi.org/trusted-publishers/adding-a-publisher/
id-token: write id-token: write
# This permission is needed by `ncipollo/release-action` to create the GitHub release.
contents: write
defaults: defaults:
run: run:
working-directory: ${{ inputs.working-directory }} working-directory: ${{ inputs.working-directory }}