Skip to content

Commit

Permalink
Switch to pull_request_target (#2014)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmeow authored Aug 12, 2022
1 parent efde2dc commit 2131133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/proposal_labeled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

name: Proposal labeled
on:
pull_request:
pull_request_target:
types:
- labeled

Expand All @@ -34,7 +34,7 @@ jobs:
--remove-label "proposal deferred" \
--add-label "proposal"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}

- name: rfc
Expand All @@ -48,7 +48,7 @@ jobs:
--remove-label "proposal deferred" \
--add-label "proposal"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}

- name: accepted
Expand All @@ -62,7 +62,7 @@ jobs:
--remove-label "proposal deferred" \
--add-label "proposal"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}

- name: declined
Expand All @@ -76,7 +76,7 @@ jobs:
--remove-label "proposal deferred" \
--add-label "proposal"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}

- name: deferred
Expand All @@ -90,5 +90,5 @@ jobs:
--remove-label "proposal declined" \
--add-label "proposal"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
4 changes: 2 additions & 2 deletions .github/workflows/proposal_ready.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name: Proposal ready for review
on:
pull_request:
pull_request_target:
types:
- ready_for_review

Expand All @@ -24,5 +24,5 @@ jobs:
--remove-label "proposal deferred" \
--add-label "proposal rfc"
env:
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}

0 comments on commit 2131133

Please sign in to comment.