From 22855ce95124b176314fda1510bff24b8e6a005c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Tue, 17 Sep 2024 10:40:58 +0200 Subject: [PATCH] add mvn settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- .github/workflows/maven.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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