Limit permissions of govulncheck workflow
This commit is contained in:
parent
bd6b862b63
commit
4da24b8a0c
2 changed files with 3 additions and 2 deletions
3
.github/workflows/govulncheck.yml
vendored
3
.github/workflows/govulncheck.yml
vendored
|
|
@ -5,6 +5,9 @@ on:
|
|||
jobs:
|
||||
govulncheck:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -16,10 +16,8 @@ on:
|
|||
- go.sum
|
||||
- ".github/licenses.tmpl"
|
||||
- "script/licenses*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue