Skip to content

Commit ca8889d

Browse files
authored
Merge pull request #8924 from varunsh-coder/token-perms
(maint) ci: add GitHub token permissions for workflows
2 parents ed44890 + a27888b commit ca8889d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/checks.yaml

+3
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

+3
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

+3
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)