add permissions in action

This commit is contained in:
Eduard Kuksa 2025-01-14 21:02:25 +07:00
parent f85cc9b031
commit 78a2c9002c

@ -7,6 +7,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
pull-requests: write
steps:
- name: Checkout the repo
uses: actions/checkout@v4
@ -21,5 +25,4 @@ jobs:
distribution: 'oracle'
cache: 'maven'
- name: Build with Maven
run: mvn test
# run: mvn -B package --file pom.xml
run: mvn -B package --file pom.xml