Skip to content

Commit a27888b

Browse files
committed
(maint) Add GitHub token permissions for workflows
Signed-off-by: Varun Sharma <[email protected]>
1 parent 243bc9d commit a27888b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/checks.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: [main]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
checks:
1215
name: ${{ matrix.cfg.check }}

.github/workflows/rspec_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: [main]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
rspec_tests:
1215
name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }})

.github/workflows/snyk_monitor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
permissions:
8+
contents: read
9+
710
jobs:
811
snyk_monitor:
912
if: ${{ github.repository_owner == 'puppetlabs' }}

0 commit comments

Comments
 (0)