From 60eb4bed02bd99fe4bef66236e931a26c9773558 Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Mon, 2 Aug 2021 13:57:03 -0400 Subject: [PATCH 1/2] Switch warnCPLabel trigger from pull_request to pull_request_target --- .github/workflows/warnCPLabel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/warnCPLabel.yml b/.github/workflows/warnCPLabel.yml index bc6073029ea..a3c95d7fbf7 100644 --- a/.github/workflows/warnCPLabel.yml +++ b/.github/workflows/warnCPLabel.yml @@ -1,7 +1,7 @@ name: Explain Cherry-Pick label via OSBotify comment on: - pull_request: + pull_request_target: types: - labeled From 612884503a1f22b27452a7138b35bd70ee45e2ca Mon Sep 17 00:00:00 2001 From: Rory Abraham Date: Mon, 2 Aug 2021 15:01:30 -0400 Subject: [PATCH 2/2] Switch warnCPLabel to use GITHUB_TOKEN --- .github/workflows/warnCPLabel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/warnCPLabel.yml b/.github/workflows/warnCPLabel.yml index a3c95d7fbf7..25434a5d88b 100644 --- a/.github/workflows/warnCPLabel.yml +++ b/.github/workflows/warnCPLabel.yml @@ -14,7 +14,7 @@ jobs: - name: Comment on PR to explain the CP Staging label uses: actions-ecosystem/action-create-comment@cd098164398331c50e7dfdd0dfa1b564a1873fac with: - github_token: ${{ secrets.OS_BOTIFY_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} body: | :warning: :warning: **Heads up! This pull request has the `CP Staging` label.** :warning: :warning: Merging it will cause it to be immediately deployed to staging, _even if the [open `StagingDeployCash` deploy checklist](https://github.com/Expensify/Expensify.cash/issues?q=is%3Aopen+is%3Aissue+label%3AStagingDeployCash) is locked._