Skip to content

Commit

Permalink
Address PR comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardopirovano committed Jun 28, 2021
1 parent 8f4c2c7 commit 34ef49a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -830,14 +830,14 @@ jobs:
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 }}
multi-language-repo_test-local-codeql:
needs: [check-js, check-node-modules]
needs: [check-js, check-node-modules, check-codeql-versions]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Move codeql-action
run: |
wget ${{ fromJson(needs.check-codeql-versions.outputs.nightly-url) }}
wget ${{ needs.check-codeql-versions.outputs.nightly-url }}
mkdir ../action
mv * .github ../action/
mv ../action/tests/multi-language-repo/{*,.github} .
Expand Down
7 changes: 5 additions & 2 deletions src/codeql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,12 @@ export async function setupCodeQL(
try {
let codeqlFolder: string;
let codeqlURLVersion: string;
if (codeqlURL?.startsWith("file://")) {
const parsedUrl: URL | undefined = codeqlURL
? new URL(codeqlURL)
: undefined;
if (parsedUrl?.protocol === "file:") {
codeqlFolder = await toolcache.extractTar(
codeqlURL.substr(7),
parsedUrl.pathname.substring(1),
tempDir,
logger
);
Expand Down

0 comments on commit 34ef49a

Please sign in to comment.