From 01ac72b989746958e4531ffe9b8063208671ebfd Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Tue, 16 Jan 2024 08:25:08 +0100 Subject: [PATCH] Dat 15853 (#150) * chore(create-release.yml): update version of sonar-push.yml to v0.6.1 for the sonar job in create-release workflow chore(extension-attach-artifact-release.yml): update version of scripts to v0.6.1 for getting reusable script files in extension-attach-artifact-release workflow chore(extension-release-prepare.yml): update version of extension-release-rollback.yml to v0.6.1 for the release-rollback job in extension-release-prepare workflow chore(extension-release-published.yml): update version of extension-release-prepare.yml to v0.6.1 for the maven-release job in extension-release-published workflow chore(os-extension-test.yml): update version of sonar-pull-request.yml to v0.6.1 for the sonar-pr job in os-extension-test workflow chore(package-linux.yml): update version of scripts and package-deb-pom.xml to v0.6.1 for getting reusable script files and packaging linux in package-linux workflow chore(pom-release-published.yml): update version of extension-release-prepare.yml to v0.6.1 for the maven-release job in pom-release-published workflow chore(pro-extension-test.yml): update version of sonar-pull-request.yml to v0.6.1 for the sonar-pr job in pro-extension-test workflow chore(synk-nightly.yml): delete synk-nightly workflow docs(README.md): remove snyk-nightly.yml from the list of reusable workflows in README.md * chore(codeql.yml): add support for running an extra command before attaching the artifact The `extraCommand` input parameter has been added to the CodeQL workflow. This allows users to specify an additional command to run before attaching the artifact. The default value is an empty string. This change provides flexibility for users who may need to run custom commands as part of their workflow. * chore(codeql.yml): add setup for JDK 17 with Temurin distribution and Maven cache for Java language --- .github/workflows/codeql.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6079b133..aabd203f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -60,11 +60,19 @@ jobs: # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs queries: security-extended,security-and-quality + - name: Setup JDK + if: matrix.language == 'java' + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + - name: Run extra command if: inputs.extraCommand != '' run: | ${{ inputs.extraCommand }} - + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild