mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Update diagnostics export PR check to use 2.12.6
This commit is contained in:
8
.github/workflows/__diagnostics-export.yml
generated
vendored
8
.github/workflows/__diagnostics-export.yml
generated
vendored
@@ -28,11 +28,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-20230317
|
version: stable-20230403
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-20230317
|
version: stable-20230403
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: stable-20230317
|
version: stable-20230403
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: latest
|
version: latest
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
||||||
run: |
|
run: |
|
||||||
for i in {1..2}; do
|
for i in {1..2}; do
|
||||||
# Use the same location twice to test the workaround for the bug in CodeQL CLI 2.12.5 that
|
# Use the same location twice to test the workaround for the bug in CodeQL CLI 2.12.6 that
|
||||||
# produces an invalid diagnostic with multiple identical location objects.
|
# produces an invalid diagnostic with multiple identical location objects.
|
||||||
"$CODEQL_PATH" database add-diagnostic \
|
"$CODEQL_PATH" database add-diagnostic \
|
||||||
"$RUNNER_TEMP/codeql_databases/javascript" \
|
"$RUNNER_TEMP/codeql_databases/javascript" \
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
name: "Diagnostic export"
|
name: "Diagnostic export"
|
||||||
description: "Tests that manually added diagnostics are correctly exported to SARIF."
|
description: "Tests that manually added diagnostics are correctly exported to SARIF."
|
||||||
# Test on 2.12.5 (which requires a workaround in the Action), the latest release, and the latest
|
# Test on 2.12.6 (which requires a workaround in the Action), the latest release, and the latest
|
||||||
# nightly.
|
# nightly.
|
||||||
versions: ["stable-20230317", "latest", "nightly-latest"]
|
versions: ["stable-20230403", "latest", "nightly-latest"]
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_EXPORT_DIAGNOSTICS: true
|
CODEQL_ACTION_EXPORT_DIAGNOSTICS: true
|
||||||
steps:
|
steps:
|
||||||
@@ -17,7 +17,7 @@ steps:
|
|||||||
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
||||||
run: |
|
run: |
|
||||||
for i in {1..2}; do
|
for i in {1..2}; do
|
||||||
# Use the same location twice to test the workaround for the bug in CodeQL CLI 2.12.5 that
|
# Use the same location twice to test the workaround for the bug in CodeQL CLI 2.12.6 that
|
||||||
# produces an invalid diagnostic with multiple identical location objects.
|
# produces an invalid diagnostic with multiple identical location objects.
|
||||||
"$CODEQL_PATH" database add-diagnostic \
|
"$CODEQL_PATH" database add-diagnostic \
|
||||||
"$RUNNER_TEMP/codeql_databases/javascript" \
|
"$RUNNER_TEMP/codeql_databases/javascript" \
|
||||||
|
|||||||
Reference in New Issue
Block a user