From 1c69fae407b5d76fec519f4382eba5c986dad013 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Thu, 1 Jul 2021 18:34:34 -0500 Subject: [PATCH] Avoid moving repo files out of \$GITHUB_WORKSPACE in 'source-root' test Moving the files into ../action was causing the job to fail because it couldn't find the test directory anymore. According to @adityasharad, these 'mv's should not be necessary. Removing these means changing the path to the actions. I'm also removing the 'config-file' input to keep the test minimal. I think this will mean that CodeQL will use the default query suite, so I hope that this doesn't change the results. --- .github/workflows/pr-checks.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 366dd290a..03018fc53 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -901,22 +901,14 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Move codeql-action - shell: bash - run: | - mkdir ../action - mv * .github ../action/ - mv ../action/tests/multi-language-repo/{*,.github} . - mv ../action/.github/workflows .github - - uses: ./../action/init + - uses: ./action/init with: - config-file: ".github/codeql/codeql-config-packaging.yml" languages: javascript source-root: tests/multi-language-repo - name: Build code shell: bash run: ./build.sh - - uses: ./../action/analyze + - uses: ./action/analyze with: output: "${{ runner.temp }}/results" env: