From 06ac7bebb1aaf03b7885692019a27d9c3a6cba8c Mon Sep 17 00:00:00 2001 From: Elena Shostak Date: Mon, 30 Dec 2024 12:24:55 +0100 Subject: [PATCH] Added codeql env var to skip types for 8.x branch --- .github/workflows/codeql.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e80b3b2c73463..43200234e4d94 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -45,11 +45,17 @@ jobs: run: | echo "CHECKOUT_REF=$(git symbolic-ref HEAD)" >> "$GITHUB_ENV" echo "CHECKOUT_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV" + echo "CHECKOUT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) >> "$GITHUB_ENV" + + - name: Set experimental environment variable for 8.x branch + if: env.CHECKOUT_BRANCH_NAME == '8.x' + run: echo "CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES=true" >> "$GITHUB_ENV" - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3 env: NODE_OPTIONS: "--max-old-space-size=6144" + CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES: ${{ env.CODEQL_EXTRACTOR_JAVASCRIPT_OPTION_SKIP_TYPES }} with: category: "/language:${{matrix.language}}" ref: ${{ env.CHECKOUT_REF }}