Skip to content

Commit 4d12ca1

Browse files
author
Ivan De Marino
authored
Update GH Action 'add-content-to-project' to use 'pull_request_target' to allow access to project secrets (#901)
1 parent 9e6514c commit 4d12ca1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/add-content-to-project.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ name: "Add Issues/PRs to TF Provider DevEx team board"
55
on:
66
issues:
77
types: [opened, reopened]
8-
pull_request:
8+
pull_request_target:
99
# NOTE: The way content is added to project board is equivalent to an "upsert".
1010
# Calling it multiple times will be idempotent.
11+
#
12+
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
13+
# to see the reasoning behind using `pull_request_target` instead of `pull_request`
1114
types: [opened, reopened, ready_for_review]
1215

1316
jobs:

0 commit comments

Comments
 (0)