Adjusted workflow permissions
Signed-off-by: Eddie Knight <knight@linux.com>
This commit is contained in:
3
.github/workflows/scan.yaml
vendored
3
.github/workflows/scan.yaml
vendored
@@ -10,7 +10,6 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
security-events: write # for codeQL to write security events
|
||||
|
||||
jobs:
|
||||
fossa:
|
||||
@@ -50,6 +49,8 @@ jobs:
|
||||
sarif_file: snyk.sarif
|
||||
|
||||
codeql:
|
||||
permissions:
|
||||
security-events: write # for codeQL to write security events
|
||||
name: CodeQL
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor != 'dependabot[bot]'
|
||||
|
||||
Reference in New Issue
Block a user