add permissions in action
Some checks failed
Gitea Actions Maven Build / build (push) Failing after 11s

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

View File

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