Skip to content

Commit c357ca7

Browse files
Merge pull request #606 from edoardopirovano/local-bundle
Allow local instead of downloaded CodeQL
2 parents 53cf5d9 + d9050f4 commit c357ca7

File tree

4 files changed

+146
-112
lines changed

4 files changed

+146
-112
lines changed

.github/workflows/pr-checks.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ jobs:
294294
runs-on: ubuntu-latest
295295
outputs:
296296
versions: ${{ steps.compare.outputs.versions }}
297+
nightly-url: ${{ steps.get-url.outputs.nightly-url }}
297298

298299
steps:
299300
- uses: actions/checkout@v2
@@ -879,3 +880,23 @@ jobs:
879880
# Deliberately don't use TEST_MODE here. This is specifically testing
880881
# the compatibility with the API.
881882
runner/dist/codeql-runner-linux upload --sarif-file src/testdata/empty-sarif.sarif --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
883+
884+
multi-language-repo_test-local-codeql:
885+
needs: [check-js, check-node-modules, check-codeql-versions]
886+
runs-on: ubuntu-latest
887+
888+
steps:
889+
- uses: actions/checkout@v2
890+
- name: Move codeql-action
891+
run: |
892+
wget ${{ needs.check-codeql-versions.outputs.nightly-url }}
893+
mkdir ../action
894+
mv * .github ../action/
895+
mv ../action/tests/multi-language-repo/{*,.github} .
896+
mv ../action/.github/workflows .github
897+
- uses: ./../action/init
898+
with:
899+
tools: ../action/codeql-bundle.tar.gz
900+
- name: Build code
901+
run: ./build.sh
902+
- uses: ./../action/analyze

lib/codeql.js

Lines changed: 46 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)