Skip to content

Commit 3b60c47

Browse files
author
CarrJ
committed
- add in permissions for the jobs
1 parent c1b8aa8 commit 3b60c47

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ on:
88
jobs:
99
dependency-review:
1010
uses: ./.github/workflows/dependency-review.yaml
11+
permissions:
12+
contents: read
1113

1214
test:
1315
needs: dependency-review
1416
uses: ./.github/workflows/test.yaml
17+
permissions:
18+
contents: read # Allows the action to check out your repository code
19+
pull-requests: write # Allows the action to comment on or update the Dependabot PR
20+
statuses: write # Allows the action to post pass/fail build statuses
1521

1622
check-gem-version:
1723
needs: test
@@ -22,7 +28,7 @@ jobs:
2228
if: github.event_name == 'push' && needs.check-gem-version.outputs.version-changed == 'true'
2329
with:
2430
new-gem-version: true
25-
uses: ./.github/workflows/publish.yaml
31+
uses: ./.github/workflows/publish-gem.yaml
2632

2733
check-documentation-updates:
2834
needs: publish-gem
@@ -35,4 +41,8 @@ jobs:
3541
publish-github-pages:
3642
needs: check-documentation-updates
3743
if: github.event_name == 'push' && needs.check-documentation-updates.outputs.documentation-updated == 'true'
38-
uses: ./.github/workflows/publish-github-pages.yaml
44+
uses: ./.github/workflows/publish-github-pages.yaml
45+
permissions:
46+
contents: read
47+
pages: write
48+
id-token: write

0 commit comments

Comments
 (0)