File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1414 uses : ./.github/workflows/reusable_export_pr_details.yml
1515 with :
1616 record_pr_workflow_id : ${{ github.event.workflow_run.id }}
17+ workflow_origin : ${{ github.event.repository.full_name }}
1718 secrets :
1819 token : ${{ secrets.GITHUB_TOKEN }}
1920 label_pr :
Original file line number Diff line number Diff line change 1212 uses : ./.github/workflows/reusable_export_pr_details.yml
1313 with :
1414 record_pr_workflow_id : ${{ github.event.workflow_run.id }}
15+ workflow_origin : ${{ github.event.repository.full_name }}
1516 secrets :
1617 token : ${{ secrets.GITHUB_TOKEN }}
1718 release_label_on_merge :
Original file line number Diff line number Diff line change 1010 get_pr_details :
1111 if : ${{ github.event.workflow_run.conclusion == 'success' }}
1212 uses : ./.github/workflows/reusable_export_pr_details.yml
13+ env :
1314 with :
1415 record_pr_workflow_id : ${{ github.event.workflow_run.id }}
16+ workflow_origin : ${{ github.event.repository.full_name }}
1517 secrets :
1618 token : ${{ secrets.GITHUB_TOKEN }}
1719 check_related_issue :
Original file line number Diff line number Diff line change 66 record_pr_workflow_id :
77 required : true
88 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
914 secrets :
1015 token :
1116 required : true
3237
3338jobs :
3439 export_pr_details :
40+ if : inputs.workflow_origin == "bla/bla"
3541 runs-on : ubuntu-latest
3642 env :
3743 FILENAME : pr.txt
You can’t perform that action at this time.
0 commit comments