File tree 4 files changed +10
-0
lines changed
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 14
14
uses : ./.github/workflows/reusable_export_pr_details.yml
15
15
with :
16
16
record_pr_workflow_id : ${{ github.event.workflow_run.id }}
17
+ workflow_origin : ${{ github.event.repository.full_name }}
17
18
secrets :
18
19
token : ${{ secrets.GITHUB_TOKEN }}
19
20
label_pr :
Original file line number Diff line number Diff line change 12
12
uses : ./.github/workflows/reusable_export_pr_details.yml
13
13
with :
14
14
record_pr_workflow_id : ${{ github.event.workflow_run.id }}
15
+ workflow_origin : ${{ github.event.repository.full_name }}
15
16
secrets :
16
17
token : ${{ secrets.GITHUB_TOKEN }}
17
18
release_label_on_merge :
Original file line number Diff line number Diff line change 10
10
get_pr_details :
11
11
if : ${{ github.event.workflow_run.conclusion == 'success' }}
12
12
uses : ./.github/workflows/reusable_export_pr_details.yml
13
+ env :
13
14
with :
14
15
record_pr_workflow_id : ${{ github.event.workflow_run.id }}
16
+ workflow_origin : ${{ github.event.repository.full_name }}
15
17
secrets :
16
18
token : ${{ secrets.GITHUB_TOKEN }}
17
19
check_related_issue :
Original file line number Diff line number Diff line change 6
6
record_pr_workflow_id :
7
7
required : true
8
8
type : number
9
+ # this protects from anyone mimicking "Record PR details" dependency
10
+ # regardless of our untrusted input validation
11
+ workflow_origin :
12
+ required : true
13
+ type : string
9
14
secrets :
10
15
token :
11
16
required : true
32
37
33
38
jobs :
34
39
export_pr_details :
40
+ if : inputs.workflow_origin == "bla/bla"
35
41
runs-on : ubuntu-latest
36
42
env :
37
43
FILENAME : pr.txt
You can’t perform that action at this time.
0 commit comments