Skip to content

Commit

Permalink
Merge pull request #75 from pnacht/token-permissions
Browse files Browse the repository at this point in the history
Set minimal workflow permissions
  • Loading branch information
DPJacques authored Oct 2, 2023
2 parents 8df7e06 + 91f3e3b commit 7bed6a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [master]
pull_request:

permissions:
contents: read

jobs:
test:
name: Test
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ on:
schedule:
- cron: '27 12 * * 0'

permissions:
contents: read

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
Expand Down

0 comments on commit 7bed6a6

Please sign in to comment.