Declare workflow permissions (#482)
This commit is contained in:
parent
7b53cdc2a3
commit
d0822ad9bf
3 changed files with 12 additions and 0 deletions
4
.github/workflows/draft-release.yml
vendored
4
.github/workflows/draft-release.yml
vendored
|
|
@ -13,6 +13,10 @@ on:
|
|||
- 'minor'
|
||||
- 'patch'
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
pull-requests: 'write'
|
||||
|
||||
jobs:
|
||||
draft-release:
|
||||
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude
|
||||
|
|
|
|||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -6,6 +6,10 @@ on:
|
|||
- 'main'
|
||||
- 'release/**/*'
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
packages: 'write'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude
|
||||
|
|
|
|||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -33,6 +33,10 @@ defaults:
|
|||
run:
|
||||
shell: 'bash'
|
||||
|
||||
permissions:
|
||||
contents: 'read'
|
||||
statuses: 'write'
|
||||
|
||||
jobs:
|
||||
unit:
|
||||
name: 'unit'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue