Skip to content

Commit

Permalink
Merge pull request #195310 from Homebrew/zizmor-triage-excessive-perm…
Browse files Browse the repository at this point in the history
…issions

workflows/triage: fix excessive-permissions zizmor error
  • Loading branch information
samford authored Dec 19, 2024
2 parents b9fbeed + 974fbb3 commit 43a7b9d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ concurrency:
group: "triage-${{ github.event.number }}"
cancel-in-progress: true

permissions:
contents: read
pull-requests: write

jobs:
limit-pull-requests:
if: >
always() && github.repository_owner == 'Homebrew' &&
(github.event_name == 'pull_request_target' &&
github.event.action == 'opened')
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: Homebrew/actions/limit-pull-requests@master
with:
Expand All @@ -31,6 +30,9 @@ jobs:

triage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check commit format
uses: Homebrew/actions/check-commit-format@master
Expand Down

0 comments on commit 43a7b9d

Please sign in to comment.