Skip to content

Commit

Permalink
Refactor permissions to reduce attack surface
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalson authored Oct 16, 2024
1 parent af3a151 commit fa007a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ on:
- cron: '27 1 * * 0'

permissions:
actions: read
contents: read
security-events: write
statuses: read # Small reduction of attack
checks: read # Small reduction of attack
security-events: write # Small reduction of attack
deployments: read # Small reduction of attack

contents: read # Large reduction of attack
packages: read # Large reduction of attack
actions: none # Large reduction of attack

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down

0 comments on commit fa007a6

Please sign in to comment.