Skip to content

Commit

Permalink
update GHA permissions and env
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell authored Sep 13, 2024
1 parent 8b9955a commit b6ead36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/check-all-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
checks: read
contents: read
issues: write
pull-requests: read
pull-requests: write

jobs:
check-for-absolute-urls:
Expand Down Expand Up @@ -48,6 +48,8 @@ jobs:
pull-request: ${{ github.event.pull_request.number }}
body: ${{ steps.absolute-urls.outputs.body }}
body-includes: absolute URLs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: report success
run: |
Expand Down Expand Up @@ -112,3 +114,5 @@ jobs:
pull-request: ${{ github.event.pull_request.number }}
body: ${{ steps.redirects.outputs.body }}
body-includes: following redirects
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/list-changed-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
checks: read
contents: read
issues: write
pull-requests: read
pull-requests: write

jobs:
post-files-changed-comment:
Expand Down Expand Up @@ -58,3 +58,5 @@ jobs:
pull-request: ${{ github.event.pull_request.number }}
body: ${{ steps.build-comment-body.outputs.body }}
body-includes: "original | preview"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b6ead36

Please sign in to comment.