diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 091ab7081..868c487e7 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -41,8 +41,19 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven + - name: Configure Maven settings + uses: s4u/maven-settings-action@v3 + with: + servers: | + [{ + "id": "github", + "username": "${{ github.actor }}", + "password": "${{ secrets.GITHUB_TOKEN }}" + }] - name: Build with Maven run: mvn clean package + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 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@v4 \ No newline at end of file