Skip to content

Commit

Permalink
[CodeQL] Added bootstrap step (elastic#191746)
Browse files Browse the repository at this point in the history
## Summary

Added bootstrap step before CodeQL scan. 

Tested the run on push -
https://github.com/elastic/kibana/actions/runs/10615078580/job/29422368227.
The workflow run was successful and had almost the same timing. Although
no new issues were identified, it's safe to keep the bootstrap step
before the scan.

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
elena-shostak and elasticmachine authored Aug 30, 2024
1 parent de32af6 commit 37bd5f6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ jobs:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml

# TODO: Possibly required to follow all call paths, however, when enabled, the step below runs out of memory.
# Possible workarounds: Apply for access to the GitHub beta where we can use beefier machines, or run it ourselves on Buildkite
# - name: yarn kbn bootstrap
# run: |
# mkdir ~/.npm-global
# npm config set prefix '~/.npm-global'
# export PATH=~/.npm-global/bin:$PATH
# yarn kbn bootstrap --no-validate --no-vscode
- name: setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: yarn kbn bootstrap
run: |
yarn kbn bootstrap --no-validate --no-vscode
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449 # v3.26.3
Expand Down

0 comments on commit 37bd5f6

Please sign in to comment.