From b67ad03bc9dd5b0f698f918dda5b138314b4e42a Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Mon, 24 Aug 2020 16:43:08 +0100 Subject: [PATCH] make forks run workflows correctly by using pull_request_target origami discussion for this work -- https://github.com/Financial-Times/origami/issues/77 --- ...dd-new-issues-and-pull-requests-to-origami-project-board.yml | 2 +- .github/workflows/apply-labels.yml | 2 +- .github/workflows/sync-repo-labels.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml b/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml index 3519387..9c9a65a 100644 --- a/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml +++ b/.github/workflows/add-new-issues-and-pull-requests-to-origami-project-board.yml @@ -1,5 +1,5 @@ name: Add new issues and pull requests to Origami Project Board -on: [issues, pull_request] +on: [issues, pull_request_target] jobs: origami_project_board_job: diff --git a/.github/workflows/apply-labels.yml b/.github/workflows/apply-labels.yml index 80c1018..9ccc33f 100644 --- a/.github/workflows/apply-labels.yml +++ b/.github/workflows/apply-labels.yml @@ -1,5 +1,5 @@ name: Sync Origami labels -on: [issues, pull_request] +on: [issues, pull_request_target] jobs: apply-labels: runs-on: ubuntu-latest diff --git a/.github/workflows/sync-repo-labels.yml b/.github/workflows/sync-repo-labels.yml index b7b8736..16eb6d1 100644 --- a/.github/workflows/sync-repo-labels.yml +++ b/.github/workflows/sync-repo-labels.yml @@ -1,4 +1,4 @@ -on: [issues, pull_request] +on: [issues, pull_request_target] jobs: sync-labels: runs-on: ubuntu-latest