ci: define minimal permissions to github workflows (#1295)
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
This commit is contained in:
parent
f6bb79e03d
commit
553eb4c7a8
|
@ -20,6 +20,10 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '31 21 * * 6'
|
- cron: '31 21 * * 6'
|
||||||
|
|
||||||
|
# Minimal permissions to be inherited by any job that don't declare it's own permissions
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|
|
@ -7,6 +7,10 @@ on:
|
||||||
- main
|
- main
|
||||||
- 'release-*'
|
- 'release-*'
|
||||||
|
|
||||||
|
# Minimal permissions to be inherited by any job that don't declare it's own permissions
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Tests
|
name: Tests
|
||||||
|
@ -39,4 +43,4 @@ jobs:
|
||||||
|
|
||||||
- name: Run style and unused
|
- name: Run style and unused
|
||||||
if: ${{ matrix.go_version == '1.20' }}
|
if: ${{ matrix.go_version == '1.20' }}
|
||||||
run: make style unused
|
run: make style unused
|
||||||
|
|
Loading…
Reference in New Issue