Skip to content

[GHA] More perms #22168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/anchor-link-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
run: ./bin/htmltest -c ./bin/.htmltest.yml

- name: Create issue on failure
permissions:
issues: write
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/comment-changed-filenames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
echo "${delimiter}" >> "$GITHUB_ENV"

- name: Comment or Update Comment on PR based on changed files
permissions:
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/image-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
fi

- name: Create Issue if Unused Files Found
permissions:
issues: write
if: steps.find-files.outputs.unused_files
env:
UNUSED_FILES: ${{ steps.find-files.outputs.unused_files }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
compile:
name: Assignee
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:

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