File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,18 +11,22 @@ concurrency:
1111 cancel-in-progress : true
1212
1313# Least-privilege default: no job in this workflow writes to the repo.
14- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
15- # changed-file list through the API on pull_request events.
1614permissions :
1715 contents : read
18- pull-requests : read
1916
2017jobs :
2118 file-changes :
2219 name : Detect File Changes
2320 if : >
2421 github.event_name != 'pull_request_review' ||
2522 github.event.review.user.type != 'Bot'
23+ # Job-level permissions replace the workflow default outright rather than
24+ # merging with it, so contents must be restated here. paths-filter reads the
25+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
26+ # it, so it is granted here instead of workflow-wide.
27+ permissions :
28+ contents : read
29+ pull-requests : read
2630 runs-on : ' ubuntu-latest'
2731 outputs :
2832 checkall : ${{ steps.changes.outputs.checkall }}
Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ concurrency:
1111 cancel-in-progress : true
1212
1313# Least-privilege default: no job in this workflow writes to the repo.
14- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
15- # changed-file list through the API on pull_request events.
1614permissions :
1715 contents : read
18- pull-requests : read
1916
2017jobs :
2118 file-changes :
2219 name : Detect File Changes
20+ # Job-level permissions replace the workflow default outright rather than
21+ # merging with it, so contents must be restated here. paths-filter reads the
22+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
23+ # it, so it is granted here instead of workflow-wide.
24+ permissions :
25+ contents : read
26+ pull-requests : read
2327 runs-on : ' ubuntu-latest'
2428 outputs :
2529 checkall : ${{ steps.changes.outputs.checkall }}
Original file line number Diff line number Diff line change 1111 OMPI_MCA_rmaps_base_oversubscribe : 1
1212
1313# Least-privilege default: no job in this workflow writes to the repo.
14- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
15- # changed-file list through the API on pull_request events.
1614permissions :
1715 contents : read
18- pull-requests : read
1916
2017jobs :
2118 file-changes :
2219 name : Detect File Changes
20+ # Job-level permissions replace the workflow default outright rather than
21+ # merging with it, so contents must be restated here. paths-filter reads the
22+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
23+ # it, so it is granted here instead of workflow-wide.
24+ permissions :
25+ contents : read
26+ pull-requests : read
2327 runs-on : ubuntu-latest
2428 outputs :
2529 checkall : ${{ steps.changes.outputs.checkall }}
Original file line number Diff line number Diff line change @@ -12,15 +12,19 @@ concurrency:
1212 cancel-in-progress : true
1313
1414# Least-privilege default: no job in this workflow writes to the repo.
15- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
16- # changed-file list through the API on pull_request events.
1715permissions :
1816 contents : read
19- pull-requests : read
2017
2118jobs :
2219 file-changes :
2320 name : Detect File Changes
21+ # Job-level permissions replace the workflow default outright rather than
22+ # merging with it, so contents must be restated here. paths-filter reads the
23+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
24+ # it, so it is granted here instead of workflow-wide.
25+ permissions :
26+ contents : read
27+ pull-requests : read
2428 runs-on : ' ubuntu-latest'
2529 outputs :
2630 checkall : ${{ steps.changes.outputs.checkall }}
Original file line number Diff line number Diff line change 3636 workflow_dispatch :
3737
3838# Least-privilege default: no job in this workflow writes to the repo.
39- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
40- # changed-file list through the API on pull_request events.
4139permissions :
4240 contents : read
43- pull-requests : read
4441
4542jobs :
4643 file-changes :
4744 name : Detect File Changes
45+ # Job-level permissions replace the workflow default outright rather than
46+ # merging with it, so contents must be restated here. paths-filter reads the
47+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
48+ # it, so it is granted here instead of workflow-wide.
49+ permissions :
50+ contents : read
51+ pull-requests : read
4852 runs-on : ubuntu-latest
4953 outputs :
5054 checkall : ${{ steps.changes.outputs.checkall }}
Original file line number Diff line number Diff line change @@ -13,11 +13,8 @@ concurrency:
1313 cancel-in-progress : ${{ github.event_name != 'push' }}
1414
1515# Least-privilege default: no job in this workflow writes to the repo.
16- # pull-requests: read is required by dorny/paths-filter, which reads the PR's
17- # changed-file list through the API on pull_request events.
1816permissions :
1917 contents : read
20- pull-requests : read
2118
2219jobs :
2320 lint-gate :
5754
5855 file-changes :
5956 name : Detect File Changes
57+ # Job-level permissions replace the workflow default outright rather than
58+ # merging with it, so contents must be restated here. paths-filter reads the
59+ # PR's changed-file list via pulls.listFiles; this is the only job that needs
60+ # it, so it is granted here instead of workflow-wide.
61+ permissions :
62+ contents : read
63+ pull-requests : read
6064 runs-on : ' ubuntu-latest'
6165 outputs :
6266 checkall : ${{ steps.changes.outputs.checkall }}
You can’t perform that action at this time.
0 commit comments