From 8a6ee6f3ed3174c0a4c4a170ef2ed9eaea8dcc8d Mon Sep 17 00:00:00 2001 From: Evan Bonsignori Date: Mon, 20 Nov 2023 11:35:32 -0800 Subject: [PATCH] Revert confirm-internal-staff workflow to `pull_request_target` (#46452) --- .github/workflows/confirm-internal-staff-work-in-docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/confirm-internal-staff-work-in-docs.yml b/.github/workflows/confirm-internal-staff-work-in-docs.yml index fb8503f809..f5d4965d47 100644 --- a/.github/workflows/confirm-internal-staff-work-in-docs.yml +++ b/.github/workflows/confirm-internal-staff-work-in-docs.yml @@ -9,7 +9,8 @@ on: types: - opened - transferred - pull_request: + # Required in lieu of `pull_request` so that this workflow can query users in org to determine membership. + pull_request_target: types: - opened @@ -81,10 +82,10 @@ jobs: text: <@${{github.actor}}> opened https://github.com/github/docs/issues/${{ github.event.number || github.event.issue.number }} publicly on the github/docs repo instead of a private repo. They have been notified via a new issue in the private repo to confirm this was intentional. - name: Check out repo - if: ${{ failure() && github.event_name != 'pull_request' }} + if: ${{ failure() && github.event_name != 'pull_request_target' }} uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - uses: ./.github/actions/slack-alert - if: ${{ failure() && github.event_name != 'pull_request' }} + if: ${{ failure() && github.event_name != 'pull_request_target' }} with: slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}