Skip to content

Commit

Permalink
Explicitly define permissions for CodeQL jobs (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou authored Nov 6, 2023
1 parent 9e6e8d9 commit a384fcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: publish
on:
workflow_dispatch:
push:
branches:
- 'main'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
name: "CodeQL"

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
Expand All @@ -24,6 +25,11 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
statuses: write

strategy:
fail-fast: false
Expand Down

0 comments on commit a384fcb

Please sign in to comment.