Skip to content

Commit 84173b9

Browse files
Merge pull request #621 from github/update-v1.0.6-3c8ba717
Merge main into v1
2 parents 500dad9 + 8cbe2f5 commit 84173b9

File tree

113 files changed

+923
-7543
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+923
-7543
lines changed

.github/workflows/pr-checks.yml

+22
Original file line numberDiff line numberDiff line change
@@ -894,3 +894,25 @@ jobs:
894894
- name: Build code
895895
run: ./build.sh
896896
- uses: ./../action/analyze
897+
898+
test-javascript-source-root:
899+
needs: [check-js, check-node-modules]
900+
runs-on: ubuntu-latest
901+
902+
steps:
903+
- uses: actions/checkout@v2
904+
- uses: ./init
905+
with:
906+
languages: javascript
907+
source-root: tests/multi-language-repo
908+
- uses: ./analyze
909+
with:
910+
skip-queries: true
911+
upload: false
912+
- name: Assert database exists
913+
run: |
914+
cd "$RUNNER_TEMP/codeql_databases"
915+
if [[ ! -d javascript ]]; then
916+
echo "Did not find a JavaScript database"
917+
exit 1
918+
fi

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CodeQL Action and CodeQL Runner Changelog
22

3+
## 1.0.6 - 19 Jul 2021
4+
5+
- The `init` step of the Action now supports a `source-root` input as a path to the root source-code directory. By default, the path is relative to `$GITHUB_WORKSPACE`. [#607](https://github.com/github/codeql-action/pull/607)
6+
- The `init` step will now try to install a few Python tools needed by this Action when running on a self-hosted runner. [#616](https://github.com/github/codeql-action/pull/616)
7+
38
## 1.0.5 - 12 Jul 2021
49

510
- The `analyze` step of the Action now supports a `skip-queries` option to merely build the CodeQL database without analyzing. This functionality is not present in the runner. Additionally, the step will no longer fail if it encounters a finalized database, and will instead continue with query execution. [#602](https://github.com/github/codeql-action/pull/602)

init/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ inputs:
3838
description: Try to auto-install your python dependencies
3939
required: true
4040
default: 'true'
41+
source-root:
42+
description: Path of the root source code directory, relative to $GITHUB_WORKSPACE.
43+
required: false
4144
outputs:
4245
codeql-path:
4346
description: The path of the CodeQL binary used for analysis

lib/config-utils.js

+21-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/database-upload.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/database-upload.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/database-upload.test.js

+12-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)