Skip to content

Commit 5c01809

Browse files
authored
Merge pull request #48 from Quantco/limit-workflow-permissions
Limit workflows permissions to necessary set
2 parents f031f80 + e9042e1 commit 5c01809

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

template/.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1517
with:

template/.github/workflows/ci.yml.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
pre-commit:
1619
timeout-minutes: 30

0 commit comments

Comments
 (0)