5050 MVN_SINGLE_THREADED_ARGS : --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1
5151 MVN_SKIP_CI_PLUGINS : -DskipFormatting -Denforcer.skip -Djacoco.skip -Dmdep.analyze.skip
5252
53+ permissions : {}
54+
5355jobs :
5456 context :
5557 name : " Collect Context"
5658 outputs :
5759 commit : ${{ steps.calculate-commit-sha.outputs.COMMIT }}
5860 runs-on : ubuntu-latest
61+ permissions :
62+ contents : read
5963 steps :
6064 - name : " Calculate Commit SHA"
6165 id : calculate-commit-sha
7983 name : " Check Formatting"
8084 needs : [ context ]
8185 runs-on : ubuntu-latest
86+ permissions :
87+ contents : read
8288 steps :
8389 - name : " Checkout Repository"
8490 uses : actions/checkout@v6
@@ -106,6 +112,8 @@ jobs:
106112 name : " Build"
107113 needs : [ context, check-formatting ]
108114 runs-on : ubuntu-latest
115+ permissions :
116+ contents : read # upload-artifacts does not use github-token
109117 steps :
110118 - name : " Checkout repository"
111119 uses : actions/checkout@v6
@@ -160,6 +168,8 @@ jobs:
160168 name : " Test"
161169 needs : [ context, build ]
162170 runs-on : ubuntu-latest
171+ permissions :
172+ contents : read
163173 steps :
164174 - name : " Checkout repository"
165175 uses : actions/checkout@v6
@@ -202,6 +212,8 @@ jobs:
202212 static-code-analysis :
203213 needs : [ context, build ]
204214 runs-on : ubuntu-latest
215+ permissions :
216+ contents : read
205217 strategy :
206218 matrix :
207219 task :
@@ -262,6 +274,9 @@ jobs:
262274 name : " Run CodeQL Analysis"
263275 needs : [ context ]
264276 runs-on : ubuntu-latest
277+ permissions :
278+ contents : read
279+ security-events : write # needed for Perform CodeQL Analysis
265280 steps :
266281 - name : " Checkout repository"
267282 uses : actions/checkout@v6
@@ -301,6 +316,8 @@ jobs:
301316 test-archetypes :
302317 runs-on : ubuntu-latest
303318 needs : [ context, build ]
319+ permissions :
320+ contents : read
304321 strategy :
305322 matrix :
306323 task :
@@ -396,6 +413,8 @@ jobs:
396413 if : ${{ github.event.inputs.run-blackduck-scan == 'true' }}
397414 needs : [ context ]
398415 runs-on : ubuntu-latest
416+ permissions :
417+ contents : read
399418 steps :
400419 - name : " Checkout repository"
401420 uses : actions/checkout@v6
@@ -412,6 +431,8 @@ jobs:
412431 if : ${{ github.event.inputs.run-security-rating == 'true' }}
413432 needs : [ context ]
414433 runs-on : ubuntu-latest
434+ permissions :
435+ contents : write # needed for Run FOSStars Rating
415436 steps :
416437 - name : " Checkout repository"
417438 uses : actions/checkout@v6
0 commit comments