From c9d864b0e4fdf1cc24ee2fdbb33cbdfac7d3b427 Mon Sep 17 00:00:00 2001 From: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com> Date: Sat, 4 May 2024 12:13:13 -0500 Subject: [PATCH] Codeql issue hashicorp (#207) * resolve 401 unauth error * resolve 401 unauth error --------- Co-authored-by: Sayali M --- .github/workflows/codeql.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a3b5763f..d063c909 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -96,6 +96,55 @@ jobs: run: | ${{ 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: | + [ + { + "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 .