From 9a24ddac1170f0c3bd6527263803156d4afb480d Mon Sep 17 00:00:00 2001 From: Ben Hale Date: Wed, 14 Oct 2020 07:12:06 -0700 Subject: [PATCH] Pull Request Target Previously, the actions tied to pull requests executed on the pull_request event, which resulted in them not having access to the secrets required for them to execute. At the beginning of August, GitHub added the pull_request_target event which operates in a similar way except only actions in the base commit would execute ensuring that it was safe to expose secrets. This change updates the pull request actions to use pull_request_target, ensuring that they are always functional. Signed-off-by: Ben Hale --- .github/workflows/minimal-labels.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/minimal-labels.yml b/.github/workflows/minimal-labels.yml index 1bb1fd6..baf42c0 100644 --- a/.github/workflows/minimal-labels.yml +++ b/.github/workflows/minimal-labels.yml @@ -1,6 +1,6 @@ name: Minimal Labels "on": - pull_request: + pull_request_target: types: - synchronize - reopened diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6b34490..1b9fb5c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,6 @@ name: Tests "on": - pull_request: {} + pull_request_target: {} push: branches: - main