Fix permissions for Trivy GitHub workflow
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -100,6 +100,10 @@ jobs:
|
|||||||
|
|
||||||
dep-scan:
|
dep-scan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
needs: [ compile ]
|
needs: [ compile ]
|
||||||
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
|
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
|
||||||
steps:
|
steps:
|
||||||
|
Reference in New Issue
Block a user