From 6dfa08ed11bdb3aa54b44b8b91518ad08d548864 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Fri, 12 Aug 2022 11:53:15 -0700 Subject: [PATCH] Switch to pull_request_target --- .github/workflows/proposal_labeled.yaml | 12 ++++++------ .github/workflows/proposal_ready.yaml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/proposal_labeled.yaml b/.github/workflows/proposal_labeled.yaml index 60ede99b5ddd3..f02fc96bfd69c 100644 --- a/.github/workflows/proposal_labeled.yaml +++ b/.github/workflows/proposal_labeled.yaml @@ -15,7 +15,7 @@ name: Proposal labeled on: - pull_request: + pull_request_target: types: - labeled @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/proposal_ready.yaml b/.github/workflows/proposal_ready.yaml index d501b9518b21c..ab4405c15855e 100644 --- a/.github/workflows/proposal_ready.yaml +++ b/.github/workflows/proposal_ready.yaml @@ -6,7 +6,7 @@ name: Proposal ready for review on: - pull_request: + pull_request_target: types: - ready_for_review @@ -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 }}