diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b2ea604..02420e99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,9 @@ on: paths-ignore: - "README.md" - "release-notes/*" +permissions: + contents:read + jobs: build: runs-on: ${{ matrix.os }} @@ -44,7 +47,7 @@ jobs: run: ./mvnw -B -q -ff -ntp verify - name: Extract project Maven version id: projectVersion - run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT + run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.4.1:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT - name: Deploy snapshot if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') env: