mirror of
https://github.com/google-github-actions/auth.git
synced 2026-06-06 00:17:04 +00:00
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'
|
- '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
|
||||||
|
|
|
||||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -33,6 +33,10 @@ defaults:
|
||||||
run:
|
run:
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: 'read'
|
||||||
|
statuses: 'write'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit:
|
unit:
|
||||||
name: 'unit'
|
name: 'unit'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue