Skip to content

Commit

Permalink
ci: apply correct permissions to codeql job
Browse files Browse the repository at this point in the history
Also bumps the codeql action to v3 as now deprecated

Signed-off-by: Simon Emms <[email protected]>
  • Loading branch information
mrsimonemms committed Sep 27, 2024
1 parent 2e0b022 commit e0c7742
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- release-*
workflow_dispatch: {}

permissions:
contents: read
security-events: write

jobs:
detect-noop:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -34,9 +38,9 @@ jobs:
submodules: true

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: go

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

0 comments on commit e0c7742

Please sign in to comment.