mirror of
https://github.com/github/codeql-action.git
synced 2025-12-07 16:28:15 +08:00
Compare commits
57 Commits
v3.30.2
...
navntoft/t
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cdef7d057 | ||
|
|
aa90e97ad2 | ||
|
|
2b7d487cf8 | ||
|
|
f92cc3a0e7 | ||
|
|
185266a022 | ||
|
|
a1244387b0 | ||
|
|
dc9a47dceb | ||
|
|
3ca9525ddd | ||
|
|
0abf548bb3 | ||
|
|
e2636d2e4f | ||
|
|
df1fe23118 | ||
|
|
0d33fd9f26 | ||
|
|
5c30ae46c1 | ||
|
|
9df23425dc | ||
|
|
4e1dadc5b3 | ||
|
|
856e1e5c78 | ||
|
|
d797efbb26 | ||
|
|
4e2e64a92a | ||
|
|
ffcbb4c0c1 | ||
|
|
148e76abb6 | ||
|
|
21a1feb391 | ||
|
|
1479235f5d | ||
|
|
0d058cdc59 | ||
|
|
25e54dffab | ||
|
|
25c32186df | ||
|
|
191d3de659 | ||
|
|
192325c861 | ||
|
|
e68956d90b | ||
|
|
b660efdcfd | ||
|
|
e49458befe | ||
|
|
f374a62c8b | ||
|
|
0487de31f2 | ||
|
|
754f2e184f | ||
|
|
4f56152a48 | ||
|
|
5efa438e92 | ||
|
|
bb98ff4838 | ||
|
|
8a84a62542 | ||
|
|
eb50a881d8 | ||
|
|
4c534612bf | ||
|
|
dae3742b0a | ||
|
|
31d3ae847e | ||
|
|
3bf58bb047 | ||
|
|
2a4630c7f1 | ||
|
|
4366c13457 | ||
|
|
ed9d73bc6f | ||
|
|
c778749ed4 | ||
|
|
0c065fa4cf | ||
|
|
52ddbe1e52 | ||
|
|
6c261ed0c7 | ||
|
|
deb055de7e | ||
|
|
1b8f0ffedf | ||
|
|
d42097d387 | ||
|
|
16f15bc9a7 | ||
|
|
f11caf4aad | ||
|
|
71410c6e72 | ||
|
|
d981505040 | ||
|
|
f8fb310547 |
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@@ -1,4 +1,4 @@
|
|||||||
|
<!-- For GitHub staff: Remember that this is a public repository. -->
|
||||||
|
|
||||||
### Risk assessment
|
### Risk assessment
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/__all-platform-bundle.yml
generated
vendored
4
.github/workflows/__all-platform-bundle.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
all-platform-bundle:
|
all-platform-bundle:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -70,7 +73,6 @@ jobs:
|
|||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.github/workflows/__analyze-ref-input.yml
generated
vendored
4
.github/workflows/__analyze-ref-input.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
analyze-ref-input:
|
analyze-ref-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -74,7 +77,6 @@ jobs:
|
|||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
||||||
github.sha }}
|
github.sha }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/__autobuild-action.yml
generated
vendored
4
.github/workflows/__autobuild-action.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-action:
|
autobuild-action:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -67,7 +70,6 @@ jobs:
|
|||||||
CORECLR_PROFILER_PATH_64: ''
|
CORECLR_PROFILER_PATH_64: ''
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
if [[ ! -d csharp ]]; then
|
if [[ ! -d csharp ]]; then
|
||||||
|
|||||||
5
.github/workflows/__autobuild-direct-tracing-with-working-dir.yml
generated
vendored
5
.github/workflows/__autobuild-direct-tracing-with-working-dir.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Java to install
|
description: The version of Java to install
|
||||||
required: false
|
required: false
|
||||||
default: '17'
|
default: '17'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-direct-tracing-with-working-dir:
|
autobuild-direct-tracing-with-working-dir:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -70,7 +73,6 @@ jobs:
|
|||||||
java-version: ${{ inputs.java-version || '17' }}
|
java-version: ${{ inputs.java-version || '17' }}
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
# Make sure that Gradle build succeeds in autobuild-dir ...
|
# Make sure that Gradle build succeeds in autobuild-dir ...
|
||||||
cp -a ../action/tests/java-repo autobuild-dir
|
cp -a ../action/tests/java-repo autobuild-dir
|
||||||
@@ -82,7 +84,6 @@ jobs:
|
|||||||
languages: java
|
languages: java
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Check that indirect tracing is disabled
|
- name: Check that indirect tracing is disabled
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
||||||
echo "Expected indirect tracing to be disabled, but the" \
|
echo "Expected indirect tracing to be disabled, but the" \
|
||||||
|
|||||||
5
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
5
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Java to install
|
description: The version of Java to install
|
||||||
required: false
|
required: false
|
||||||
default: '17'
|
default: '17'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-direct-tracing:
|
autobuild-direct-tracing:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -70,7 +73,6 @@ jobs:
|
|||||||
java-version: ${{ inputs.java-version || '17' }}
|
java-version: ${{ inputs.java-version || '17' }}
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
- name: Set up Java test repo configuration
|
- name: Set up Java test repo configuration
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
mv * .github ../action/tests/multi-language-repo/
|
mv * .github ../action/tests/multi-language-repo/
|
||||||
mv ../action/tests/multi-language-repo/.github/workflows .github
|
mv ../action/tests/multi-language-repo/.github/workflows .github
|
||||||
@@ -85,7 +87,6 @@ jobs:
|
|||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
||||||
- name: Check that indirect tracing is disabled
|
- name: Check that indirect tracing is disabled
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
||||||
echo "Expected indirect tracing to be disabled, but the" \
|
echo "Expected indirect tracing to be disabled, but the" \
|
||||||
|
|||||||
3
.github/workflows/__build-mode-autobuild.yml
generated
vendored
3
.github/workflows/__build-mode-autobuild.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-autobuild:
|
build-mode-autobuild:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
4
.github/workflows/__build-mode-manual.yml
generated
vendored
4
.github/workflows/__build-mode-manual.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-manual:
|
build-mode-manual:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -81,7 +84,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
3
.github/workflows/__build-mode-none.yml
generated
vendored
3
.github/workflows/__build-mode-none.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-none:
|
build-mode-none:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__build-mode-rollback.yml
generated
vendored
3
.github/workflows/__build-mode-rollback.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-rollback:
|
build-mode-rollback:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__bundle-toolcache.yml
generated
vendored
3
.github/workflows/__bundle-toolcache.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
bundle-toolcache:
|
bundle-toolcache:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__bundle-zstd.yml
generated
vendored
3
.github/workflows/__bundle-zstd.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
bundle-zstd:
|
bundle-zstd:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__cleanup-db-cluster-dir.yml
generated
vendored
3
.github/workflows/__cleanup-db-cluster-dir.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-db-cluster-dir:
|
cleanup-db-cluster-dir:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__config-export.yml
generated
vendored
3
.github/workflows/__config-export.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
config-export:
|
config-export:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__config-input.yml
generated
vendored
3
.github/workflows/__config-input.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
config-input:
|
config-input:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
7
.github/workflows/__cpp-deptrace-disabled.yml
generated
vendored
7
.github/workflows/__cpp-deptrace-disabled.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-disabled:
|
cpp-deptrace-disabled:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -53,7 +56,6 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -65,8 +67,7 @@ jobs:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ls /usr/bin/errno; then
|
if ls /usr/bin/errno; then
|
||||||
echo "C/C++ autobuild installed errno, but it should not have since auto-install dependencies is disabled."
|
echo "C/C++ autobuild installed errno, but it should not have since auto-install dependencies is disabled."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
7
.github/workflows/__cpp-deptrace-enabled-on-macos.yml
generated
vendored
7
.github/workflows/__cpp-deptrace-enabled-on-macos.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-enabled-on-macos:
|
cpp-deptrace-enabled-on-macos:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -51,7 +54,6 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -63,8 +65,7 @@ jobs:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ! ls /usr/bin/errno; then
|
if ! ls /usr/bin/errno; then
|
||||||
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
|
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
|
||||||
else
|
else
|
||||||
|
|||||||
7
.github/workflows/__cpp-deptrace-enabled.yml
generated
vendored
7
.github/workflows/__cpp-deptrace-enabled.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-enabled:
|
cpp-deptrace-enabled:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -53,7 +56,6 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -65,8 +67,7 @@ jobs:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ! ls /usr/bin/errno; then
|
if ! ls /usr/bin/errno; then
|
||||||
echo "Did not autoinstall errno"
|
echo "Did not autoinstall errno"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
4
.github/workflows/__diagnostics-export.yml
generated
vendored
4
.github/workflows/__diagnostics-export.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
diagnostics-export:
|
diagnostics-export:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -64,7 +67,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Add test diagnostics
|
- name: Add test diagnostics
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
5
.github/workflows/__export-file-baseline-information.yml
generated
vendored
5
.github/workflows/__export-file-baseline-information.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
export-file-baseline-information:
|
export-file-baseline-information:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -73,7 +76,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -85,7 +87,6 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check results
|
- name: Check results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
expected_baseline_languages="c csharp go java kotlin javascript python ruby"
|
expected_baseline_languages="c csharp go java kotlin javascript python ruby"
|
||||||
|
|||||||
4
.github/workflows/__extractor-ram-threads.yml
generated
vendored
4
.github/workflows/__extractor-ram-threads.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
extractor-ram-threads:
|
extractor-ram-threads:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -54,7 +57,6 @@ jobs:
|
|||||||
ram: 230
|
ram: 230
|
||||||
threads: 1
|
threads: 1
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [ "${CODEQL_RAM}" != "230" ]; then
|
if [ "${CODEQL_RAM}" != "230" ]; then
|
||||||
echo "CODEQL_RAM is '${CODEQL_RAM}' instead of 230"
|
echo "CODEQL_RAM is '${CODEQL_RAM}' instead of 230"
|
||||||
|
|||||||
4
.github/workflows/__go-custom-queries.yml
generated
vendored
4
.github/workflows/__go-custom-queries.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-custom-queries:
|
go-custom-queries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -71,7 +74,6 @@ jobs:
|
|||||||
config-file: ./.github/codeql/custom-queries.yml
|
config-file: ./.github/codeql/custom-queries.yml
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml
generated
vendored
4
.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround-diagnostic:
|
go-indirect-tracing-workaround-diagnostic:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -72,7 +75,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: go build main.go
|
run: go build main.go
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml
generated
vendored
4
.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround-no-file-program:
|
go-indirect-tracing-workaround-no-file-program:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -73,7 +76,6 @@ jobs:
|
|||||||
languages: go
|
languages: go
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: go build main.go
|
run: go build main.go
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/__go-indirect-tracing-workaround.yml
generated
vendored
7
.github/workflows/__go-indirect-tracing-workaround.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround:
|
go-indirect-tracing-workaround:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -68,11 +71,9 @@ jobs:
|
|||||||
languages: go
|
languages: go
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: go build main.go
|
run: go build main.go
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if [[ -z "${CODEQL_ACTION_GO_BINARY}" ]]; then
|
if [[ -z "${CODEQL_ACTION_GO_BINARY}" ]]; then
|
||||||
echo "Expected the workaround for indirect tracing of static binaries to trigger, but the" \
|
echo "Expected the workaround for indirect tracing of static binaries to trigger, but the" \
|
||||||
"CODEQL_ACTION_GO_BINARY environment variable is not set."
|
"CODEQL_ACTION_GO_BINARY environment variable is not set."
|
||||||
|
|||||||
6
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
6
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-autobuilder:
|
go-tracing-autobuilder:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -99,8 +102,7 @@ jobs:
|
|||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- uses: ./../action/autobuild
|
- uses: ./../action/autobuild
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if [[ "${CODEQL_ACTION_DID_AUTOBUILD_GOLANG}" != true ]]; then
|
if [[ "${CODEQL_ACTION_DID_AUTOBUILD_GOLANG}" != true ]]; then
|
||||||
echo "Expected the Go autobuilder to be run, but the" \
|
echo "Expected the Go autobuilder to be run, but the" \
|
||||||
"CODEQL_ACTION_DID_AUTOBUILD_GOLANG environment variable was not true."
|
"CODEQL_ACTION_DID_AUTOBUILD_GOLANG environment variable was not true."
|
||||||
|
|||||||
7
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
7
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-custom-build-steps:
|
go-tracing-custom-build-steps:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -98,11 +101,9 @@ jobs:
|
|||||||
languages: go
|
languages: go
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: go build main.go
|
run: go build main.go
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
# Once we start running Bash 4.2 in all environments, we can replace the
|
# Once we start running Bash 4.2 in all environments, we can replace the
|
||||||
# `! -z` flag with the more elegant `-v` which confirms that the variable
|
# `! -z` flag with the more elegant `-v` which confirms that the variable
|
||||||
# is actually unset and not potentially set to a blank value.
|
# is actually unset and not potentially set to a blank value.
|
||||||
|
|||||||
6
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
6
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-legacy-workflow:
|
go-tracing-legacy-workflow:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -98,8 +101,7 @@ jobs:
|
|||||||
languages: go
|
languages: go
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
if [[ ! -d go ]]; then
|
if [[ ! -d go ]]; then
|
||||||
echo "Did not find a Go database"
|
echo "Did not find a Go database"
|
||||||
|
|||||||
6
.github/workflows/__init-with-registries.yml
generated
vendored
6
.github/workflows/__init-with-registries.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
init-with-registries:
|
init-with-registries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -78,7 +81,6 @@ jobs:
|
|||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Verify packages installed
|
- name: Verify packages installed
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
PRIVATE_PACK="$HOME/.codeql/packages/codeql-testing/private-pack"
|
PRIVATE_PACK="$HOME/.codeql/packages/codeql-testing/private-pack"
|
||||||
CODEQL_PACK1="$HOME/.codeql/packages/codeql-testing/codeql-pack1"
|
CODEQL_PACK1="$HOME/.codeql/packages/codeql-testing/codeql-pack1"
|
||||||
@@ -100,7 +102,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify qlconfig.yml file was created
|
- name: Verify qlconfig.yml file was created
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
||||||
echo "Expected qlconfig.yml file to be created at $QLCONFIG_PATH"
|
echo "Expected qlconfig.yml file to be created at $QLCONFIG_PATH"
|
||||||
@@ -115,7 +116,6 @@ jobs:
|
|||||||
- name: Verify contents of qlconfig.yml
|
- name: Verify contents of qlconfig.yml
|
||||||
# yq is not available on windows
|
# yq is not available on windows
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
||||||
cat $QLCONFIG_PATH | yq -e '.registries[] | select(.url == "https://ghcr.io/v2/") | select(.packages == "*/*")'
|
cat $QLCONFIG_PATH | yq -e '.registries[] | select(.url == "https://ghcr.io/v2/") | select(.packages == "*/*")'
|
||||||
|
|||||||
5
.github/workflows/__javascript-source-root.yml
generated
vendored
5
.github/workflows/__javascript-source-root.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
javascript-source-root:
|
javascript-source-root:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -53,7 +56,6 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Move codeql-action
|
- name: Move codeql-action
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
mkdir ../new-source-root
|
mkdir ../new-source-root
|
||||||
mv * ../new-source-root
|
mv * ../new-source-root
|
||||||
@@ -66,7 +68,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
skip-queries: true
|
skip-queries: true
|
||||||
- name: Assert database exists
|
- name: Assert database exists
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
if [[ ! -d javascript ]]; then
|
if [[ ! -d javascript ]]; then
|
||||||
|
|||||||
4
.github/workflows/__job-run-uuid-sarif.yml
generated
vendored
4
.github/workflows/__job-run-uuid-sarif.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
job-run-uuid-sarif:
|
job-run-uuid-sarif:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -63,7 +66,6 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check results
|
- name: Check results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
actual=$(jq -r '.runs[0].properties.jobRunUuid' javascript.sarif)
|
actual=$(jq -r '.runs[0].properties.jobRunUuid' javascript.sarif)
|
||||||
|
|||||||
3
.github/workflows/__language-aliases.yml
generated
vendored
3
.github/workflows/__language-aliases.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
language-aliases:
|
language-aliases:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
8
.github/workflows/__multi-language-autodetect.yml
generated
vendored
8
.github/workflows/__multi-language-autodetect.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
multi-language-autodetect:
|
multi-language-autodetect:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -94,7 +97,6 @@ jobs:
|
|||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Use Xcode 16
|
- name: Use Xcode 16
|
||||||
shell: bash
|
|
||||||
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
||||||
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
||||||
|
|
||||||
@@ -107,7 +109,6 @@ jobs:
|
|||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
@@ -116,7 +117,6 @@ jobs:
|
|||||||
upload-database: false
|
upload-database: false
|
||||||
|
|
||||||
- name: Check language autodetect for all languages excluding Swift
|
- name: Check language autodetect for all languages excluding Swift
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
|
CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
|
||||||
if [[ ! -d $CPP_DB ]] || [[ ! $CPP_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
|
if [[ ! -d $CPP_DB ]] || [[ ! $CPP_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
|
||||||
@@ -156,7 +156,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check language autodetect for Swift on macOS
|
- name: Check language autodetect for Swift on macOS
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }}
|
||||||
if [[ ! -d $SWIFT_DB ]] || [[ ! $SWIFT_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
|
if [[ ! -d $SWIFT_DB ]] || [[ ! $SWIFT_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
|
||||||
@@ -164,4 +163,5 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|||||||
4
.github/workflows/__overlay-init-fallback.yml
generated
vendored
4
.github/workflows/__overlay-init-fallback.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
overlay-init-fallback:
|
overlay-init-fallback:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -61,7 +64,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases/actions"
|
cd "$RUNNER_TEMP/codeql_databases/actions"
|
||||||
if ! grep -q 'overlayBaseDatabase: false' codeql-database.yml ; then
|
if ! grep -q 'overlayBaseDatabase: false' codeql-database.yml ; then
|
||||||
|
|||||||
5
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
5
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
packaging-codescanning-config-inputs-js:
|
packaging-codescanning-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -93,7 +96,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -109,7 +111,6 @@ jobs:
|
|||||||
queries-not-run: foo,bar
|
queries-not-run: foo,bar
|
||||||
|
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
# We should have 4 hits from these rules
|
# We should have 4 hits from these rules
|
||||||
|
|||||||
5
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
5
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-inputs-js:
|
packaging-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -93,7 +96,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -109,7 +111,6 @@ jobs:
|
|||||||
queries-not-run: foo,bar
|
queries-not-run: foo,bar
|
||||||
|
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
# We should have 4 hits from these rules
|
# We should have 4 hits from these rules
|
||||||
|
|||||||
5
.github/workflows/__packaging-config-js.yml
generated
vendored
5
.github/workflows/__packaging-config-js.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-js:
|
packaging-config-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -92,7 +95,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -108,7 +110,6 @@ jobs:
|
|||||||
queries-not-run: foo,bar
|
queries-not-run: foo,bar
|
||||||
|
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
# We should have 4 hits from these rules
|
# We should have 4 hits from these rules
|
||||||
|
|||||||
5
.github/workflows/__packaging-inputs-js.yml
generated
vendored
5
.github/workflows/__packaging-inputs-js.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
packaging-inputs-js:
|
packaging-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -93,7 +96,6 @@ jobs:
|
|||||||
packs: codeql-testing/codeql-pack1@1.0.0, codeql-testing/codeql-pack2, codeql-testing/codeql-pack3:other-query.ql
|
packs: codeql-testing/codeql-pack1@1.0.0, codeql-testing/codeql-pack2, codeql-testing/codeql-pack3:other-query.ql
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -108,7 +110,6 @@ jobs:
|
|||||||
queries-not-run: foo,bar
|
queries-not-run: foo,bar
|
||||||
|
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
# We should have 4 hits from these rules
|
# We should have 4 hits from these rules
|
||||||
|
|||||||
3
.github/workflows/__quality-queries.yml
generated
vendored
3
.github/workflows/__quality-queries.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
quality-queries:
|
quality-queries:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
4
.github/workflows/__remote-config.yml
generated
vendored
4
.github/workflows/__remote-config.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
remote-config:
|
remote-config:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -72,7 +75,6 @@ jobs:
|
|||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
||||||
github.sha }}
|
github.sha }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
|
|||||||
3
.github/workflows/__resolve-environment-action.yml
generated
vendored
3
.github/workflows/__resolve-environment-action.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
resolve-environment-action:
|
resolve-environment-action:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
6
.github/workflows/__rubocop-multi-language.yml
generated
vendored
6
.github/workflows/__rubocop-multi-language.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
rubocop-multi-language:
|
rubocop-multi-language:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -53,13 +56,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ruby-version: 2.6
|
ruby-version: 2.6
|
||||||
- name: Install Code Scanning integration
|
- name: Install Code Scanning integration
|
||||||
shell: bash
|
|
||||||
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
|
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
|
||||||
run: bundle install
|
run: bundle install
|
||||||
- name: RuboCop run
|
- name: RuboCop run
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
bash -c "
|
bash -c "
|
||||||
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
|
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
|
||||||
|
|||||||
4
.github/workflows/__ruby.yml
generated
vendored
4
.github/workflows/__ruby.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
ruby:
|
ruby:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -67,7 +70,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
RUBY_DB="${{ fromJson(steps.analysis.outputs.db-locations).ruby }}"
|
RUBY_DB="${{ fromJson(steps.analysis.outputs.db-locations).ruby }}"
|
||||||
if [[ ! -d "$RUBY_DB" ]]; then
|
if [[ ! -d "$RUBY_DB" ]]; then
|
||||||
|
|||||||
4
.github/workflows/__rust.yml
generated
vendored
4
.github/workflows/__rust.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
rust:
|
rust:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -65,7 +68,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
RUST_DB="${{ fromJson(steps.analysis.outputs.db-locations).rust }}"
|
RUST_DB="${{ fromJson(steps.analysis.outputs.db-locations).rust }}"
|
||||||
if [[ ! -d "$RUST_DB" ]]; then
|
if [[ ! -d "$RUST_DB" ]]; then
|
||||||
|
|||||||
6
.github/workflows/__split-workflow.yml
generated
vendored
6
.github/workflows/__split-workflow.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
split-workflow:
|
split-workflow:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -80,7 +83,6 @@ jobs:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -89,7 +91,6 @@ jobs:
|
|||||||
upload-database: false
|
upload-database: false
|
||||||
|
|
||||||
- name: Assert No Results
|
- name: Assert No Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [ "$(ls -A $RUNNER_TEMP/results)" ]; then
|
if [ "$(ls -A $RUNNER_TEMP/results)" ]; then
|
||||||
echo "Expected results directory to be empty after skipping query execution!"
|
echo "Expected results directory to be empty after skipping query execution!"
|
||||||
@@ -100,7 +101,6 @@ jobs:
|
|||||||
output: ${{ runner.temp }}/results
|
output: ${{ runner.temp }}/results
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
# We should have 4 hits from these rules
|
# We should have 4 hits from these rules
|
||||||
|
|||||||
3
.github/workflows/__start-proxy.yml
generated
vendored
3
.github/workflows/__start-proxy.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
start-proxy:
|
start-proxy:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
3
.github/workflows/__submit-sarif-failure.yml
generated
vendored
3
.github/workflows/__submit-sarif-failure.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
submit-sarif-failure:
|
submit-sarif-failure:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
5
.github/workflows/__swift-autobuild.yml
generated
vendored
5
.github/workflows/__swift-autobuild.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
swift-autobuild:
|
swift-autobuild:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -55,7 +58,6 @@ jobs:
|
|||||||
build-mode: autobuild
|
build-mode: autobuild
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Check working directory
|
- name: Check working directory
|
||||||
shell: bash
|
|
||||||
run: pwd
|
run: pwd
|
||||||
- uses: ./../action/autobuild
|
- uses: ./../action/autobuild
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -64,7 +66,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
||||||
if [[ ! -d "$SWIFT_DB" ]]; then
|
if [[ ! -d "$SWIFT_DB" ]]; then
|
||||||
|
|||||||
7
.github/workflows/__swift-custom-build.yml
generated
vendored
7
.github/workflows/__swift-custom-build.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
swift-custom-build:
|
swift-custom-build:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -68,7 +71,6 @@ jobs:
|
|||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Use Xcode 16
|
- name: Use Xcode 16
|
||||||
shell: bash
|
|
||||||
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
if: runner.os == 'macOS' && matrix.version != 'nightly-latest'
|
||||||
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
run: sudo xcode-select -s "/Applications/Xcode_16.app"
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -77,17 +79,14 @@ jobs:
|
|||||||
languages: swift
|
languages: swift
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Check working directory
|
- name: Check working directory
|
||||||
shell: bash
|
|
||||||
run: pwd
|
run: pwd
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
id: analysis
|
id: analysis
|
||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}"
|
||||||
if [[ ! -d "$SWIFT_DB" ]]; then
|
if [[ ! -d "$SWIFT_DB" ]]; then
|
||||||
|
|||||||
5
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
5
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
test-autobuild-working-dir:
|
test-autobuild-working-dir:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -49,7 +52,6 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
# Make sure that Gradle build succeeds in autobuild-dir ...
|
# Make sure that Gradle build succeeds in autobuild-dir ...
|
||||||
cp -a ../action/tests/java-repo autobuild-dir
|
cp -a ../action/tests/java-repo autobuild-dir
|
||||||
@@ -64,7 +66,6 @@ jobs:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
if [[ ! -d java ]]; then
|
if [[ ! -d java ]]; then
|
||||||
|
|||||||
5
.github/workflows/__test-local-codeql.yml
generated
vendored
5
.github/workflows/__test-local-codeql.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
test-local-codeql:
|
test-local-codeql:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -64,7 +67,6 @@ jobs:
|
|||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Fetch a CodeQL bundle
|
- name: Fetch a CodeQL bundle
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
CODEQL_URL: ${{ steps.prepare-test.outputs.tools-url }}
|
CODEQL_URL: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
run: |
|
run: |
|
||||||
@@ -76,7 +78,6 @@ jobs:
|
|||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ./codeql-bundle-linux64.tar.zst
|
tools: ./codeql-bundle-linux64.tar.zst
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
|
|||||||
3
.github/workflows/__test-proxy.yml
generated
vendored
3
.github/workflows/__test-proxy.yml
generated
vendored
@@ -24,6 +24,9 @@ on:
|
|||||||
inputs: {}
|
inputs: {}
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
test-proxy:
|
test-proxy:
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
7
.github/workflows/__unset-environment.yml
generated
vendored
7
.github/workflows/__unset-environment.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
unset-environment:
|
unset-environment:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -73,14 +76,12 @@ jobs:
|
|||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: env -i PATH="$PATH" HOME="$HOME" ./build.sh
|
run: env -i PATH="$PATH" HOME="$HOME" ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
id: analysis
|
id: analysis
|
||||||
with:
|
with:
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
CPP_DB="${{ fromJson(steps.analysis.outputs.db-locations).cpp }}"
|
CPP_DB="${{ fromJson(steps.analysis.outputs.db-locations).cpp }}"
|
||||||
if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${RUNNER_TEMP}/customDbLocation/cpp" ]]; then
|
if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${RUNNER_TEMP}/customDbLocation/cpp" ]]; then
|
||||||
echo "::error::Did not create a database for CPP, or created it in the wrong location." \
|
echo "::error::Did not create a database for CPP, or created it in the wrong location." \
|
||||||
|
|||||||
4
.github/workflows/__upload-quality-sarif.yml
generated
vendored
4
.github/workflows/__upload-quality-sarif.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
upload-quality-sarif:
|
upload-quality-sarif:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -75,7 +78,6 @@ jobs:
|
|||||||
github.sha }}
|
github.sha }}
|
||||||
analysis-kinds: code-scanning,code-quality
|
analysis-kinds: code-scanning,code-quality
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
# Generate some SARIF we can upload with the upload-sarif step
|
# Generate some SARIF we can upload with the upload-sarif step
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
4
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
4
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
upload-ref-sha-input:
|
upload-ref-sha-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -74,7 +77,6 @@ jobs:
|
|||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
||||||
github.sha }}
|
github.sha }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
# Generate some SARIF we can upload with the upload-sarif step
|
# Generate some SARIF we can upload with the upload-sarif step
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
6
.github/workflows/__with-checkout-path.yml
generated
vendored
6
.github/workflows/__with-checkout-path.yml
generated
vendored
@@ -34,6 +34,9 @@ on:
|
|||||||
description: The version of Go to install
|
description: The version of Go to install
|
||||||
required: false
|
required: false
|
||||||
default: '>=1.21.0'
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
with-checkout-path:
|
with-checkout-path:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -68,7 +71,6 @@ jobs:
|
|||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- name: Delete original checkout
|
- name: Delete original checkout
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
# delete the original checkout so we don't accidentally use it.
|
# delete the original checkout so we don't accidentally use it.
|
||||||
# Actions does not support deleting the current working directory, so we
|
# Actions does not support deleting the current working directory, so we
|
||||||
@@ -89,7 +91,6 @@ jobs:
|
|||||||
source-root: x/y/z/some-path/tests/multi-language-repo
|
source-root: x/y/z/some-path/tests/multi-language-repo
|
||||||
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
working-directory: x/y/z/some-path/tests/multi-language-repo
|
working-directory: x/y/z/some-path/tests/multi-language-repo
|
||||||
run: |
|
run: |
|
||||||
./build.sh
|
./build.sh
|
||||||
@@ -101,7 +102,6 @@ jobs:
|
|||||||
sha: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6
|
sha: 474bbf07f9247ffe1856c6a0f94aeeb10e7afee6
|
||||||
|
|
||||||
- name: Verify SARIF after upload
|
- name: Verify SARIF after upload
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
EXPECTED_COMMIT_OID="474bbf07f9247ffe1856c6a0f94aeeb10e7afee6"
|
EXPECTED_COMMIT_OID="474bbf07f9247ffe1856c6a0f94aeeb10e7afee6"
|
||||||
EXPECTED_REF="v1.1.0"
|
EXPECTED_REF="v1.1.0"
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ on:
|
|||||||
# by other workflows.
|
# by other workflows.
|
||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-expected-release-files:
|
check-expected-release-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
32
.github/workflows/codeql.yml
vendored
32
.github/workflows/codeql.yml
vendored
@@ -13,6 +13,10 @@ on:
|
|||||||
- cron: '30 1 * * 0'
|
- cron: '30 1 * * 0'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks
|
CODEQL_ACTION_TESTING_ENVIRONMENT: codeql-action-pr-checks
|
||||||
|
|
||||||
@@ -95,7 +99,10 @@ jobs:
|
|||||||
tools: ${{ matrix.tools }}
|
tools: ${{ matrix.tools }}
|
||||||
# confirm steps.init.outputs.codeql-path points to the codeql binary
|
# confirm steps.init.outputs.codeql-path points to the codeql binary
|
||||||
- name: Print CodeQL Version
|
- name: Print CodeQL Version
|
||||||
run: ${{steps.init.outputs.codeql-path}} version --format=json
|
run: >
|
||||||
|
"$CODEQL" version --format=json
|
||||||
|
env:
|
||||||
|
CODEQL: ${{steps.init.outputs.codeql-path}}
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: ./analyze
|
uses: ./analyze
|
||||||
with:
|
with:
|
||||||
@@ -124,3 +131,26 @@ jobs:
|
|||||||
uses: ./analyze
|
uses: ./analyze
|
||||||
with:
|
with:
|
||||||
category: "/language:actions"
|
category: "/language:actions"
|
||||||
|
|
||||||
|
analyze-python:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: ./init
|
||||||
|
with:
|
||||||
|
languages: python
|
||||||
|
config-file: ./.github/codeql/codeql-actions-config.yml
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: ./analyze
|
||||||
|
with:
|
||||||
|
category: "/language:python"
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
code-scanning-config-tests:
|
code-scanning-config-tests:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -55,7 +60,6 @@ jobs:
|
|||||||
debug-artifact-name: my-debug-artifacts
|
debug-artifact-name: my-debug-artifacts
|
||||||
debug-database-name: my-db
|
debug-database-name: my-db
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
id: analysis
|
id: analysis
|
||||||
@@ -75,7 +79,6 @@ jobs:
|
|||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
- name: Check expected artifacts exist
|
- name: Check expected artifacts exist
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
LANGUAGES="cpp csharp go java javascript python"
|
LANGUAGES="cpp csharp go java javascript python"
|
||||||
for version in $VERSIONS; do
|
for version in $VERSIONS; do
|
||||||
|
|||||||
7
.github/workflows/debug-artifacts-safe.yml
vendored
7
.github/workflows/debug-artifacts-safe.yml
vendored
@@ -16,6 +16,11 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -54,7 +59,6 @@ jobs:
|
|||||||
# We manually exclude Swift from the languages list here, as it is not supported on Ubuntu
|
# We manually exclude Swift from the languages list here, as it is not supported on Ubuntu
|
||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
id: analysis
|
id: analysis
|
||||||
@@ -69,7 +73,6 @@ jobs:
|
|||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
- name: Check expected artifacts exist
|
- name: Check expected artifacts exist
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
VERSIONS="stable-v2.20.3 default linked nightly-latest"
|
VERSIONS="stable-v2.20.3 default linked nightly-latest"
|
||||||
LANGUAGES="cpp csharp go java javascript python"
|
LANGUAGES="cpp csharp go java javascript python"
|
||||||
|
|||||||
4
.github/workflows/post-release-mergeback.yml
vendored
4
.github/workflows/post-release-mergeback.yml
vendored
@@ -18,6 +18,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- releases/v*
|
- releases/v*
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
merge-back:
|
merge-back:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
8
.github/workflows/pr-checks.yml
vendored
8
.github/workflows/pr-checks.yml
vendored
@@ -8,6 +8,10 @@ on:
|
|||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
unit-tests:
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
@@ -22,6 +26,10 @@ jobs:
|
|||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Prepare git (Windows)
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
|
|||||||
4
.github/workflows/prepare-release.yml
vendored
4
.github/workflows/prepare-release.yml
vendored
@@ -22,6 +22,10 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- .github/workflows/prepare-release.yml
|
- .github/workflows/prepare-release.yml
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: "Prepare release"
|
name: "Prepare release"
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/python312-windows.yml
vendored
4
.github/workflows/python312-windows.yml
vendored
@@ -12,6 +12,10 @@ on:
|
|||||||
- cron: '0 0 * * 1'
|
- cron: '0 0 * * 1'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-setup-python-scripts:
|
test-setup-python-scripts:
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.github/workflows/query-filters.yml
vendored
4
.github/workflows/query-filters.yml
vendored
@@ -15,6 +15,10 @@ on:
|
|||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
query-filters:
|
query-filters:
|
||||||
name: Query Filters Tests
|
name: Query Filters Tests
|
||||||
|
|||||||
4
.github/workflows/rebuild.yml
vendored
4
.github/workflows/rebuild.yml
vendored
@@ -5,6 +5,10 @@ on:
|
|||||||
types: [labeled]
|
types: [labeled]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rebuild:
|
rebuild:
|
||||||
name: Rebuild Action
|
name: Rebuild Action
|
||||||
|
|||||||
8
.github/workflows/rollback-release.yml
vendored
8
.github/workflows/rollback-release.yml
vendored
@@ -14,6 +14,10 @@ on:
|
|||||||
- .github/workflows/rollback-release.yml
|
- .github/workflows/rollback-release.yml
|
||||||
- .github/actions/prepare-mergeback-branch/**
|
- .github/actions/prepare-mergeback-branch/**
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: "Prepare release"
|
name: "Prepare release"
|
||||||
@@ -53,7 +57,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Create tag for testing
|
- name: Create tag for testing
|
||||||
if: github.event_name != 'workflow_dispatch'
|
if: github.event_name != 'workflow_dispatch'
|
||||||
shell: bash
|
|
||||||
run: git tag v0.0.0
|
run: git tag v0.0.0
|
||||||
|
|
||||||
# We start by preparing the mergeback branch, mainly so that we have the updated changelog
|
# We start by preparing the mergeback branch, mainly so that we have the updated changelog
|
||||||
@@ -96,7 +99,6 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Create tags
|
- name: Create tags
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
|
# We usually expect to checkout `inputs.rollback-tag` (required for `workflow_dispatch`),
|
||||||
# but use `v0.0.0` for testing.
|
# but use `v0.0.0` for testing.
|
||||||
@@ -111,7 +113,6 @@ jobs:
|
|||||||
- name: Push tags
|
- name: Push tags
|
||||||
# skip when testing
|
# skip when testing
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
RELEASE_TAG: ${{ needs.prepare.outputs.version }}
|
RELEASE_TAG: ${{ needs.prepare.outputs.version }}
|
||||||
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }}
|
MAJOR_VERSION_TAG: ${{ needs.prepare.outputs.major_version }}
|
||||||
@@ -160,7 +161,6 @@ jobs:
|
|||||||
echo "Created draft rollback release at $RELEASE_URL" >> $GITHUB_STEP_SUMMARY
|
echo "Created draft rollback release at $RELEASE_URL" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
- name: Update changelog
|
- name: Update changelog
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
NEW_CHANGELOG: "${{ runner.temp }}/new_changelog.md"
|
NEW_CHANGELOG: "${{ runner.temp }}/new_changelog.md"
|
||||||
NEW_BRANCH: "${{ steps.mergeback-branch.outputs.new-branch }}"
|
NEW_BRANCH: "${{ steps.mergeback-branch.outputs.new-branch }}"
|
||||||
|
|||||||
4
.github/workflows/test-codeql-bundle-all.yml
vendored
4
.github/workflows/test-codeql-bundle-all.yml
vendored
@@ -16,6 +16,9 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
jobs:
|
jobs:
|
||||||
test-codeql-bundle-all:
|
test-codeql-bundle-all:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,7 +49,6 @@ jobs:
|
|||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
|
|||||||
4
.github/workflows/update-bundle.yml
vendored
4
.github/workflows/update-bundle.yml
vendored
@@ -13,6 +13,10 @@ on:
|
|||||||
# to filter pre-release attribute.
|
# to filter pre-release attribute.
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-bundle:
|
update-bundle:
|
||||||
if: github.event.release.prerelease && startsWith(github.event.release.tag_name, 'codeql-bundle-')
|
if: github.event.release.prerelease && startsWith(github.event.release.tag_name, 'codeql-bundle-')
|
||||||
|
|||||||
10
.github/workflows/update-proxy-release.yml
vendored
10
.github/workflows/update-proxy-release.yml
vendored
@@ -7,6 +7,10 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
name: Update code and create PR
|
name: Update code and create PR
|
||||||
@@ -20,7 +24,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check release tag format
|
- name: Check release tag format
|
||||||
id: checks
|
id: checks
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if ! [[ $RELEASE_TAG =~ ^codeql-bundle-v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if ! [[ $RELEASE_TAG =~ ^codeql-bundle-v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
echo "Invalid release tag: expected a CodeQL bundle tag in the 'codeql-bundle-vM.N.P' format."
|
echo "Invalid release tag: expected a CodeQL bundle tag in the 'codeql-bundle-vM.N.P' format."
|
||||||
@@ -30,7 +33,6 @@ jobs:
|
|||||||
echo "target_branch=dependency-proxy/$RELEASE_TAG" >> $GITHUB_OUTPUT
|
echo "target_branch=dependency-proxy/$RELEASE_TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Check that the release exists
|
- name: Check that the release exists
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
run: |
|
run: |
|
||||||
@@ -46,20 +48,17 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
|
|
||||||
- name: Update git config
|
- name: Update git config
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
|
|
||||||
- name: Update release tag and version
|
- name: Update release tag and version
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
NOW=$(date +"%Y%m%d%H%M%S") # only used to make sure we don't fetch stale binaries from the toolcache
|
NOW=$(date +"%Y%m%d%H%M%S") # only used to make sure we don't fetch stale binaries from the toolcache
|
||||||
sed -i "s|https://github.com/github/codeql-action/releases/download/codeql-bundle-v[0-9.]\+/|https://github.com/github/codeql-action/releases/download/$RELEASE_TAG/|g" ./src/start-proxy-action.ts
|
sed -i "s|https://github.com/github/codeql-action/releases/download/codeql-bundle-v[0-9.]\+/|https://github.com/github/codeql-action/releases/download/$RELEASE_TAG/|g" ./src/start-proxy-action.ts
|
||||||
sed -i "s/\"v2.0.[0-9]\+\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts
|
sed -i "s/\"v2.0.[0-9]\+\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts
|
||||||
|
|
||||||
- name: Compile TypeScript and commit changes
|
- name: Compile TypeScript and commit changes
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
||||||
run: |
|
run: |
|
||||||
@@ -72,7 +71,6 @@ jobs:
|
|||||||
git commit -m "Update release used by \`start-proxy\` action"
|
git commit -m "Update release used by \`start-proxy\` action"
|
||||||
|
|
||||||
- name: Push changes and open PR
|
- name: Push changes and open PR
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
||||||
|
|||||||
4
.github/workflows/update-release-branch.yml
vendored
4
.github/workflows/update-release-branch.yml
vendored
@@ -11,6 +11,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- releases/*
|
- releases/*
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
|
|||||||
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
|
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
|
||||||
|
|
||||||
|
## [UNRELEASED]
|
||||||
|
|
||||||
|
- We have improved the CodeQL Action's ability to validate that the workflow it is used in does not use different versions of the CodeQL Action for different workflow steps. Mixing different versions of the CodeQL Action in the same workflow is unsupported and can lead to unpredictable results. A warning will now be emitted from the `codeql-action/init` step if different versions of the CodeQL Action are detected in the workflow file. Additionally, an error will now be thrown by the other CodeQL Action steps if they load a configuration file that was generated by a different version of the `codeql-action/init` step. [#3099](https://github.com/github/codeql-action/pull/3099) and [#3100](https://github.com/github/codeql-action/pull/3100)
|
||||||
|
- We added support for reducing the size of dependency caches for Java analyses, which will reduce cache usage and speed up workflows. This will be enabled automatically at a later time. [#3107](https://github.com/github/codeql-action/pull/3107)
|
||||||
|
|
||||||
|
## 3.30.3 - 10 Sep 2025
|
||||||
|
|
||||||
|
No user facing changes.
|
||||||
|
|
||||||
## 3.30.2 - 09 Sep 2025
|
## 3.30.2 - 09 Sep 2025
|
||||||
|
|
||||||
- Fixed a bug which could cause language autodetection to fail. [#3084](https://github.com/github/codeql-action/pull/3084)
|
- Fixed a bug which could cause language autodetection to fail. [#3084](https://github.com/github/codeql-action/pull/3084)
|
||||||
|
|||||||
39
lib/analyze-action-post.js
generated
39
lib/analyze-action-post.js
generated
@@ -26438,7 +26438,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -26536,7 +26536,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -77685,7 +77686,7 @@ var require_brace_expansion2 = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -117686,7 +117687,7 @@ function withGroup(groupName, f) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -117796,6 +117797,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -117912,6 +117919,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -117960,7 +117972,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs3.readFileSync(configFile, "utf8");
|
const configString = fs3.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -118206,13 +118229,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -118251,7 +118277,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
|
|||||||
77
lib/analyze-action.js
generated
77
lib/analyze-action.js
generated
@@ -32287,7 +32287,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -32385,7 +32385,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -90811,7 +90812,7 @@ function formatDuration(durationMs) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -91030,6 +91031,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -91146,6 +91153,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||||
@@ -91620,7 +91632,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs9.readFileSync(configFile, "utf8");
|
const configString = fs9.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -92769,13 +92792,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -92814,7 +92840,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
@@ -93222,7 +93247,7 @@ function getDefaultCacheConfig() {
|
|||||||
async function makeGlobber(patterns) {
|
async function makeGlobber(patterns) {
|
||||||
return glob.create(patterns.join("\n"));
|
return glob.create(patterns.join("\n"));
|
||||||
}
|
}
|
||||||
async function uploadDependencyCaches(config, logger) {
|
async function uploadDependencyCaches(config, logger, minimizeJavaJars) {
|
||||||
for (const language of config.languages) {
|
for (const language of config.languages) {
|
||||||
const cacheConfig = getDefaultCacheConfig()[language];
|
const cacheConfig = getDefaultCacheConfig()[language];
|
||||||
if (cacheConfig === void 0) {
|
if (cacheConfig === void 0) {
|
||||||
@@ -93245,7 +93270,7 @@ async function uploadDependencyCaches(config, logger) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const key = await cacheKey2(language, cacheConfig);
|
const key = await cacheKey2(language, cacheConfig, minimizeJavaJars);
|
||||||
logger.info(
|
logger.info(
|
||||||
`Uploading cache of size ${size} for ${language} with key ${key}...`
|
`Uploading cache of size ${size} for ${language} with key ${key}...`
|
||||||
);
|
);
|
||||||
@@ -93263,17 +93288,20 @@ async function uploadDependencyCaches(config, logger) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function cacheKey2(language, cacheConfig) {
|
async function cacheKey2(language, cacheConfig, minimizeJavaJars = false) {
|
||||||
const hash2 = await glob.hashFiles(cacheConfig.hash.join("\n"));
|
const hash2 = await glob.hashFiles(cacheConfig.hash.join("\n"));
|
||||||
return `${await cachePrefix2(language)}${hash2}`;
|
return `${await cachePrefix2(language, minimizeJavaJars)}${hash2}`;
|
||||||
}
|
}
|
||||||
async function cachePrefix2(language) {
|
async function cachePrefix2(language, minimizeJavaJars) {
|
||||||
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
||||||
const customPrefix = process.env["CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX" /* DEPENDENCY_CACHING_PREFIX */];
|
const customPrefix = process.env["CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX" /* DEPENDENCY_CACHING_PREFIX */];
|
||||||
let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX;
|
let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX;
|
||||||
if (customPrefix !== void 0 && customPrefix.length > 0) {
|
if (customPrefix !== void 0 && customPrefix.length > 0) {
|
||||||
prefix = `${prefix}-${customPrefix}`;
|
prefix = `${prefix}-${customPrefix}`;
|
||||||
}
|
}
|
||||||
|
if (language === "java" /* java */ && minimizeJavaJars) {
|
||||||
|
prefix = `minify-${prefix}`;
|
||||||
|
}
|
||||||
return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`;
|
return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93707,7 +93735,7 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
|
|||||||
async function runInterpretResultsFor(analysis, language, queries, enableDebugLogging) {
|
async function runInterpretResultsFor(analysis, language, queries, enableDebugLogging) {
|
||||||
logger.info(`Interpreting ${analysis.name} results for ${language}`);
|
logger.info(`Interpreting ${analysis.name} results for ${language}`);
|
||||||
let category = automationDetailsId;
|
let category = automationDetailsId;
|
||||||
if (dbAnalysisConfig.kind === "code-quality" /* CodeQuality */) {
|
if (analysis.kind === "code-quality" /* CodeQuality */) {
|
||||||
category = fixCodeQualityCategory(logger, automationDetailsId);
|
category = fixCodeQualityCategory(logger, automationDetailsId);
|
||||||
}
|
}
|
||||||
const sarifFile = path16.join(
|
const sarifFile = path16.join(
|
||||||
@@ -95613,6 +95641,10 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
||||||
logger.debug(`Serializing SARIF for upload`);
|
logger.debug(`Serializing SARIF for upload`);
|
||||||
const sarifPayload = JSON.stringify(sarif);
|
const sarifPayload = JSON.stringify(sarif);
|
||||||
|
const dumpDir = process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
|
||||||
|
if (dumpDir) {
|
||||||
|
dumpSarifFile(sarifPayload, dumpDir, logger, uploadTarget);
|
||||||
|
}
|
||||||
logger.debug(`Compressing serialized SARIF`);
|
logger.debug(`Compressing serialized SARIF`);
|
||||||
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
||||||
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
||||||
@@ -95651,6 +95683,21 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
sarifID
|
sarifID
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
function dumpSarifFile(sarifPayload, outputDir, logger, uploadTarget) {
|
||||||
|
if (!fs18.existsSync(outputDir)) {
|
||||||
|
fs18.mkdirSync(outputDir, { recursive: true });
|
||||||
|
} else if (!fs18.lstatSync(outputDir).isDirectory()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`The path specified by the ${"CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */} environment variable exists and is not a directory: ${outputDir}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const outputFile = path18.resolve(
|
||||||
|
outputDir,
|
||||||
|
`upload${uploadTarget.sarifExtension}`
|
||||||
|
);
|
||||||
|
logger.info(`Dumping processed SARIF file to ${outputFile}`);
|
||||||
|
fs18.writeFileSync(outputFile, sarifPayload);
|
||||||
|
}
|
||||||
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
||||||
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
||||||
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
||||||
@@ -96036,7 +96083,11 @@ async function run() {
|
|||||||
logger
|
logger
|
||||||
);
|
);
|
||||||
if (shouldStoreCache(config.dependencyCachingEnabled)) {
|
if (shouldStoreCache(config.dependencyCachingEnabled)) {
|
||||||
await uploadDependencyCaches(config, logger);
|
const minimizeJavaJars = await features.getValue(
|
||||||
|
"java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */,
|
||||||
|
codeql
|
||||||
|
);
|
||||||
|
await uploadDependencyCaches(config, logger, minimizeJavaJars);
|
||||||
}
|
}
|
||||||
if (isInTestMode()) {
|
if (isInTestMode()) {
|
||||||
logger.debug("In test mode. Waiting for processing is disabled.");
|
logger.debug("In test mode. Waiting for processing is disabled.");
|
||||||
|
|||||||
37
lib/autobuild-action.js
generated
37
lib/autobuild-action.js
generated
@@ -26438,7 +26438,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -26536,7 +26536,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -78426,7 +78427,7 @@ function getActionsLogger() {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -78534,6 +78535,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -78650,6 +78657,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||||
@@ -78962,7 +78974,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs4.readFileSync(configFile, "utf8");
|
const configString = fs4.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -79241,13 +79264,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -79286,7 +79312,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
|
|||||||
61
lib/init-action-post.js
generated
61
lib/init-action-post.js
generated
@@ -32287,7 +32287,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -32385,7 +32385,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -83534,7 +83535,7 @@ var require_brace_expansion2 = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -129016,7 +129017,7 @@ function formatDuration(durationMs) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -129129,6 +129130,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -129245,6 +129252,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||||
@@ -129575,7 +129587,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs9.readFileSync(configFile, "utf8");
|
const configString = fs9.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -130679,13 +130702,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -130724,7 +130750,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
@@ -133050,6 +133075,10 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
||||||
logger.debug(`Serializing SARIF for upload`);
|
logger.debug(`Serializing SARIF for upload`);
|
||||||
const sarifPayload = JSON.stringify(sarif);
|
const sarifPayload = JSON.stringify(sarif);
|
||||||
|
const dumpDir = process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
|
||||||
|
if (dumpDir) {
|
||||||
|
dumpSarifFile(sarifPayload, dumpDir, logger, uploadTarget);
|
||||||
|
}
|
||||||
logger.debug(`Compressing serialized SARIF`);
|
logger.debug(`Compressing serialized SARIF`);
|
||||||
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
||||||
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
||||||
@@ -133088,6 +133117,21 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
sarifID
|
sarifID
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
function dumpSarifFile(sarifPayload, outputDir, logger, uploadTarget) {
|
||||||
|
if (!fs17.existsSync(outputDir)) {
|
||||||
|
fs17.mkdirSync(outputDir, { recursive: true });
|
||||||
|
} else if (!fs17.lstatSync(outputDir).isDirectory()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`The path specified by the ${"CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */} environment variable exists and is not a directory: ${outputDir}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const outputFile = path17.resolve(
|
||||||
|
outputDir,
|
||||||
|
`upload${uploadTarget.sarifExtension}`
|
||||||
|
);
|
||||||
|
logger.info(`Dumping processed SARIF file to ${outputFile}`);
|
||||||
|
fs17.writeFileSync(outputFile, sarifPayload);
|
||||||
|
}
|
||||||
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
||||||
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
||||||
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
||||||
@@ -133256,7 +133300,8 @@ function toCodedErrors(errors) {
|
|||||||
}
|
}
|
||||||
var WorkflowErrors = toCodedErrors({
|
var WorkflowErrors = toCodedErrors({
|
||||||
MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`,
|
MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`,
|
||||||
CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`
|
CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`,
|
||||||
|
InconsistentActionVersion: `Not all workflow steps that use \`github/codeql-action\` actions use the same version. Please ensure that all such steps use the same version to avoid compatibility issues.`
|
||||||
});
|
});
|
||||||
async function getWorkflow(logger) {
|
async function getWorkflow(logger) {
|
||||||
const maybeWorkflow = process.env["CODE_SCANNING_WORKFLOW_FILE"];
|
const maybeWorkflow = process.env["CODE_SCANNING_WORKFLOW_FILE"];
|
||||||
|
|||||||
105
lib/init-action.js
generated
105
lib/init-action.js
generated
@@ -32287,7 +32287,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -32385,7 +32385,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -86417,7 +86418,7 @@ function formatDuration(durationMs) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -86629,6 +86630,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -86745,6 +86752,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||||
@@ -87196,11 +87208,22 @@ function getNoLanguagesError() {
|
|||||||
function getUnknownLanguagesError(languages) {
|
function getUnknownLanguagesError(languages) {
|
||||||
return `Did not recognize the following languages: ${languages.join(", ")}`;
|
return `Did not recognize the following languages: ${languages.join(", ")}`;
|
||||||
}
|
}
|
||||||
async function getSupportedLanguageMap(codeql) {
|
async function getSupportedLanguageMap(codeql, features, logger) {
|
||||||
const resolveResult = await codeql.betterResolveLanguages();
|
const resolveSupportedLanguagesUsingCli = await features.getValue(
|
||||||
|
"resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */,
|
||||||
|
codeql
|
||||||
|
);
|
||||||
|
const resolveResult = await codeql.betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries: resolveSupportedLanguagesUsingCli
|
||||||
|
});
|
||||||
|
if (resolveSupportedLanguagesUsingCli) {
|
||||||
|
logger.debug(
|
||||||
|
`The CodeQL CLI supports the following languages: ${Object.keys(resolveResult.extractors).join(", ")}`
|
||||||
|
);
|
||||||
|
}
|
||||||
const supportedLanguages = {};
|
const supportedLanguages = {};
|
||||||
for (const extractor of Object.keys(resolveResult.extractors)) {
|
for (const extractor of Object.keys(resolveResult.extractors)) {
|
||||||
if (KnownLanguage[extractor] !== void 0) {
|
if (resolveSupportedLanguagesUsingCli || KnownLanguage[extractor] !== void 0) {
|
||||||
supportedLanguages[extractor] = extractor;
|
supportedLanguages[extractor] = extractor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -87236,14 +87259,14 @@ async function getRawLanguagesInRepo(repository, sourceRoot, logger) {
|
|||||||
logger.debug(`Raw languages in repository: ${result.join(", ")}`);
|
logger.debug(`Raw languages in repository: ${result.join(", ")}`);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
async function getLanguages(codeql, languagesInput, repository, sourceRoot, logger) {
|
async function getLanguages(codeql, languagesInput, repository, sourceRoot, features, logger) {
|
||||||
const { rawLanguages, autodetected } = await getRawLanguages(
|
const { rawLanguages, autodetected } = await getRawLanguages(
|
||||||
languagesInput,
|
languagesInput,
|
||||||
repository,
|
repository,
|
||||||
sourceRoot,
|
sourceRoot,
|
||||||
logger
|
logger
|
||||||
);
|
);
|
||||||
const languageMap = await getSupportedLanguageMap(codeql);
|
const languageMap = await getSupportedLanguageMap(codeql, features, logger);
|
||||||
const languagesSet = /* @__PURE__ */ new Set();
|
const languagesSet = /* @__PURE__ */ new Set();
|
||||||
const unknownLanguages = [];
|
const unknownLanguages = [];
|
||||||
for (const language of rawLanguages) {
|
for (const language of rawLanguages) {
|
||||||
@@ -87311,6 +87334,7 @@ async function initActionState({
|
|||||||
languagesInput,
|
languagesInput,
|
||||||
repository,
|
repository,
|
||||||
sourceRoot,
|
sourceRoot,
|
||||||
|
features,
|
||||||
logger
|
logger
|
||||||
);
|
);
|
||||||
const buildMode = await parseBuildModeInput(
|
const buildMode = await parseBuildModeInput(
|
||||||
@@ -87335,6 +87359,7 @@ async function initActionState({
|
|||||||
augmentationProperties
|
augmentationProperties
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
|
version: getActionVersion(),
|
||||||
analysisKinds,
|
analysisKinds,
|
||||||
languages,
|
languages,
|
||||||
buildMode,
|
buildMode,
|
||||||
@@ -87686,7 +87711,6 @@ async function initConfig(inputs) {
|
|||||||
exclude: { tags: "exclude-from-incremental" }
|
exclude: { tags: "exclude-from-incremental" }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await saveConfig(config, logger);
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
function parseRegistries(registriesInput) {
|
function parseRegistries(registriesInput) {
|
||||||
@@ -87950,7 +87974,7 @@ function getDefaultCacheConfig() {
|
|||||||
async function makeGlobber(patterns) {
|
async function makeGlobber(patterns) {
|
||||||
return glob.create(patterns.join("\n"));
|
return glob.create(patterns.join("\n"));
|
||||||
}
|
}
|
||||||
async function downloadDependencyCaches(languages, logger) {
|
async function downloadDependencyCaches(languages, logger, minimizeJavaJars) {
|
||||||
const restoredCaches = [];
|
const restoredCaches = [];
|
||||||
for (const language of languages) {
|
for (const language of languages) {
|
||||||
const cacheConfig = getDefaultCacheConfig()[language];
|
const cacheConfig = getDefaultCacheConfig()[language];
|
||||||
@@ -87967,8 +87991,10 @@ async function downloadDependencyCaches(languages, logger) {
|
|||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const primaryKey = await cacheKey2(language, cacheConfig);
|
const primaryKey = await cacheKey2(language, cacheConfig, minimizeJavaJars);
|
||||||
const restoreKeys = [await cachePrefix2(language)];
|
const restoreKeys = [
|
||||||
|
await cachePrefix2(language, minimizeJavaJars)
|
||||||
|
];
|
||||||
logger.info(
|
logger.info(
|
||||||
`Downloading cache for ${language} with key ${primaryKey} and restore keys ${restoreKeys.join(
|
`Downloading cache for ${language} with key ${primaryKey} and restore keys ${restoreKeys.join(
|
||||||
", "
|
", "
|
||||||
@@ -87988,17 +88014,20 @@ async function downloadDependencyCaches(languages, logger) {
|
|||||||
}
|
}
|
||||||
return restoredCaches;
|
return restoredCaches;
|
||||||
}
|
}
|
||||||
async function cacheKey2(language, cacheConfig) {
|
async function cacheKey2(language, cacheConfig, minimizeJavaJars = false) {
|
||||||
const hash = await glob.hashFiles(cacheConfig.hash.join("\n"));
|
const hash = await glob.hashFiles(cacheConfig.hash.join("\n"));
|
||||||
return `${await cachePrefix2(language)}${hash}`;
|
return `${await cachePrefix2(language, minimizeJavaJars)}${hash}`;
|
||||||
}
|
}
|
||||||
async function cachePrefix2(language) {
|
async function cachePrefix2(language, minimizeJavaJars) {
|
||||||
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
const runnerOs = getRequiredEnvParam("RUNNER_OS");
|
||||||
const customPrefix = process.env["CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX" /* DEPENDENCY_CACHING_PREFIX */];
|
const customPrefix = process.env["CODEQL_ACTION_DEPENDENCY_CACHE_PREFIX" /* DEPENDENCY_CACHING_PREFIX */];
|
||||||
let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX;
|
let prefix = CODEQL_DEPENDENCY_CACHE_PREFIX;
|
||||||
if (customPrefix !== void 0 && customPrefix.length > 0) {
|
if (customPrefix !== void 0 && customPrefix.length > 0) {
|
||||||
prefix = `${prefix}-${customPrefix}`;
|
prefix = `${prefix}-${customPrefix}`;
|
||||||
}
|
}
|
||||||
|
if (language === "java" /* java */ && minimizeJavaJars) {
|
||||||
|
prefix = `minify-${prefix}`;
|
||||||
|
}
|
||||||
return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`;
|
return `${prefix}-${CODEQL_DEPENDENCY_CACHE_VERSION}-${runnerOs}-${language}-`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89363,13 +89392,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -89408,7 +89440,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
@@ -90110,7 +90141,8 @@ function toCodedErrors(errors) {
|
|||||||
}
|
}
|
||||||
var WorkflowErrors = toCodedErrors({
|
var WorkflowErrors = toCodedErrors({
|
||||||
MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`,
|
MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`,
|
||||||
CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`
|
CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`,
|
||||||
|
InconsistentActionVersion: `Not all workflow steps that use \`github/codeql-action\` actions use the same version. Please ensure that all such steps use the same version to avoid compatibility issues.`
|
||||||
});
|
});
|
||||||
async function groupLanguagesByExtractor(languages, codeql) {
|
async function groupLanguagesByExtractor(languages, codeql) {
|
||||||
const resolveResult = await codeql.betterResolveLanguages();
|
const resolveResult = await codeql.betterResolveLanguages();
|
||||||
@@ -90164,6 +90196,22 @@ async function getWorkflowErrors(doc, codeql) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const codeqlStepRefs = [];
|
||||||
|
for (const job of Object.values(doc?.jobs || {})) {
|
||||||
|
if (Array.isArray(job.steps)) {
|
||||||
|
for (const step of job.steps) {
|
||||||
|
if (step.uses?.startsWith("github/codeql-action/")) {
|
||||||
|
const parts = step.uses.split("@");
|
||||||
|
if (parts.length >= 2) {
|
||||||
|
codeqlStepRefs.push(parts[parts.length - 1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (codeqlStepRefs.length > 0 && !codeqlStepRefs.every((ref) => ref === codeqlStepRefs[0])) {
|
||||||
|
errors.push(WorkflowErrors.InconsistentActionVersion);
|
||||||
|
}
|
||||||
const hasPushTrigger = hasWorkflowTrigger("push", doc);
|
const hasPushTrigger = hasWorkflowTrigger("push", doc);
|
||||||
const hasPullRequestTrigger = hasWorkflowTrigger("pull_request", doc);
|
const hasPullRequestTrigger = hasWorkflowTrigger("pull_request", doc);
|
||||||
const hasWorkflowCallTrigger = hasWorkflowTrigger("workflow_call", doc);
|
const hasWorkflowCallTrigger = hasWorkflowTrigger("workflow_call", doc);
|
||||||
@@ -90585,8 +90633,16 @@ exec ${goBinaryPath} "$@"`
|
|||||||
core13.exportVariable(envVar, "false");
|
core13.exportVariable(envVar, "false");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const minimizeJavaJars = await features.getValue(
|
||||||
|
"java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */,
|
||||||
|
codeql
|
||||||
|
);
|
||||||
if (shouldRestoreCache(config.dependencyCachingEnabled)) {
|
if (shouldRestoreCache(config.dependencyCachingEnabled)) {
|
||||||
await downloadDependencyCaches(config.languages, logger);
|
await downloadDependencyCaches(
|
||||||
|
config.languages,
|
||||||
|
logger,
|
||||||
|
minimizeJavaJars
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (await codeQlVersionAtLeast(codeql, "2.17.1")) {
|
if (await codeQlVersionAtLeast(codeql, "2.17.1")) {
|
||||||
} else {
|
} else {
|
||||||
@@ -90619,6 +90675,16 @@ exec ${goBinaryPath} "$@"`
|
|||||||
core13.exportVariable("CODEQL_EXTRACTOR_PYTHON_EXTRACT_STDLIB", "true");
|
core13.exportVariable("CODEQL_EXTRACTOR_PYTHON_EXTRACT_STDLIB", "true");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (process.env["CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */]) {
|
||||||
|
logger.debug(
|
||||||
|
`${"CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */} is already set to '${process.env["CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */]}', so the Action will not override it.`
|
||||||
|
);
|
||||||
|
} else if (minimizeJavaJars && config.buildMode === "none" /* None */ && config.languages.includes("java" /* java */)) {
|
||||||
|
core13.exportVariable(
|
||||||
|
"CODEQL_EXTRACTOR_JAVA_OPTION_MINIMIZE_DEPENDENCY_JARS" /* JAVA_EXTRACTOR_MINIMIZE_DEPENDENCY_JARS */,
|
||||||
|
"true"
|
||||||
|
);
|
||||||
|
}
|
||||||
const { registriesAuthTokens, qlconfigFile } = await generateRegistries(
|
const { registriesAuthTokens, qlconfigFile } = await generateRegistries(
|
||||||
getOptionalInput("registries"),
|
getOptionalInput("registries"),
|
||||||
config.tempDir,
|
config.tempDir,
|
||||||
@@ -90684,6 +90750,7 @@ exec ${goBinaryPath} "$@"`
|
|||||||
} finally {
|
} finally {
|
||||||
logUnwrittenDiagnostics();
|
logUnwrittenDiagnostics();
|
||||||
}
|
}
|
||||||
|
await saveConfig(config, logger);
|
||||||
await sendCompletedStatusReport(
|
await sendCompletedStatusReport(
|
||||||
startedAt,
|
startedAt,
|
||||||
config,
|
config,
|
||||||
|
|||||||
37
lib/resolve-environment-action.js
generated
37
lib/resolve-environment-action.js
generated
@@ -26438,7 +26438,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -26536,7 +26536,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -78419,7 +78420,7 @@ function getActionsLogger() {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -78525,6 +78526,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -78641,6 +78648,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -78689,7 +78701,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs3.readFileSync(configFile, "utf8");
|
const configString = fs3.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -78941,13 +78964,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -78986,7 +79012,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
|
|||||||
33
lib/start-proxy-action-post.js
generated
33
lib/start-proxy-action-post.js
generated
@@ -26438,7 +26438,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -26536,7 +26536,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -76345,7 +76346,7 @@ var require_brace_expansion2 = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -117158,7 +117159,7 @@ function getActionsLogger() {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
@@ -117205,6 +117206,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -117321,6 +117328,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -117369,7 +117381,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs.readFileSync(configFile, "utf8");
|
const configString = fs.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/debug-artifacts.ts
|
// src/debug-artifacts.ts
|
||||||
|
|||||||
1781
lib/start-proxy-action.js
generated
1781
lib/start-proxy-action.js
generated
File diff suppressed because it is too large
Load Diff
56
lib/upload-lib.js
generated
56
lib/upload-lib.js
generated
@@ -33584,7 +33584,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -33682,7 +33682,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -89114,7 +89115,7 @@ function formatDuration(durationMs) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -89221,6 +89222,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -89337,6 +89344,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -89403,7 +89415,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs7.readFileSync(configFile, "utf8");
|
const configString = fs7.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -90507,13 +90530,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -90552,7 +90578,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
@@ -92422,6 +92447,10 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
||||||
logger.debug(`Serializing SARIF for upload`);
|
logger.debug(`Serializing SARIF for upload`);
|
||||||
const sarifPayload = JSON.stringify(sarif);
|
const sarifPayload = JSON.stringify(sarif);
|
||||||
|
const dumpDir = process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
|
||||||
|
if (dumpDir) {
|
||||||
|
dumpSarifFile(sarifPayload, dumpDir, logger, uploadTarget);
|
||||||
|
}
|
||||||
logger.debug(`Compressing serialized SARIF`);
|
logger.debug(`Compressing serialized SARIF`);
|
||||||
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
||||||
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
||||||
@@ -92460,6 +92489,21 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
sarifID
|
sarifID
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
function dumpSarifFile(sarifPayload, outputDir, logger, uploadTarget) {
|
||||||
|
if (!fs13.existsSync(outputDir)) {
|
||||||
|
fs13.mkdirSync(outputDir, { recursive: true });
|
||||||
|
} else if (!fs13.lstatSync(outputDir).isDirectory()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`The path specified by the ${"CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */} environment variable exists and is not a directory: ${outputDir}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const outputFile = path14.resolve(
|
||||||
|
outputDir,
|
||||||
|
`upload${uploadTarget.sarifExtension}`
|
||||||
|
);
|
||||||
|
logger.info(`Dumping processed SARIF file to ${outputFile}`);
|
||||||
|
fs13.writeFileSync(outputFile, sarifPayload);
|
||||||
|
}
|
||||||
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
||||||
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
||||||
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
||||||
|
|||||||
20
lib/upload-sarif-action-post.js
generated
20
lib/upload-sarif-action-post.js
generated
@@ -26438,7 +26438,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -26536,7 +26536,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -70467,7 +70468,7 @@ var require_brace_expansion = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -117319,7 +117320,7 @@ function withGroup(groupName, f) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
@@ -117370,6 +117371,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -117486,6 +117493,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
56
lib/upload-sarif-action.js
generated
56
lib/upload-sarif-action.js
generated
@@ -32287,7 +32287,7 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.2",
|
version: "3.30.4",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
@@ -32385,7 +32385,8 @@ var require_package = __commonJS({
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
semver: ">=6.3.1"
|
semver: ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -89108,7 +89109,7 @@ function formatDuration(durationMs) {
|
|||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
var CODEQL_OVERLAY_MINIMUM_VERSION = "2.22.3";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 6e3;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_BYTES = OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB * 1e6;
|
||||||
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
async function writeBaseDatabaseOidsFile(config, sourceRoot) {
|
||||||
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
const gitFileOids = await getFileOidsUnderPath(sourceRoot);
|
||||||
@@ -89217,6 +89218,12 @@ var featureConfig = {
|
|||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
},
|
},
|
||||||
|
["resolve_supported_languages_using_cli" /* ResolveSupportedLanguagesUsingCli */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI",
|
||||||
|
minimumVersion: void 0,
|
||||||
|
toolsFeature: "builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
|
||||||
|
},
|
||||||
["overlay_analysis" /* OverlayAnalysis */]: {
|
["overlay_analysis" /* OverlayAnalysis */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
envVar: "CODEQL_ACTION_OVERLAY_ANALYSIS",
|
||||||
@@ -89333,6 +89340,11 @@ var featureConfig = {
|
|||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
legacyApi: true,
|
legacyApi: true,
|
||||||
minimumVersion: void 0
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
|
["java_minimize_dependency_jars" /* JavaMinimizeDependencyJars */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_JAVA_MINIMIZE_DEPENDENCY_JARS",
|
||||||
|
minimumVersion: "2.23.0"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
var FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json";
|
||||||
@@ -89677,7 +89689,18 @@ async function getConfig(tempDir, logger) {
|
|||||||
const configString = fs8.readFileSync(configFile, "utf8");
|
const configString = fs8.readFileSync(configFile, "utf8");
|
||||||
logger.debug("Loaded config:");
|
logger.debug("Loaded config:");
|
||||||
logger.debug(configString);
|
logger.debug(configString);
|
||||||
return JSON.parse(configString);
|
const config = JSON.parse(configString);
|
||||||
|
if (config.version === void 0) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded configuration file, but it does not contain the expected 'version' field.`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (config.version !== getActionVersion()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`Loaded a configuration file for version '${config.version}', but running version '${getActionVersion()}'`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return config;
|
||||||
}
|
}
|
||||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||||
const augmentedConfig = cloneObject(cliConfig);
|
const augmentedConfig = cloneObject(cliConfig);
|
||||||
@@ -91208,13 +91231,16 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async betterResolveLanguages() {
|
async betterResolveLanguages({
|
||||||
|
filterToLanguagesWithQueries
|
||||||
|
} = { filterToLanguagesWithQueries: false }) {
|
||||||
const codeqlArgs = [
|
const codeqlArgs = [
|
||||||
"resolve",
|
"resolve",
|
||||||
"languages",
|
"languages",
|
||||||
"--format=betterjson",
|
"--format=betterjson",
|
||||||
"--extractor-options-verbosity=4",
|
"--extractor-options-verbosity=4",
|
||||||
"--extractor-include-aliases",
|
"--extractor-include-aliases",
|
||||||
|
...filterToLanguagesWithQueries ? ["--filter-to-languages-with-queries"] : [],
|
||||||
...getExtraOptionsFromEnv(["resolve", "languages"])
|
...getExtraOptionsFromEnv(["resolve", "languages"])
|
||||||
];
|
];
|
||||||
const output = await runCli(cmd, codeqlArgs);
|
const output = await runCli(cmd, codeqlArgs);
|
||||||
@@ -91253,7 +91279,6 @@ ${output}`
|
|||||||
"run-queries",
|
"run-queries",
|
||||||
...flags,
|
...flags,
|
||||||
databasePath,
|
databasePath,
|
||||||
"--intra-layer-parallelism",
|
|
||||||
"--min-disk-free=1024",
|
"--min-disk-free=1024",
|
||||||
// Try to leave at least 1GB free
|
// Try to leave at least 1GB free
|
||||||
"-v",
|
"-v",
|
||||||
@@ -93123,6 +93148,10 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
validateUniqueCategory(sarif, uploadTarget.sentinelPrefix);
|
||||||
logger.debug(`Serializing SARIF for upload`);
|
logger.debug(`Serializing SARIF for upload`);
|
||||||
const sarifPayload = JSON.stringify(sarif);
|
const sarifPayload = JSON.stringify(sarif);
|
||||||
|
const dumpDir = process.env["CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */];
|
||||||
|
if (dumpDir) {
|
||||||
|
dumpSarifFile(sarifPayload, dumpDir, logger, uploadTarget);
|
||||||
|
}
|
||||||
logger.debug(`Compressing serialized SARIF`);
|
logger.debug(`Compressing serialized SARIF`);
|
||||||
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
const zippedSarif = import_zlib.default.gzipSync(sarifPayload).toString("base64");
|
||||||
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
const checkoutURI = url.pathToFileURL(checkoutPath).href;
|
||||||
@@ -93161,6 +93190,21 @@ async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features
|
|||||||
sarifID
|
sarifID
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
function dumpSarifFile(sarifPayload, outputDir, logger, uploadTarget) {
|
||||||
|
if (!fs14.existsSync(outputDir)) {
|
||||||
|
fs14.mkdirSync(outputDir, { recursive: true });
|
||||||
|
} else if (!fs14.lstatSync(outputDir).isDirectory()) {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
`The path specified by the ${"CODEQL_ACTION_SARIF_DUMP_DIR" /* SARIF_DUMP_DIR */} environment variable exists and is not a directory: ${outputDir}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const outputFile = path15.resolve(
|
||||||
|
outputDir,
|
||||||
|
`upload${uploadTarget.sarifExtension}`
|
||||||
|
);
|
||||||
|
logger.info(`Dumping processed SARIF file to ${outputFile}`);
|
||||||
|
fs14.writeFileSync(outputFile, sarifPayload);
|
||||||
|
}
|
||||||
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
var STATUS_CHECK_FREQUENCY_MILLISECONDS = 5 * 1e3;
|
||||||
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
var STATUS_CHECK_TIMEOUT_MILLISECONDS = 2 * 60 * 1e3;
|
||||||
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
async function waitForProcessing(repositoryNwo, sarifID, logger, options = {
|
||||||
|
|||||||
16
package-lock.json
generated
16
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.30.2",
|
"version": "3.30.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.30.2",
|
"version": "3.30.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
@@ -3164,9 +3164,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -7792,9 +7792,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/readdir-glob/node_modules/brace-expansion": {
|
"node_modules/readdir-glob/node_modules/brace-expansion": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"balanced-match": "^1.0.0"
|
"balanced-match": "^1.0.0"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "3.30.2",
|
"version": "3.30.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL action",
|
"description": "CodeQL action",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -98,6 +98,7 @@
|
|||||||
},
|
},
|
||||||
"eslint-plugin-jsx-a11y": {
|
"eslint-plugin-jsx-a11y": {
|
||||||
"semver": ">=6.3.1"
|
"semver": ">=6.3.1"
|
||||||
}
|
},
|
||||||
|
"brace-expansion@2.0.1": "2.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,5 @@ steps:
|
|||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ steps:
|
|||||||
languages: cpp,csharp,java,javascript,python
|
languages: cpp,csharp,java,javascript,python
|
||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
|
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ steps:
|
|||||||
CORECLR_PROFILER_PATH_64: ""
|
CORECLR_PROFILER_PATH_64: ""
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
- name: Check database
|
- name: Check database
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/codeql_databases"
|
cd "$RUNNER_TEMP/codeql_databases"
|
||||||
if [[ ! -d csharp ]]; then
|
if [[ ! -d csharp ]]; then
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ env:
|
|||||||
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
|
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
|
||||||
steps:
|
steps:
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
# Make sure that Gradle build succeeds in autobuild-dir ...
|
# Make sure that Gradle build succeeds in autobuild-dir ...
|
||||||
cp -a ../action/tests/java-repo autobuild-dir
|
cp -a ../action/tests/java-repo autobuild-dir
|
||||||
@@ -22,7 +21,6 @@ steps:
|
|||||||
languages: java
|
languages: java
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Check that indirect tracing is disabled
|
- name: Check that indirect tracing is disabled
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
||||||
echo "Expected indirect tracing to be disabled, but the" \
|
echo "Expected indirect tracing to be disabled, but the" \
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ env:
|
|||||||
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
|
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Java test repo configuration
|
- name: Set up Java test repo configuration
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
mv * .github ../action/tests/multi-language-repo/
|
mv * .github ../action/tests/multi-language-repo/
|
||||||
mv ../action/tests/multi-language-repo/.github/workflows .github
|
mv ../action/tests/multi-language-repo/.github/workflows .github
|
||||||
@@ -22,7 +21,6 @@ steps:
|
|||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
||||||
- name: Check that indirect tracing is disabled
|
- name: Check that indirect tracing is disabled
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
||||||
echo "Expected indirect tracing to be disabled, but the" \
|
echo "Expected indirect tracing to be disabled, but the" \
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ steps:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ env:
|
|||||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||||
steps:
|
steps:
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -18,8 +17,7 @@ steps:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ls /usr/bin/errno; then
|
if ls /usr/bin/errno; then
|
||||||
echo "C/C++ autobuild installed errno, but it should not have since auto-install dependencies is disabled."
|
echo "C/C++ autobuild installed errno, but it should not have since auto-install dependencies is disabled."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ env:
|
|||||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||||
steps:
|
steps:
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -18,8 +17,7 @@ steps:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ! ls /usr/bin/errno; then
|
if ! ls /usr/bin/errno; then
|
||||||
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
|
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ env:
|
|||||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||||
steps:
|
steps:
|
||||||
- name: Test setup
|
- name: Test setup
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -18,8 +17,7 @@ steps:
|
|||||||
working-directory: autobuild-dir
|
working-directory: autobuild-dir
|
||||||
env:
|
env:
|
||||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
if ! ls /usr/bin/errno; then
|
if ! ls /usr/bin/errno; then
|
||||||
echo "Did not autoinstall errno"
|
echo "Did not autoinstall errno"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ steps:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Add test diagnostics
|
- name: Add test diagnostics
|
||||||
shell: bash
|
|
||||||
env:
|
env:
|
||||||
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
CODEQL_PATH: ${{ steps.init.outputs.codeql-path }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ steps:
|
|||||||
languages: javascript
|
languages: javascript
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
with:
|
with:
|
||||||
@@ -23,7 +22,6 @@ steps:
|
|||||||
path: "${{ runner.temp }}/results/javascript.sarif"
|
path: "${{ runner.temp }}/results/javascript.sarif"
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check results
|
- name: Check results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
cd "$RUNNER_TEMP/results"
|
cd "$RUNNER_TEMP/results"
|
||||||
expected_baseline_languages="c csharp go java kotlin javascript python ruby"
|
expected_baseline_languages="c csharp go java kotlin javascript python ruby"
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ steps:
|
|||||||
ram: 230
|
ram: 230
|
||||||
threads: 1
|
threads: 1
|
||||||
- name: Assert Results
|
- name: Assert Results
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
if [ "${CODEQL_RAM}" != "230" ]; then
|
if [ "${CODEQL_RAM}" != "230" ]; then
|
||||||
echo "CODEQL_RAM is '${CODEQL_RAM}' instead of 230"
|
echo "CODEQL_RAM is '${CODEQL_RAM}' instead of 230"
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ steps:
|
|||||||
config-file: ./.github/codeql/custom-queries.yml
|
config-file: ./.github/codeql/custom-queries.yml
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
shell: bash
|
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user