File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,18 @@ concurrency:
5555 cancel-in-progress : ${{ startsWith(github.event_name, 'pull_request') }}
5656
5757jobs :
58-
59-
6058 check :
6159 if : github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
6260 runs-on : ubuntu-latest
6361 outputs :
6462 any_modified : ${{ steps.check-files.outputs.any_modified }}
6563 env :
6664 AUTHOR_ASSOCIATION : ${{ github.event.pull_request.author_association }}
65+ permissions :
66+ id-token : none
67+ deployments : none
68+ contents : read
69+ pull-requests : read
6770 steps :
6871 - name : Checkout
6972 if : contains(fromJSON('["push", "merge_group", "workflow_dispatch"]'), github.event_name)
@@ -105,6 +108,11 @@ jobs:
105108 if : github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
106109 needs : check
107110 runs-on : ubuntu-latest
111+ permissions :
112+ id-token : none
113+ deployments : none
114+ contents : read
115+ pull-requests : read
108116 outputs :
109117 content-source-match : ${{ steps.event-check.outputs.content-source-match != '' && steps.event-check.outputs.content-source-match || steps.match.outputs.content-source-match }}
110118 content-source-next : ${{ steps.event-check.outputs.content-source-next != '' && steps.event-check.outputs.content-source-next || steps.match.outputs.content-source-next }}
@@ -140,6 +148,11 @@ jobs:
140148 build :
141149 if : github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
142150 runs-on : ubuntu-latest
151+ permissions :
152+ id-token : write
153+ deployments : write
154+ contents : read
155+ pull-requests : read
143156 env :
144157 GITHUB_PR_REF_NAME : ${{ github.event.pull_request.head.ref }}
145158 MATCH : ${{ needs.match.outputs.content-source-match }}
You can’t perform that action at this time.
0 commit comments