Skip to content

Commit

Permalink
ci: move permissions to job level (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike authored Jun 3, 2024
1 parent 8c03b26 commit a73486d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ on:
branches: [ main ]
permissions:
contents: read
security-events: write

jobs:
build:
runs-on: ubuntu-latest

permissions:
security-events: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
Expand Down

0 comments on commit a73486d

Please sign in to comment.