Skip to content

Commit f1e0161

Browse files
authored
Update add-issues-and-prs-to-fs-project-board.yml to use pull_request_target
Using "pull_request_target" instead of "pull_request" to support PRs from forks. Workflow runs triggered on PRs from forks do not have access to secrets, so "github-token" input would otherwise be empty. This action does not check out nor execute user code so we should be safe. We also hardcode to specific hash to ensure no intended changes underneath us. This should enable runs like https://github.com/filecoin-project/curio/actions/runs/16433720097 to pass
1 parent 7bcbbe7 commit f1e0161

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 intended 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)