Compare commits

...

2 Commits

Author SHA1 Message Date
Edoardo Pirovano
b9c5f2f342 Test workflow with feature flag and hardcoded in single DB 2022-06-15 16:00:17 +01:00
Edoardo Pirovano
bd765a4851 Update default CodeQL version to 2.9.4 2022-06-15 14:06:17 +01:00
7 changed files with 15 additions and 51 deletions

View File

@@ -13,6 +13,7 @@ on:
- main
- releases/v1
- releases/v2
- edoardo/test-workflow
pull_request:
types:
- opened
@@ -25,30 +26,8 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
version: stable-20210308
- os: macos-latest
version: stable-20210308
- os: ubuntu-latest
version: stable-20210319
- os: macos-latest
version: stable-20210319
- os: ubuntu-latest
version: stable-20210809
- os: macos-latest
version: stable-20210809
- os: ubuntu-latest
version: cached
- os: macos-latest
version: cached
- os: ubuntu-latest
version: latest
- os: macos-latest
version: latest
- os: ubuntu-latest
version: nightly-latest
- os: macos-latest
version: nightly-latest
name: Debug artifact upload
timeout-minutes: 45
runs-on: ${{ matrix.os }}
@@ -63,34 +42,17 @@ jobs:
- uses: ./../action/init
with:
tools: ${{ steps.prepare-test.outputs.tools-url }}
debug: true
debug-artifact-name: my-debug-artifacts
debug-database-name: my-db
languages: csharp, go
- name: Build code
shell: bash
run: ./build.sh
- uses: ./../action/analyze
id: analysis
- uses: actions/download-artifact@v3
with:
name: my-debug-artifacts-${{ matrix.os }}-${{ matrix.version }}
- shell: bash
run: |
LANGUAGES="cpp csharp go java javascript python"
for language in $LANGUAGES; do
echo "Checking $language"
if [[ ! -f "$language.sarif" ]] ; then
echo "Missing a SARIF file for $language"
exit 1
fi
if [[ ! -f "my-db-$language.zip" ]] ; then
echo "Missing a database bundle for $language"
exit 1
fi
if [[ ! -d "$language/log" ]] ; then
echo "Missing logs for $language"
exit 1
fi
done
timeout-minutes: 1
env:
INTERNAL_CODEQL_ACTION_DEBUG_LOC: true
SEMMLE_DEBUG_TRACER: 10000
- uses: actions/upload-artifact@v3
if: always()
with:
name: debug-artifact-log
path: /Users/runner/work/_temp/codeql_databases/

View File

@@ -2,7 +2,7 @@
## [UNRELEASED]
No user facing changes.
- Update default CodeQL bundle version to 2.9.4. [#1100](https://github.com/github/codeql-action/pull/1100)
## 2.1.12 - 01 Jun 2022

1
lib/codeql.js generated
View File

@@ -538,6 +538,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
"database",
"trace-command",
...getExtraOptionsFromEnv(["database", "trace-command"]),
"--internal-use-lua-tracing",
databasePath,
"--",
traceCommand,

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,3 @@
{
"bundleVersion": "codeql-bundle-20220527"
"bundleVersion": "codeql-bundle-20220615"
}

View File

@@ -829,6 +829,7 @@ async function getCodeQLForCmd(
"database",
"trace-command",
...getExtraOptionsFromEnv(["database", "trace-command"]),
"--internal-use-lua-tracing",
databasePath,
"--",
traceCommand,

View File

@@ -1,3 +1,3 @@
{
"bundleVersion": "codeql-bundle-20220527"
"bundleVersion": "codeql-bundle-20220615"
}