Skip to content

Commit

Permalink
Added codeql env var to skip types for 8.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-shostak committed Dec 30, 2024
1 parent 39d8d7d commit 06ac7be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 06ac7be

Please sign in to comment.