Skip to content

Commit

Permalink
comment-push token no longer needs contents write
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 27, 2024
1 parent 5456455 commit 2151408
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/format-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
issue_comment:
types: [created]

permissions: {}

jobs:
# Handling workflow_dispatch is simple. Just checkout whatever branch it was run on.
# The workflow will run in that repository's context and thus can safely get write permissions.
Expand Down Expand Up @@ -54,7 +56,6 @@ jobs:
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.user.id == github.event.issue.user.id
)
permissions: {}
steps:
- name: Checkout upstream
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Expand Down Expand Up @@ -86,8 +87,6 @@ jobs:
comment-push:
runs-on: ubuntu-latest
needs: comment-format-untrusted
permissions:
contents: write
steps:
- name: Checkout upstream
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Expand Down

0 comments on commit 2151408

Please sign in to comment.