mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 09:10:07 +08:00
- The `upload` input to the `analyze` Action now accepts the following values:
- `always` is the default value, which uploads the SARIF file to Code Scanning for successful and failed runs.
- `failure-only` is recommended for customers post-processing the SARIF file before uploading it to Code Scanning. This option uploads debugging information to Code Scanning for failed runs to improve the debugging experience.
- `never` avoids uploading the SARIF file to Code Scanning even if the code scanning run fails. This is not recommended for external users since it complicates debugging.
- The legacy `true` and `false` options will be interpreted as `always` and `failure-only` respectively.
---------
Co-authored-by: Henry Mercer <henry.mercer@me.com>
29 lines
845 B
YAML
29 lines
845 B
YAML
name: "Custom source root"
|
|
description: "Checks that the argument specifying a non-default source root works"
|
|
versions: ["latest", "cached", "nightly-latest"] # This feature is not compatible with old CLIs
|
|
operatingSystems: ["ubuntu"]
|
|
steps:
|
|
- name: Move codeql-action
|
|
shell: bash
|
|
run: |
|
|
mkdir ../new-source-root
|
|
mv * ../new-source-root
|
|
- uses: ./../action/init
|
|
with:
|
|
languages: javascript
|
|
source-root: ../new-source-root
|
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
- uses: ./../action/analyze
|
|
with:
|
|
upload-database: false
|
|
skip-queries: true
|
|
upload: never
|
|
- name: Assert database exists
|
|
shell: bash
|
|
run: |
|
|
cd "$RUNNER_TEMP/codeql_databases"
|
|
if [[ ! -d javascript ]]; then
|
|
echo "Did not find a JavaScript database"
|
|
exit 1
|
|
fi
|