Skip to content

Commit f7c0fff

Browse files
authored
fix(ci): use pull_request_target for FS working group CI job (#13230)
This is the Lotus equivalent of filecoin-project/github-mgmt#153
1 parent 8bafabe commit f7c0fff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.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
@@ -15,7 +15,11 @@ on:
1515
issues:
1616
types:
1717
- labeled
18-
pull_request:
18+
# Using "pull_request_target" instead of "pull_request" to support PRs from forks.
19+
# Workflow runs triggered on PRs from forks do not have access to secrets, so "github-token" input below would otherwise be empty.
20+
# This action does not check out nor execute user code so we should be safe.
21+
# We also hardcode to specific hash to ensure no unintended changes underneath us.
22+
pull_request_target:
1923
types:
2024
- labeled
2125

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

0 commit comments

Comments
 (0)