@@ -2,6 +2,10 @@ name: PR verify
22
33on : pull_request
44
5+ permissions :
6+ contents : read # checkout & other read‑only operations
7+ actions : write # allows the cancel‑workflow step to call the Actions API
8+
59jobs :
610
711 formatting :
2731 with :
2832 repo : eclipse/rdf4j
2933 workflow_id : ${{ github.run_id }}
30- access_token : ${{secrets.GITHUB_TOKEN }}
34+ access_token : ${{ github.token }}
3135
3236 compile :
3337 runs-on : ubuntu-latest
5256 with :
5357 repo : eclipse/rdf4j
5458 workflow_id : ${{ github.run_id }}
55- access_token : ${{secrets.GITHUB_TOKEN }}
59+ access_token : ${{ github.token }}
5660
5761 build :
5862 runs-on : ubuntu-latest
8084 run : mvn -B test -DskipITs -P-formatting -Dmaven.javadoc.skip -Djapicmp.skip -Denforcer.skip -Danimal.sniffer.skip
8185 - name : Publish Test Report
8286 if : failure()
83- uses : scacap/action-surefire-report@v1
87+ uses : scacap/action-surefire-report@v1.9.0
8488 with :
8589 check_name : Test report - build - ${{ matrix.jdk }}
8690 - name : Cancel workflow on failure
8993 with :
9094 repo : eclipse/rdf4j
9195 workflow_id : ${{ github.run_id }}
92- access_token : ${{secrets.GITHUB_TOKEN }}
96+ access_token : ${{ github.token }}
9397
9498 integration-tests :
9599 runs-on : ubuntu-latest
@@ -114,7 +118,7 @@ jobs:
114118 run : mvn -B verify -PskipUnitTests,-formatting -Dmaven.javadoc.skip -Denforcer.skip -Danimal.sniffer.skip
115119 - name : Publish Test Report
116120 if : failure()
117- uses : scacap/action-surefire-report@v1
121+ uses : scacap/action-surefire-report@v1.9.0
118122 with :
119123 check_name : Test report - integration-tests
120124
@@ -141,7 +145,7 @@ jobs:
141145 run : mvn -B verify -PslowTestsOnly,-skipSlowTests,-formatting -Dmaven.javadoc.skip -Djapicmp.skip -Denforcer.skip -Danimal.sniffer.skip
142146 - name : Publish Test Report
143147 if : failure()
144- uses : scacap/action-surefire-report@v1
148+ uses : scacap/action-surefire-report@v1.9.0
145149 with :
146150 check_name : Test report - slow-tests
147151
@@ -170,7 +174,7 @@ jobs:
170174 with :
171175 repo : eclipse/rdf4j
172176 workflow_id : ${{ github.run_id }}
173- access_token : ${{secrets.GITHUB_TOKEN }}
177+ access_token : ${{ github.token }}
174178
175179 e2e :
176180 runs-on : ubuntu-latest
@@ -209,5 +213,4 @@ jobs:
209213 with :
210214 repo : eclipse/rdf4j
211215 workflow_id : ${{ github.run_id }}
212- access_token : ${{secrets.GITHUB_TOKEN}}
213-
216+ access_token : ${{ github.token }}
0 commit comments