Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
Mario Campos committed Jul 1, 2021

Unverified

No user is associated with the committer email.
1 parent 028f98f commit 1c69fae
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .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:

0 comments on commit 1c69fae

Please sign in to comment.