Skip to content

Adapt to modified LGTM_ env variables behavior #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jun 5, 2024
Merged
14 changes: 6 additions & 8 deletions .github/workflows/code_scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ on:

env:
LGTM_INDEX_XML_MODE: all
LGTM_INDEX_FILETYPES: ".json:JSON"

jobs:
analyze:
analyze-javascript:
name: Analyze
runs-on: 'ubuntu-latest'
permissions:
Expand Down Expand Up @@ -54,19 +55,16 @@ jobs:
-o "$cds_file.json"
done

# Initializes the CodeQL tools for scanning.
- name: Extract version from qlt.conf.json
uses: sergeysova/jq-action@v2
id: version
with:
cmd: 'jq .CodeQLCLIBundle qlt.conf.json -r'
- name: Extract CodeQL bundle version from qlt.conf.json
run: |
echo "BUNDLE_VERSION=$(jq .CodeQLCLIBundle qlt.conf.json -r)" >> $GITHUB_ENV

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript
config-file: ./.github/codeql/codeql-config.yaml
tools: https://github.com/github/codeql-action/releases/download/${{steps.version.outputs.value}}/codeql-bundle-linux64.tar.gz
tools: https://github.com/github/codeql-action/releases/download/${{env.BUNDLE_VERSION}}/codeql-bundle-linux64.tar.gz
debug: true

- name: Perform CodeQL Analysis
Expand Down
Loading