Skip to content

Commit fb35565

Browse files
committed
Add workflow permission and fix Java matrix
Grant the workflow read-only access to repository contents (set permissions.contents: read) to limit GITHUB_TOKEN privileges. Also correct a stray space in the Java matrix entry (' 25' -> '25') so the matrix parses the Java versions correctly.
1 parent e2a11ed commit fb35565

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/maven-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
name: Maven Build
1010

11+
permissions:
12+
contents: read
13+
1114
on:
1215
push:
1316
branches: [ 'main', 'dev' ]
@@ -19,7 +22,7 @@ jobs:
1922
runs-on: ubuntu-latest
2023
strategy:
2124
matrix:
22-
java: [ '8', '11' , '17' , '21' ,' 25' ]
25+
java: [ '8', '11' , '17' , '21' , '25' ]
2326
steps:
2427
- name: Checkout Source
2528
uses: actions/checkout@v5

0 commit comments

Comments
 (0)