Declare workflow permissions (#482)

This commit is contained in:
Seth Vargo 2025-04-25 08:42:57 -04:00 committed by GitHub
parent 7b53cdc2a3
commit d0822ad9bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,10 @@ on:
- 'minor' - 'minor'
- 'patch' - 'patch'
permissions:
contents: 'read'
pull-requests: 'write'
jobs: jobs:
draft-release: draft-release:
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude

View File

@ -6,6 +6,10 @@ on:
- 'main' - 'main'
- 'release/**/*' - 'release/**/*'
permissions:
contents: 'read'
packages: 'write'
jobs: jobs:
release: release:
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude

View File

@ -33,6 +33,10 @@ defaults:
run: run:
shell: 'bash' shell: 'bash'
permissions:
contents: 'read'
statuses: 'write'
jobs: jobs:
unit: unit:
name: 'unit' name: 'unit'