diff --git a/.github/maven-settings.xml b/.github/maven-settings.xml new file mode 100644 index 0000000..180bec7 --- /dev/null +++ b/.github/maven-settings.xml @@ -0,0 +1,9 @@ + + + + github + ${env.GITHUB_ACTOR} + ${env.GITHUB_TOKEN} + + + diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 803c1dd..554ca28 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -74,7 +74,9 @@ jobs: if: github.ref_name == 'main' uses: advanced-security/maven-dependency-submission-action@v5 with: - maven-args: -f ${{ inputs.pom-file }} + maven-args: -f ${{ inputs.pom-file }} -s ${{ github.workspace }}/settings.xml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload maven build artifacts uses: actions/upload-artifact@v7