diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c44f826..a3e0866 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,9 @@ on: pull_request: branches: [ "master" ] +permissions: + contents: write + jobs: build: @@ -32,4 +35,5 @@ jobs: # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + if: ${{ github.event_name == 'push' }} + uses: advanced-security/maven-dependency-submission-action@v3.0.3