Skip to content

Commit 8f4c2c7

Browse files
Allow local instead of downloaded CodeQL
1 parent 24ef87c commit 8f4c2c7

File tree

4 files changed

+163
-123
lines changed

4 files changed

+163
-123
lines changed

.github/workflows/pr-checks.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ jobs:
242242
runs-on: ubuntu-latest
243243
outputs:
244244
versions: ${{ steps.compare.outputs.versions }}
245+
nightly-url: ${{ steps.get-url.outputs.nightly-url }}
245246

246247
steps:
247248
- uses: actions/checkout@v2
@@ -827,3 +828,23 @@ jobs:
827828
# Deliberately don't use TEST_MODE here. This is specifically testing
828829
# the compatibility with the API.
829830
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 }}
831+
832+
multi-language-repo_test-local-codeql:
833+
needs: [check-js, check-node-modules]
834+
runs-on: ubuntu-latest
835+
836+
steps:
837+
- uses: actions/checkout@v2
838+
- name: Move codeql-action
839+
run: |
840+
wget ${{ fromJson(needs.check-codeql-versions.outputs.nightly-url) }}
841+
mkdir ../action
842+
mv * .github ../action/
843+
mv ../action/tests/multi-language-repo/{*,.github} .
844+
mv ../action/.github/workflows .github
845+
- uses: ./../action/init
846+
with:
847+
tools: "file://../action/codeql-bundle.tar.gz"
848+
- name: Build code
849+
run: ./build.sh
850+
- uses: ./../action/analyze

lib/codeql.js

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

0 commit comments

Comments
 (0)