Skip to content

Commit 1c69fae

Browse files
committed
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.
1 parent 028f98f commit 1c69fae

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -901,22 +901,14 @@ jobs:
901901

902902
steps:
903903
- uses: actions/checkout@v2
904-
- name: Move codeql-action
905-
shell: bash
906-
run: |
907-
mkdir ../action
908-
mv * .github ../action/
909-
mv ../action/tests/multi-language-repo/{*,.github} .
910-
mv ../action/.github/workflows .github
911-
- uses: ./../action/init
904+
- uses: ./action/init
912905
with:
913-
config-file: ".github/codeql/codeql-config-packaging.yml"
914906
languages: javascript
915907
source-root: tests/multi-language-repo
916908
- name: Build code
917909
shell: bash
918910
run: ./build.sh
919-
- uses: ./../action/analyze
911+
- uses: ./action/analyze
920912
with:
921913
output: "${{ runner.temp }}/results"
922914
env:

0 commit comments

Comments
 (0)