From 6774fa9248c5887e35f6d887d824abe94b76e27d Mon Sep 17 00:00:00 2001 From: Sayali M Date: Wed, 1 May 2024 11:55:57 -0500 Subject: [PATCH 1/2] resolve 401 unauth error --- .github/workflows/codeql.yml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a3b5763f..1a96ac7f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -96,6 +96,53 @@ jobs: run: | ${{ inputs.extraCommand }} + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: "3.9.5" + # look for dependencies in maven + - name: maven-settings-xml-action + uses: whelk-io/maven-settings-xml-action@v21 + with: + repositories: | + [ + { + "id": "liquibase", + "url": "https://maven.pkg.github.com/liquibase/liquibase", + "releases": { + "enabled": "true" + }, + "snapshots": { + "enabled": "true", + "updatePolicy": "always" + } + }, + { + "id": "liquibase-pro", + "url": "https://maven.pkg.github.com/liquibase/liquibase-pro", + "releases": { + "enabled": "true" + }, + "snapshots": { + "enabled": "true", + "updatePolicy": "always" + } + } + ] + servers: | + [ + { + "id": "liquibase-pro", + "username": "liquibot", + "password": "${{ secrets.LIQUIBOT_PAT }}" + }, + { + "id": "liquibase", + "username": "liquibot", + "password": "${{ secrets.LIQUIBOT_PAT }}" + } + ] + # users can specify the custom build command via the buildCommand input. # If no custom command is provided, it will be 'autobuild' by codeql in step set-build-mode . From 67d3adf406053e461e93bcb6779360450ef3312e Mon Sep 17 00:00:00 2001 From: Sayali M Date: Wed, 1 May 2024 14:18:54 -0500 Subject: [PATCH 2/2] resolve 401 unauth error --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1a96ac7f..d063c909 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -97,11 +97,13 @@ jobs: ${{ inputs.extraCommand }} - name: Set up Maven + if: matrix.language == 'java' uses: stCarolas/setup-maven@v4.5 with: maven-version: "3.9.5" # look for dependencies in maven - name: maven-settings-xml-action + if: matrix.language == 'java' uses: whelk-io/maven-settings-xml-action@v21 with: repositories: |