Skip to content

Commit 6a3181d

Browse files
authored
Merge pull request #153 from filecoin-project/biglep/update-add-issues-and-prs-to-fs-project-board-1
Update add-issues-and-prs-to-fs-project-board.yml to use pull_request_target
2 parents 7bcbbe7 + 5ac07c7 commit 6a3181d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

files/.github/workflows/add-issues-and-prs-to-fs-project-board.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ on:
1717
issues:
1818
types:
1919
- labeled
20-
pull_request:
20+
# Using "pull_request_target" instead of "pull_request" to support PRs from forks.
21+
# Workflow runs triggered on PRs from forks do not have access to secrets, so "github-token" input below would otherwise be empty.
22+
# This action does not check out nor execute user code so we should be safe.
23+
# We also hardcode to specific hash to ensure no unintended changes underneath us.
24+
pull_request_target:
2125
types:
2226
- labeled
2327

@@ -26,7 +30,7 @@ jobs:
2630
name: Add all "team/fs-wg" issues and PRs to project
2731
runs-on: ubuntu-latest
2832
steps:
29-
- uses: actions/[email protected]
33+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
3034
with:
3135
project-url: https://github.com/orgs/FilOzone/projects/14
3236
github-token: ${{ secrets.FILOZZY_CI_ADD_TO_PROJECT }}

0 commit comments

Comments
 (0)