Skip to content

Commit 6a5b6d3

Browse files
authored
Merge pull request #522 from danthe1st/workflow-permissions
add workflow permissions
2 parents 6a87f3d + 23f1c57 commit 6a5b6d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on: [push, pull_request, workflow_dispatch]
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- uses: actions/checkout@v4
1315
- name: Set up JDK 17
@@ -23,6 +25,8 @@ jobs:
2325
run: ./gradlew test
2426
publish:
2527
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
2630
needs: build
2731
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
2832
steps:

0 commit comments

Comments
 (0)