Skip to content

Commit 8b8e93f

Browse files
kodster28Maddy-Cloudflare
authored andcommitted
[GHA] More perms (#22168)
* [GHA] More perms * update
1 parent 589245e commit 8b8e93f

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

.github/workflows/anchor-link-audit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
run: ./bin/htmltest -c ./bin/.htmltest.yml
4747

4848
- name: Create issue on failure
49+
permissions:
50+
issues: write
4951
if: ${{ failure() }}
5052
env:
5153
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/comment-changed-filenames.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
echo "${delimiter}" >> "$GITHUB_ENV"
3737
3838
- name: Comment or Update Comment on PR based on changed files
39+
permissions:
40+
pull-requests: write
3941
env:
4042
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4143
run: |

.github/workflows/image-audit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
fi
3939
4040
- name: Create Issue if Unused Files Found
41+
permissions:
42+
issues: write
4143
if: steps.find-files.outputs.unused_files
4244
env:
4345
UNUSED_FILES: ${{ steps.find-files.outputs.unused_files }}

.github/workflows/issue.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
compile:
99
name: Assignee
10+
permissions:
11+
issues: write
1012
runs-on: ubuntu-latest
1113
steps:
1214
- uses: actions/checkout@v4

.github/workflows/no-response.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717

1818
jobs:
1919
noResponse:
20+
permissions:
21+
issues: write
22+
pull-requests: write
2023
runs-on: ubuntu-latest
2124
steps:
2225
- uses: lee-dohm/[email protected]
@@ -26,5 +29,5 @@ jobs:
2629
closeComment: >
2730
This issue was closed automatically because there has been no response
2831
from the original author. As it stands currently, we don't have enough information
29-
to take action. If you believe this issue was closed in error, a) apologies and b) open a new issue
32+
to take action. If you believe this issue was closed in error, a) apologies and b) open a new issue
3033
and reference this one in the body.

0 commit comments

Comments
 (0)