diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index febae5b1b53..b70d235a5bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,21 @@ jobs: distribution: 'temurin' cache: maven + - name: Configure Maven settings + uses: s4u/maven-settings-action@v3.0.0 + with: + servers: | + [{ + "id": "codice", + "username": "${{ github.actor }}", + "password": "${{ secrets.READ_PACKAGES }}" + }, + { + "id": "connexta", + "username": "${{ github.actor }}", + "password": "${{ secrets.READ_PACKAGES }}" + }] + - name: Full build (excluding itests) run: mvn clean install $MAVEN_CLI_OPTS -P !itests @@ -253,6 +268,8 @@ jobs: needs.dependency-check.result == 'success' runs-on: ubuntu-latest environment: production + permissions: + packages: write steps: - name: Checkout uses: actions/checkout@v4