mirror of
https://github.com/github/codeql-action.git
synced 2025-12-12 18:50:12 +08:00
Compare commits
140 Commits
navntoft/t
...
v3.30.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
303c0aef88 | ||
|
|
333a673809 | ||
|
|
e4b85ab654 | ||
|
|
1e72556714 | ||
|
|
39842d8f83 | ||
|
|
6ccec2ac14 | ||
|
|
435f474d1e | ||
|
|
f134e09015 | ||
|
|
50a31df6ba | ||
|
|
8e25b3435d | ||
|
|
4e820a4ca4 | ||
|
|
5a9c44b3b2 | ||
|
|
3183e6b8f9 | ||
|
|
d43f46c39c | ||
|
|
efcf614b5d | ||
|
|
cec0b17b93 | ||
|
|
86de17c44d | ||
|
|
a8eeef9291 | ||
|
|
f54c1c0b33 | ||
|
|
c6674f9abd | ||
|
|
0890b56a8a | ||
|
|
c6e30a2b5a | ||
|
|
d92eef9c9e | ||
|
|
d34e247444 | ||
|
|
78e8dc0161 | ||
|
|
a29637ac01 | ||
|
|
1ba789f617 | ||
|
|
944aa7df3d | ||
|
|
c656a2569b | ||
|
|
eb05da905d | ||
|
|
e8921f7eff | ||
|
|
2bbfe979c3 | ||
|
|
5c8c613b75 | ||
|
|
e2f4bf692b | ||
|
|
2885255647 | ||
|
|
665891b4f2 | ||
|
|
5a4aa83242 | ||
|
|
54bbe822cc | ||
|
|
4178e15b0a | ||
|
|
7f44048739 | ||
|
|
205b6ba838 | ||
|
|
0a75581cde | ||
|
|
7f73f8c235 | ||
|
|
07920e84f8 | ||
|
|
40262b1861 | ||
|
|
b4f966a31a | ||
|
|
8a84c17a9d | ||
|
|
3837f2e205 | ||
|
|
05310c6f55 | ||
|
|
889d482c54 | ||
|
|
e9d7b2dd99 | ||
|
|
d9ad6a31c3 | ||
|
|
fbe415d86f | ||
|
|
8df00436ea | ||
|
|
bb07e07aff | ||
|
|
86ed2117d5 | ||
|
|
5065ea8eef | ||
|
|
ee37081d03 | ||
|
|
5df1d6e0db | ||
|
|
b8806eca8c | ||
|
|
33da5f0b36 | ||
|
|
8a9ef89a8a | ||
|
|
6b6d1ddcf9 | ||
|
|
2b07444ab3 | ||
|
|
54746c8dad | ||
|
|
5ab5aef079 | ||
|
|
6bb4ad3009 | ||
|
|
4901f549de | ||
|
|
d46a178adb | ||
|
|
e2e36b17af | ||
|
|
bd516303e1 | ||
|
|
6117099fe1 | ||
|
|
79e0afb999 | ||
|
|
a25c57cebe | ||
|
|
48017e960d | ||
|
|
39be66afb0 | ||
|
|
67427c612a | ||
|
|
9e8cbee7cb | ||
|
|
0f4529ee05 | ||
|
|
0c4919df84 | ||
|
|
2d8d6395ef | ||
|
|
6fcf631e73 | ||
|
|
a067418f51 | ||
|
|
c7eb488f8f | ||
|
|
d14a2122fd | ||
|
|
1bfb67dae0 | ||
|
|
781a65ae32 | ||
|
|
ed216a06d2 | ||
|
|
6150aff57f | ||
|
|
3b00d03019 | ||
|
|
4f9b2f7f06 | ||
|
|
96ca55b157 | ||
|
|
0337c4c06e | ||
|
|
c22ae04dd3 | ||
|
|
80273e2bc1 | ||
|
|
dc1166cacb | ||
|
|
ddc6d540f0 | ||
|
|
6222edff53 | ||
|
|
3305d21389 | ||
|
|
db37d924ee | ||
|
|
6249793233 | ||
|
|
e33b0ab3ac | ||
|
|
7bea0e2e12 | ||
|
|
d378195403 | ||
|
|
12dda79905 | ||
|
|
a2ce099060 | ||
|
|
696b467654 | ||
|
|
c8e017d3e7 | ||
|
|
8185897cad | ||
|
|
a6161a8092 | ||
|
|
35454d39b2 | ||
|
|
b73659a4ff | ||
|
|
2f35a47982 | ||
|
|
242ca1c0a1 | ||
|
|
573acd9552 | ||
|
|
668f0f00da | ||
|
|
0b263ec528 | ||
|
|
9e5383b3b1 | ||
|
|
8279538f3d | ||
|
|
86f23c3336 | ||
|
|
77c3d2533d | ||
|
|
1069ace04e | ||
|
|
4014b75309 | ||
|
|
bce0fa7b27 | ||
|
|
8105843d42 | ||
|
|
61b8b636e3 | ||
|
|
73ead84d0a | ||
|
|
793fe1783c | ||
|
|
c9d2739db2 | ||
|
|
d0f02ad683 | ||
|
|
1343eba2d0 | ||
|
|
cde0d796a6 | ||
|
|
d08f929510 | ||
|
|
d9bc711b1c | ||
|
|
f537110285 | ||
|
|
5d79536231 | ||
|
|
f77ed607fd | ||
|
|
8d31b533a2 | ||
|
|
436471d2fb | ||
|
|
1a80c9b44e |
@@ -6,6 +6,16 @@ import * as assert from 'assert'
|
|||||||
|
|
||||||
const actualConfig = loadActualConfig()
|
const actualConfig = loadActualConfig()
|
||||||
|
|
||||||
|
function sortConfigArrays(config) {
|
||||||
|
for (const key of Object.keys(config)) {
|
||||||
|
const value = config[key];
|
||||||
|
if (key === 'queries' && Array.isArray(value)) {
|
||||||
|
config[key] = value.sort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
const rawExpectedConfig = process.argv[3].trim()
|
const rawExpectedConfig = process.argv[3].trim()
|
||||||
if (!rawExpectedConfig) {
|
if (!rawExpectedConfig) {
|
||||||
core.setFailed('No expected configuration provided')
|
core.setFailed('No expected configuration provided')
|
||||||
@@ -18,8 +28,8 @@ if (!rawExpectedConfig) {
|
|||||||
const expectedConfig = rawExpectedConfig ? JSON.parse(rawExpectedConfig) : undefined;
|
const expectedConfig = rawExpectedConfig ? JSON.parse(rawExpectedConfig) : undefined;
|
||||||
|
|
||||||
assert.deepStrictEqual(
|
assert.deepStrictEqual(
|
||||||
actualConfig,
|
sortConfigArrays(actualConfig),
|
||||||
expectedConfig,
|
sortConfigArrays(expectedConfig),
|
||||||
'Expected configuration does not match actual configuration'
|
'Expected configuration does not match actual configuration'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
26
.github/actions/prepare-test/action.yml
vendored
26
.github/actions/prepare-test/action.yml
vendored
@@ -2,7 +2,7 @@ name: "Prepare test"
|
|||||||
description: Performs some preparation to run tests
|
description: Performs some preparation to run tests
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
|
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
|
||||||
required: true
|
required: true
|
||||||
use-all-platform-bundle:
|
use-all-platform-bundle:
|
||||||
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
|
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
|
||||||
@@ -35,7 +35,10 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
set -e # Fail this Action if `gh release list` fails.
|
set -e # Fail this Action if `gh release list` fails.
|
||||||
|
|
||||||
if [[ "$VERSION" == "linked" ]]; then
|
if [[ "$VERSION" == "nightly" || "$VERSION" == "nightly-latest" ]]; then
|
||||||
|
echo "tools-url=nightly" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
|
elif [[ "$VERSION" == "linked" ]]; then
|
||||||
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
|
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ "$VERSION" == "default" ]]; then
|
elif [[ "$VERSION" == "default" ]]; then
|
||||||
@@ -43,29 +46,20 @@ runs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$VERSION" == "nightly-latest" && "$RUNNER_OS" != "Windows" ]]; then
|
|
||||||
extension="tar.zst"
|
|
||||||
else
|
|
||||||
extension="tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then
|
if [[ "$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then
|
||||||
artifact_name="codeql-bundle.$extension"
|
artifact_name="codeql-bundle.tar.gz"
|
||||||
elif [[ "$RUNNER_OS" == "Linux" ]]; then
|
elif [[ "$RUNNER_OS" == "Linux" ]]; then
|
||||||
artifact_name="codeql-bundle-linux64.$extension"
|
artifact_name="codeql-bundle-linux64.tar.gz"
|
||||||
elif [[ "$RUNNER_OS" == "macOS" ]]; then
|
elif [[ "$RUNNER_OS" == "macOS" ]]; then
|
||||||
artifact_name="codeql-bundle-osx64.$extension"
|
artifact_name="codeql-bundle-osx64.tar.gz"
|
||||||
elif [[ "$RUNNER_OS" == "Windows" ]]; then
|
elif [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
artifact_name="codeql-bundle-win64.$extension"
|
artifact_name="codeql-bundle-win64.tar.gz"
|
||||||
else
|
else
|
||||||
echo "::error::Unrecognized OS $RUNNER_OS"
|
echo "::error::Unrecognized OS $RUNNER_OS"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$VERSION" == "nightly-latest" ]]; then
|
if [[ "$VERSION" == *"nightly"* ]]; then
|
||||||
tag=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
|
|
||||||
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/$artifact_name" >> $GITHUB_OUTPUT
|
|
||||||
elif [[ "$VERSION" == *"nightly"* ]]; then
|
|
||||||
version=`echo "$VERSION" | sed -e 's/^.*\-//'`
|
version=`echo "$VERSION" | sed -e 's/^.*\-//'`
|
||||||
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
|
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
|
||||||
elif [[ "$VERSION" == *"stable"* ]]; then
|
elif [[ "$VERSION" == *"stable"* ]]; then
|
||||||
|
|||||||
4
.github/codeql/codeql-actions-config.yml
vendored
4
.github/codeql/codeql-actions-config.yml
vendored
@@ -1,4 +0,0 @@
|
|||||||
# Configuration for the CodeQL Actions Queries
|
|
||||||
name: "CodeQL Actions Queries config"
|
|
||||||
queries:
|
|
||||||
- uses: security-and-quality
|
|
||||||
@@ -7,9 +7,9 @@ queries:
|
|||||||
# we include both even though one is a superset of the
|
# we include both even though one is a superset of the
|
||||||
# other, because we're testing the parsing logic and
|
# other, because we're testing the parsing logic and
|
||||||
# that the suites exist in the codeql bundle.
|
# that the suites exist in the codeql bundle.
|
||||||
|
- uses: security-and-quality
|
||||||
- uses: security-experimental
|
- uses: security-experimental
|
||||||
- uses: security-extended
|
- uses: security-extended
|
||||||
- uses: security-and-quality
|
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- tests
|
|
||||||
- lib
|
- lib
|
||||||
|
- tests
|
||||||
14
.github/dependabot.yml
vendored
14
.github/dependabot.yml
vendored
@@ -20,18 +20,14 @@ updates:
|
|||||||
patterns:
|
patterns:
|
||||||
- "*"
|
- "*"
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: "/"
|
directories:
|
||||||
|
- "/.github/workflows"
|
||||||
|
- "/.github/actions"
|
||||||
schedule:
|
schedule:
|
||||||
interval: weekly
|
interval: weekly
|
||||||
|
labels:
|
||||||
|
- Rebuild
|
||||||
groups:
|
groups:
|
||||||
actions:
|
actions:
|
||||||
patterns:
|
patterns:
|
||||||
- "*"
|
- "*"
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/.github/actions/setup-swift/" # All subdirectories outside of "/.github/workflows" must be explicitly included.
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
groups:
|
|
||||||
actions-setup-swift:
|
|
||||||
patterns:
|
|
||||||
- "*"
|
|
||||||
|
|||||||
6
.github/workflows/__all-platform-bundle.yml
generated
vendored
6
.github/workflows/__all-platform-bundle.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
all-platform-bundle:
|
all-platform-bundle:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: All-platform bundle
|
name: All-platform bundle
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,7 +66,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'true'
|
use-all-platform-bundle: 'true'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
6
.github/workflows/__analyze-ref-input.yml
generated
vendored
6
.github/workflows/__analyze-ref-input.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
analyze-ref-input:
|
analyze-ref-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: default
|
version: default
|
||||||
name: "Analyze: 'ref' and 'sha' from inputs"
|
name: "Analyze: 'ref' and 'sha' from inputs"
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__autobuild-action.yml
generated
vendored
4
.github/workflows/__autobuild-action.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-action:
|
autobuild-action:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: autobuild-action
|
name: autobuild-action
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__autobuild-direct-tracing-with-working-dir.yml
generated
vendored
4
.github/workflows/__autobuild-direct-tracing-with-working-dir.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-direct-tracing-with-working-dir:
|
autobuild-direct-tracing-with-working-dir:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -52,6 +55,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Autobuild direct tracing (custom working directory)
|
name: Autobuild direct tracing (custom working directory)
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
4
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
autobuild-direct-tracing:
|
autobuild-direct-tracing:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -52,6 +55,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Autobuild direct tracing
|
name: Autobuild direct tracing
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__build-mode-autobuild.yml
generated
vendored
4
.github/workflows/__build-mode-autobuild.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-autobuild:
|
build-mode-autobuild:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Build mode autobuild
|
name: Build mode autobuild
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__build-mode-manual.yml
generated
vendored
6
.github/workflows/__build-mode-manual.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-manual:
|
build-mode-manual:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Build mode manual
|
name: Build mode manual
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,7 +66,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__build-mode-none.yml
generated
vendored
4
.github/workflows/__build-mode-none.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-none:
|
build-mode-none:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -38,6 +41,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Build mode none
|
name: Build mode none
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__build-mode-rollback.yml
generated
vendored
4
.github/workflows/__build-mode-rollback.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
build-mode-rollback:
|
build-mode-rollback:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Build mode rollback
|
name: Build mode rollback
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
10
.github/workflows/__bundle-toolcache.yml
generated
vendored
10
.github/workflows/__bundle-toolcache.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
bundle-toolcache:
|
bundle-toolcache:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: 'Bundle: Caching checks'
|
name: 'Bundle: Caching checks'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -56,7 +60,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
- name: Install @actions/tool-cache
|
- name: Install @actions/tool-cache
|
||||||
run: npm install @actions/tool-cache
|
run: npm install @actions/tool-cache
|
||||||
- name: Check toolcache does not contain CodeQL
|
- name: Check toolcache does not contain CodeQL
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const toolcache = require('@actions/tool-cache');
|
const toolcache = require('@actions/tool-cache');
|
||||||
@@ -85,7 +89,7 @@ jobs:
|
|||||||
output: ${{ runner.temp }}/results
|
output: ${{ runner.temp }}/results
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check CodeQL is installed within the toolcache
|
- name: Check CodeQL is installed within the toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const toolcache = require('@actions/tool-cache');
|
const toolcache = require('@actions/tool-cache');
|
||||||
|
|||||||
8
.github/workflows/__bundle-zstd.yml
generated
vendored
8
.github/workflows/__bundle-zstd.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
bundle-zstd:
|
bundle-zstd:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: 'Bundle: Zstandard checks'
|
name: 'Bundle: Zstandard checks'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -56,7 +60,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
@@ -81,7 +85,7 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check diagnostic with expected tools URL appears in SARIF
|
- name: Check diagnostic with expected tools URL appears in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/__cleanup-db-cluster-dir.yml
generated
vendored
4
.github/workflows/__cleanup-db-cluster-dir.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-db-cluster-dir:
|
cleanup-db-cluster-dir:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Clean up database cluster directory
|
name: Clean up database cluster directory
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__config-export.yml
generated
vendored
6
.github/workflows/__config-export.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
config-export:
|
config-export:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Config export
|
name: Config export
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -77,7 +81,7 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check config properties appear in SARIF
|
- name: Check config properties appear in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/__config-input.yml
generated
vendored
6
.github/workflows/__config-input.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
config-input:
|
config-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Config input
|
name: Config input
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -45,7 +49,7 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|||||||
4
.github/workflows/__cpp-deptrace-disabled.yml
generated
vendored
4
.github/workflows/__cpp-deptrace-disabled.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-disabled:
|
cpp-deptrace-disabled:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'C/C++: disabling autoinstalling dependencies (Linux)'
|
name: 'C/C++: disabling autoinstalling dependencies (Linux)'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__cpp-deptrace-enabled-on-macos.yml
generated
vendored
4
.github/workflows/__cpp-deptrace-enabled-on-macos.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-enabled-on-macos:
|
cpp-deptrace-enabled-on-macos:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -38,6 +41,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'C/C++: autoinstalling dependencies is skipped (macOS)'
|
name: 'C/C++: autoinstalling dependencies is skipped (macOS)'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__cpp-deptrace-enabled.yml
generated
vendored
4
.github/workflows/__cpp-deptrace-enabled.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
cpp-deptrace-enabled:
|
cpp-deptrace-enabled:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'C/C++: autoinstalling dependencies (Linux)'
|
name: 'C/C++: autoinstalling dependencies (Linux)'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__diagnostics-export.yml
generated
vendored
6
.github/workflows/__diagnostics-export.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
diagnostics-export:
|
diagnostics-export:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Diagnostic export
|
name: Diagnostic export
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -88,7 +92,7 @@ jobs:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check diagnostics appear in SARIF
|
- name: Check diagnostics appear in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/__export-file-baseline-information.yml
generated
vendored
6
.github/workflows/__export-file-baseline-information.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
export-file-baseline-information:
|
export-file-baseline-information:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Export file baseline information
|
name: Export file baseline information
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__extractor-ram-threads.yml
generated
vendored
4
.github/workflows/__extractor-ram-threads.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
extractor-ram-threads:
|
extractor-ram-threads:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Extractor ram and threads options test
|
name: Extractor ram and threads options test
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__go-custom-queries.yml
generated
vendored
6
.github/workflows/__go-custom-queries.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-custom-queries:
|
go-custom-queries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -48,6 +51,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Go: Custom queries'
|
name: 'Go: Custom queries'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -64,7 +68,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
10
.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml
generated
vendored
10
.github/workflows/__go-indirect-tracing-workaround-diagnostic.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround-diagnostic:
|
go-indirect-tracing-workaround-diagnostic:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
name: 'Go: diagnostic when Go is changed after init step'
|
name: 'Go: diagnostic when Go is changed after init step'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,7 +66,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
@@ -71,7 +75,7 @@ jobs:
|
|||||||
languages: go
|
languages: go
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
# Deliberately change Go after the `init` step
|
# Deliberately change Go after the `init` step
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20'
|
||||||
- name: Build code
|
- name: Build code
|
||||||
@@ -81,7 +85,7 @@ jobs:
|
|||||||
output: ${{ runner.temp }}/results
|
output: ${{ runner.temp }}/results
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check diagnostic appears in SARIF
|
- name: Check diagnostic appears in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/go.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/go.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
8
.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml
generated
vendored
8
.github/workflows/__go-indirect-tracing-workaround-no-file-program.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround-no-file-program:
|
go-indirect-tracing-workaround-no-file-program:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
name: 'Go: diagnostic when `file` is not installed'
|
name: 'Go: diagnostic when `file` is not installed'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,7 +66,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
@@ -82,7 +86,7 @@ jobs:
|
|||||||
output: ${{ runner.temp }}/results
|
output: ${{ runner.temp }}/results
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check diagnostic appears in SARIF
|
- name: Check diagnostic appears in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/go.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/go.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/__go-indirect-tracing-workaround.yml
generated
vendored
6
.github/workflows/__go-indirect-tracing-workaround.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-indirect-tracing-workaround:
|
go-indirect-tracing-workaround:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
name: 'Go: workaround for indirect tracing'
|
name: 'Go: workaround for indirect tracing'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,7 +66,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
10
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
10
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-autobuilder:
|
go-tracing-autobuilder:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -63,6 +66,10 @@ jobs:
|
|||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -76,6 +83,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Go: tracing with autobuilder step'
|
name: 'Go: tracing with autobuilder step'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -92,7 +100,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
10
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
10
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-custom-build-steps:
|
go-tracing-custom-build-steps:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -63,6 +66,10 @@ jobs:
|
|||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -76,6 +83,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Go: tracing with custom build steps'
|
name: 'Go: tracing with custom build steps'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -92,7 +100,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
10
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
10
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
go-tracing-legacy-workflow:
|
go-tracing-legacy-workflow:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -63,6 +66,10 @@ jobs:
|
|||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -76,6 +83,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Go: tracing with legacy workflow'
|
name: 'Go: tracing with legacy workflow'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -92,7 +100,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__init-with-registries.yml
generated
vendored
4
.github/workflows/__init-with-registries.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
init-with-registries:
|
init-with-registries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -52,6 +55,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Packaging: Download using registries'
|
name: 'Packaging: Download using registries'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: read
|
packages: read
|
||||||
|
|||||||
4
.github/workflows/__javascript-source-root.yml
generated
vendored
4
.github/workflows/__javascript-source-root.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
javascript-source-root:
|
javascript-source-root:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Custom source root
|
name: Custom source root
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__job-run-uuid-sarif.yml
generated
vendored
4
.github/workflows/__job-run-uuid-sarif.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
job-run-uuid-sarif:
|
job-run-uuid-sarif:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Job run UUID added to SARIF
|
name: Job run UUID added to SARIF
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__language-aliases.yml
generated
vendored
4
.github/workflows/__language-aliases.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
language-aliases:
|
language-aliases:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Language aliases
|
name: Language aliases
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
10
.github/workflows/__multi-language-autodetect.yml
generated
vendored
10
.github/workflows/__multi-language-autodetect.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
multi-language-autodetect:
|
multi-language-autodetect:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -63,6 +66,10 @@ jobs:
|
|||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: stable-v2.21.4
|
version: stable-v2.21.4
|
||||||
|
- os: macos-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: stable-v2.22.4
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: default
|
version: default
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
@@ -76,6 +83,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Multi-language repository
|
name: Multi-language repository
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -92,7 +100,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__overlay-init-fallback.yml
generated
vendored
4
.github/workflows/__overlay-init-fallback.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
overlay-init-fallback:
|
overlay-init-fallback:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -38,6 +41,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Overlay database init fallback
|
name: Overlay database init fallback
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
8
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-codescanning-config-inputs-js:
|
packaging-codescanning-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -62,6 +65,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Packaging: Config and input passed to the CLI'
|
name: 'Packaging: Config and input passed to the CLI'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -71,7 +75,7 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -85,7 +89,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
8
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-inputs-js:
|
packaging-config-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -62,6 +65,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Packaging: Config and input'
|
name: 'Packaging: Config and input'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -71,7 +75,7 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -85,7 +89,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
8
.github/workflows/__packaging-config-js.yml
generated
vendored
8
.github/workflows/__packaging-config-js.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-config-js:
|
packaging-config-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -62,6 +65,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Packaging: Config file'
|
name: 'Packaging: Config file'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -71,7 +75,7 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -85,7 +89,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
8
.github/workflows/__packaging-inputs-js.yml
generated
vendored
8
.github/workflows/__packaging-inputs-js.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
packaging-inputs-js:
|
packaging-inputs-js:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -62,6 +65,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'Packaging: Action input'
|
name: 'Packaging: Action input'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -71,7 +75,7 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -85,7 +89,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
8
.github/workflows/__quality-queries.yml
generated
vendored
8
.github/workflows/__quality-queries.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
quality-queries:
|
quality-queries:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -88,6 +91,7 @@ jobs:
|
|||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
analysis-kinds: code-scanning,code-quality
|
analysis-kinds: code-scanning,code-quality
|
||||||
name: Quality queries input
|
name: Quality queries input
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -130,7 +134,7 @@ jobs:
|
|||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check quality query does not appear in security SARIF
|
- name: Check quality query does not appear in security SARIF
|
||||||
if: contains(matrix.analysis-kinds, 'code-scanning')
|
if: contains(matrix.analysis-kinds, 'code-scanning')
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
||||||
EXPECT_PRESENT: 'false'
|
EXPECT_PRESENT: 'false'
|
||||||
@@ -138,7 +142,7 @@ jobs:
|
|||||||
script: ${{ env.CHECK_SCRIPT }}
|
script: ${{ env.CHECK_SCRIPT }}
|
||||||
- name: Check quality query appears in quality SARIF
|
- name: Check quality query appears in quality SARIF
|
||||||
if: contains(matrix.analysis-kinds, 'code-quality')
|
if: contains(matrix.analysis-kinds, 'code-quality')
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.quality.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.quality.sarif
|
||||||
EXPECT_PRESENT: 'true'
|
EXPECT_PRESENT: 'true'
|
||||||
|
|||||||
6
.github/workflows/__remote-config.yml
generated
vendored
6
.github/workflows/__remote-config.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
remote-config:
|
remote-config:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -48,6 +51,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Remote config file
|
name: Remote config file
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -64,7 +68,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__resolve-environment-action.yml
generated
vendored
4
.github/workflows/__resolve-environment-action.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
resolve-environment-action:
|
resolve-environment-action:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -52,6 +55,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Resolve environment
|
name: Resolve environment
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__rubocop-multi-language.yml
generated
vendored
6
.github/workflows/__rubocop-multi-language.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
rubocop-multi-language:
|
rubocop-multi-language:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
name: RuboCop multi-language
|
name: RuboCop multi-language
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -52,7 +56,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
|
uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a # v1.263.0
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6
|
ruby-version: 2.6
|
||||||
- name: Install Code Scanning integration
|
- name: Install Code Scanning integration
|
||||||
|
|||||||
4
.github/workflows/__ruby.yml
generated
vendored
4
.github/workflows/__ruby.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
ruby:
|
ruby:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Ruby analysis
|
name: Ruby analysis
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__rust.yml
generated
vendored
4
.github/workflows/__rust.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
rust:
|
rust:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -44,6 +47,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Rust analysis
|
name: Rust analysis
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__split-workflow.yml
generated
vendored
6
.github/workflows/__split-workflow.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
split-workflow:
|
split-workflow:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -56,6 +59,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Split workflow
|
name: Split workflow
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -72,7 +76,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__start-proxy.yml
generated
vendored
4
.github/workflows/__start-proxy.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
start-proxy:
|
start-proxy:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Start proxy
|
name: Start proxy
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
4
.github/workflows/__submit-sarif-failure.yml
generated
vendored
4
.github/workflows/__submit-sarif-failure.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
submit-sarif-failure:
|
submit-sarif-failure:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -40,6 +43,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Submit SARIF after failure
|
name: Submit SARIF after failure
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write # needed to upload the SARIF file
|
security-events: write # needed to upload the SARIF file
|
||||||
|
|||||||
4
.github/workflows/__swift-autobuild.yml
generated
vendored
4
.github/workflows/__swift-autobuild.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
swift-autobuild:
|
swift-autobuild:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Swift analysis using autobuild
|
name: Swift analysis using autobuild
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__swift-custom-build.yml
generated
vendored
6
.github/workflows/__swift-custom-build.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
swift-custom-build:
|
swift-custom-build:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Swift analysis using a custom build command
|
name: Swift analysis using a custom build command
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
4
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
4
.github/workflows/__test-autobuild-working-dir.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
test-autobuild-working-dir:
|
test-autobuild-working-dir:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -36,6 +39,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Autobuild working directory
|
name: Autobuild working directory
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
14
.github/workflows/__test-local-codeql.yml
generated
vendored
14
.github/workflows/__test-local-codeql.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
test-local-codeql:
|
test-local-codeql:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -44,8 +47,9 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: linked
|
||||||
name: Local CodeQL bundle
|
name: Local CodeQL bundle
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -62,15 +66,13 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
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 latest CodeQL bundle
|
||||||
env:
|
|
||||||
CODEQL_URL: ${{ steps.prepare-test.outputs.tools-url }}
|
|
||||||
run: |
|
run: |
|
||||||
wget "$CODEQL_URL"
|
wget https://github.com/github/codeql-action/releases/latest/download/codeql-bundle-linux64.tar.zst
|
||||||
- id: init
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/__test-proxy.yml
generated
vendored
4
.github/workflows/__test-proxy.yml
generated
vendored
@@ -27,6 +27,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
test-proxy:
|
test-proxy:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -38,6 +41,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Proxy test
|
name: Proxy test
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
6
.github/workflows/__unset-environment.yml
generated
vendored
6
.github/workflows/__unset-environment.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
unset-environment:
|
unset-environment:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -48,6 +51,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: Test unsetting environment variables
|
name: Test unsetting environment variables
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -64,7 +68,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
16
.github/workflows/__upload-quality-sarif.yml
generated
vendored
16
.github/workflows/__upload-quality-sarif.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
upload-quality-sarif:
|
upload-quality-sarif:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: default
|
version: default
|
||||||
name: 'Upload-sarif: code quality endpoint'
|
name: 'Upload-sarif: code quality endpoint'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,17 +70,15 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
languages: cpp,csharp,java,javascript,python
|
languages: csharp,java,javascript,python
|
||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
analysis-kinds: code-quality
|
||||||
github.sha }}
|
|
||||||
analysis-kinds: code-scanning,code-quality
|
|
||||||
- name: Build code
|
- name: Build code
|
||||||
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
|
||||||
@@ -86,8 +88,12 @@ jobs:
|
|||||||
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
upload: never
|
upload: never
|
||||||
- uses: ./../action/upload-sarif
|
- uses: ./../action/upload-sarif
|
||||||
|
id: upload-sarif
|
||||||
with:
|
with:
|
||||||
ref: refs/heads/main
|
ref: refs/heads/main
|
||||||
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
- name: Check output from `upload-sarif` step
|
||||||
|
if: fromJSON(steps.upload-sarif.outputs.sarif-ids)[0].analysis != 'code-quality'
|
||||||
|
run: exit 1
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|||||||
6
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
6
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
upload-ref-sha-input:
|
upload-ref-sha-input:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: default
|
version: default
|
||||||
name: "Upload-sarif: 'ref' and 'sha' from inputs"
|
name: "Upload-sarif: 'ref' and 'sha' from inputs"
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
6
.github/workflows/__with-checkout-path.yml
generated
vendored
6
.github/workflows/__with-checkout-path.yml
generated
vendored
@@ -37,6 +37,9 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
jobs:
|
jobs:
|
||||||
with-checkout-path:
|
with-checkout-path:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
version: linked
|
version: linked
|
||||||
name: Use a custom `checkout_path`
|
name: Use a custom `checkout_path`
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
@@ -66,7 +70,7 @@ jobs:
|
|||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
cache: false
|
cache: false
|
||||||
|
|||||||
25
.github/workflows/codeql.yml
vendored
25
.github/workflows/codeql.yml
vendored
@@ -23,6 +23,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
# Identify the CodeQL tool versions to use in the analysis job.
|
# Identify the CodeQL tool versions to use in the analysis job.
|
||||||
check-codeql-versions:
|
check-codeql-versions:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
versions: ${{ steps.compare.outputs.versions }}
|
versions: ${{ steps.compare.outputs.versions }}
|
||||||
@@ -75,6 +76,7 @@ jobs:
|
|||||||
echo "versions=${VERSIONS_JSON}" >> $GITHUB_OUTPUT
|
echo "versions=${VERSIONS_JSON}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
analyze-javascript:
|
analyze-javascript:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
needs: [check-codeql-versions]
|
needs: [check-codeql-versions]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -95,7 +97,7 @@ jobs:
|
|||||||
id: init
|
id: init
|
||||||
with:
|
with:
|
||||||
languages: javascript
|
languages: javascript
|
||||||
config-file: ./.github/codeql/codeql-config.yml
|
config-file: ./.github/codeql/codeql-config-javascript.yml
|
||||||
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
|
||||||
@@ -107,13 +109,18 @@ jobs:
|
|||||||
uses: ./analyze
|
uses: ./analyze
|
||||||
with:
|
with:
|
||||||
category: "/language:javascript"
|
category: "/language:javascript"
|
||||||
|
upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && 'always') || 'never' }}
|
||||||
|
|
||||||
|
analyze-other:
|
||||||
analyze-actions:
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- language: actions
|
||||||
|
- language: python
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -125,9 +132,15 @@ jobs:
|
|||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: ./init
|
uses: ./init
|
||||||
with:
|
with:
|
||||||
languages: actions
|
languages: ${{ matrix.language }}
|
||||||
config-file: ./.github/codeql/codeql-actions-config.yml
|
build-mode: none
|
||||||
|
config: >
|
||||||
|
paths-ignore:
|
||||||
|
- lib
|
||||||
|
- tests
|
||||||
|
queries:
|
||||||
|
- uses: security-and-quality
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: ./analyze
|
uses: ./analyze
|
||||||
with:
|
with:
|
||||||
category: "/language:actions"
|
category: "/language:${{ matrix.language }}"
|
||||||
|
|||||||
13
.github/workflows/codescanning-config-cli.yml
vendored
13
.github/workflows/codescanning-config-cli.yml
vendored
@@ -28,6 +28,7 @@ defaults:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
code-scanning-config-tests:
|
code-scanning-config-tests:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -61,7 +62,7 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
@@ -180,13 +181,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
expected-config-file-contents: |
|
expected-config-file-contents: |
|
||||||
{
|
{
|
||||||
"queries": [
|
|
||||||
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/foo2/show_ifs.ql" },
|
|
||||||
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql" }
|
|
||||||
],
|
|
||||||
"packs": {
|
"packs": {
|
||||||
"javascript": ["codeql-testing/codeql-pack1@1.0.0", "codeql-testing/codeql-pack2", "codeql/javascript-queries" ]
|
"javascript": ["codeql-testing/codeql-pack1@1.0.0", "codeql-testing/codeql-pack2", "codeql/javascript-queries" ]
|
||||||
}
|
},
|
||||||
|
"queries": [
|
||||||
|
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql" },
|
||||||
|
{ "uses": "./codeql-qlpacks/complex-javascript-qlpack/foo2/show_ifs.ql" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
languages: javascript
|
languages: javascript
|
||||||
queries: + ./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql
|
queries: + ./codeql-qlpacks/complex-javascript-qlpack/show_ifs.ql
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ defaults:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -50,7 +51,7 @@ jobs:
|
|||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13.1
|
go-version: ^1.13.1
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -70,6 +71,7 @@ jobs:
|
|||||||
expect-error: true
|
expect-error: true
|
||||||
download-and-check-artifacts:
|
download-and-check-artifacts:
|
||||||
name: Download and check debug artifacts after failure in analyze
|
name: Download and check debug artifacts after failure in analyze
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
needs: upload-artifacts
|
needs: upload-artifacts
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
4
.github/workflows/debug-artifacts-safe.yml
vendored
4
.github/workflows/debug-artifacts-safe.yml
vendored
@@ -23,6 +23,7 @@ defaults:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-artifacts:
|
upload-artifacts:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -46,7 +47,7 @@ jobs:
|
|||||||
uses: ./.github/actions/prepare-test
|
uses: ./.github/actions/prepare-test
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13.1
|
go-version: ^1.13.1
|
||||||
- uses: ./../action/init
|
- uses: ./../action/init
|
||||||
@@ -64,6 +65,7 @@ jobs:
|
|||||||
id: analysis
|
id: analysis
|
||||||
download-and-check-artifacts:
|
download-and-check-artifacts:
|
||||||
name: Download and check debug artifacts
|
name: Download and check debug artifacts
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
needs: upload-artifacts
|
needs: upload-artifacts
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
4
.github/workflows/post-release-mergeback.yml
vendored
4
.github/workflows/post-release-mergeback.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # ensure we have all tags and can push commits
|
fetch-depth: 0 # ensure we have all tags and can push commits
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v5
|
||||||
|
|
||||||
- name: Update git config
|
- name: Update git config
|
||||||
run: |
|
run: |
|
||||||
@@ -139,7 +139,7 @@ jobs:
|
|||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
uses: actions/create-github-app-token@v2.1.1
|
uses: actions/create-github-app-token@v2.1.4
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
||||||
|
|||||||
11
.github/workflows/pr-checks.yml
vendored
11
.github/workflows/pr-checks.yml
vendored
@@ -15,6 +15,7 @@ defaults:
|
|||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
unit-tests:
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -33,13 +34,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
|
|
||||||
@@ -59,6 +60,10 @@ jobs:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
|
- name: Run pr-checks tests
|
||||||
|
working-directory: pr-checks
|
||||||
|
run: python -m unittest discover
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: npm run lint-ci
|
run: npm run lint-ci
|
||||||
@@ -71,7 +76,7 @@ jobs:
|
|||||||
category: eslint
|
category: eslint
|
||||||
|
|
||||||
check-node-version:
|
check-node-version:
|
||||||
if: github.event.pull_request
|
if: github.event.pull_request && github.triggering_actor != 'dependabot[bot]'
|
||||||
name: Check Action Node versions
|
name: Check Action Node versions
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
|
|||||||
3
.github/workflows/python312-windows.yml
vendored
3
.github/workflows/python312-windows.yml
vendored
@@ -18,6 +18,7 @@ defaults:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-setup-python-scripts:
|
test-setup-python-scripts:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
@@ -26,7 +27,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.12
|
python-version: 3.12
|
||||||
|
|
||||||
|
|||||||
3
.github/workflows/query-filters.yml
vendored
3
.github/workflows/query-filters.yml
vendored
@@ -22,6 +22,7 @@ defaults:
|
|||||||
jobs:
|
jobs:
|
||||||
query-filters:
|
query-filters:
|
||||||
name: Query Filters Tests
|
name: Query Filters Tests
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@@ -31,7 +32,7 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|||||||
21
.github/workflows/rebuild.yml
vendored
21
.github/workflows/rebuild.yml
vendored
@@ -15,6 +15,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.label.name == 'Rebuild' || github.event_name == 'workflow_dispatch'
|
if: github.event.label.name == 'Rebuild' || github.event_name == 'workflow_dispatch'
|
||||||
|
|
||||||
|
env:
|
||||||
|
HEAD_REF: ${{ github.event.pull_request.head.ref || github.event.ref }}
|
||||||
|
BASE_BRANCH: ${{ github.event.pull_request.base.ref || 'main' }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # needed to push rebuilt commit
|
contents: write # needed to push rebuilt commit
|
||||||
pull-requests: write # needed to comment on the PR
|
pull-requests: write # needed to comment on the PR
|
||||||
@@ -23,7 +27,7 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.event.pull_request.head.ref || github.event.ref }}
|
ref: ${{ env.HEAD_REF }}
|
||||||
|
|
||||||
- name: Remove label
|
- name: Remove label
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
@@ -41,8 +45,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Merge in changes from base branch
|
- name: Merge in changes from base branch
|
||||||
id: merge
|
id: merge
|
||||||
env:
|
|
||||||
BASE_BRANCH: ${{ github.event.pull_request.base.ref || 'main' }}
|
|
||||||
run: |
|
run: |
|
||||||
git fetch origin "$BASE_BRANCH"
|
git fetch origin "$BASE_BRANCH"
|
||||||
|
|
||||||
@@ -72,13 +74,20 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
|
|
||||||
- name: Generate workflows
|
- name: Sync back version updates to generated workflows
|
||||||
|
# Only sync back versions on Dependabot update PRs
|
||||||
|
if: startsWith(env.HEAD_REF, 'dependabot/')
|
||||||
|
working-directory: pr-checks
|
||||||
|
run: |
|
||||||
|
python3 sync_back.py -v
|
||||||
|
|
||||||
|
- name: Generate workflows
|
||||||
|
working-directory: pr-checks
|
||||||
run: |
|
run: |
|
||||||
cd pr-checks
|
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install ruamel.yaml==0.17.31
|
pip install ruamel.yaml==0.17.31
|
||||||
python3 sync.py
|
python3 sync.py
|
||||||
|
|||||||
2
.github/workflows/rollback-release.yml
vendored
2
.github/workflows/rollback-release.yml
vendored
@@ -133,7 +133,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
uses: actions/create-github-app-token@v2.1.1
|
uses: actions/create-github-app-token@v2.1.4
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Update the required checks based on the current branch.
|
# Update the required checks based on the current branch.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
REPO_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
GRANDPARENT_DIR="$(dirname "$REPO_DIR")"
|
GRANDPARENT_DIR="$(dirname "$REPO_DIR")"
|
||||||
@@ -31,6 +33,12 @@ CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs -
|
|||||||
|
|
||||||
echo "$CHECKS" | jq
|
echo "$CHECKS" | jq
|
||||||
|
|
||||||
|
# Fail if there are no checks
|
||||||
|
if [ -z "$CHECKS" ] || [ "$(echo "$CHECKS" | jq '. | length')" -eq 0 ]; then
|
||||||
|
echo "No checks found for $GITHUB_SHA"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "{\"contexts\": ${CHECKS}}" > checks.json
|
echo "{\"contexts\": ${CHECKS}}" > checks.json
|
||||||
|
|
||||||
echo "Updating main"
|
echo "Updating main"
|
||||||
|
|||||||
1
.github/workflows/test-codeql-bundle-all.yml
vendored
1
.github/workflows/test-codeql-bundle-all.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
name: 'CodeQL Bundle All'
|
name: 'CodeQL Bundle All'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: read
|
security-events: read
|
||||||
|
|||||||
2
.github/workflows/update-bundle.yml
vendored
2
.github/workflows/update-bundle.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
|||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|||||||
2
.github/workflows/update-proxy-release.yml
vendored
2
.github/workflows/update-proxy-release.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
(gh release view --repo "$GITHUB_REPOSITORY" --json "assets" "$RELEASE_TAG" && echo "Release found.") || exit 1
|
(gh release view --repo "$GITHUB_REPOSITORY" --json "assets" "$RELEASE_TAG" && echo "Release found.") || exit 1
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|||||||
2
.github/workflows/update-release-branch.yml
vendored
2
.github/workflows/update-release-branch.yml
vendored
@@ -93,7 +93,7 @@ jobs:
|
|||||||
pull-requests: write # needed to create pull request
|
pull-requests: write # needed to create pull request
|
||||||
steps:
|
steps:
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
uses: actions/create-github-app-token@v2.1.1
|
uses: actions/create-github-app-token@v2.1.4
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
app-id: ${{ vars.AUTOMATION_APP_ID }}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
- name: Checkout CodeQL Action
|
- name: Checkout CodeQL Action
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
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]
|
## 3.30.4 - 25 Sep 2025
|
||||||
|
|
||||||
- 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 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)
|
- 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)
|
||||||
|
- You can now run the latest CodeQL nightly bundle by passing `tools: nightly` to the `init` action. In general, the nightly bundle is unstable and we only recommend running it when directed by GitHub staff. [#3130](https://github.com/github/codeql-action/pull/3130)
|
||||||
|
- Update default CodeQL bundle version to 2.23.1. [#3118](https://github.com/github/codeql-action/pull/3118)
|
||||||
|
|
||||||
## 3.30.3 - 10 Sep 2025
|
## 3.30.3 - 10 Sep 2025
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ inputs:
|
|||||||
# If changing this, make sure to update workflow.ts accordingly.
|
# If changing this, make sure to update workflow.ts accordingly.
|
||||||
default: ${{ github.workspace }}
|
default: ${{ github.workspace }}
|
||||||
ref:
|
ref:
|
||||||
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is ignored for pull requests from forks."
|
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is ignored for pull requests from forks. Expected format: refs/heads/<branch name>, refs/tags/<tag>, refs/pull/<number>/merge, or refs/pull/<number>/head."
|
||||||
required: false
|
required: false
|
||||||
sha:
|
sha:
|
||||||
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks."
|
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks."
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ inputs:
|
|||||||
- The URL of a CodeQL Bundle tarball GitHub release asset, or
|
- The URL of a CodeQL Bundle tarball GitHub release asset, or
|
||||||
- A special value `linked` which uses the version of the CodeQL tools
|
- A special value `linked` which uses the version of the CodeQL tools
|
||||||
that the Action has been bundled with.
|
that the Action has been bundled with.
|
||||||
|
- A special value `nightly` which uses the latest nightly version of the
|
||||||
|
CodeQL tools. Note that this is unstable and not recommended for
|
||||||
|
production use.
|
||||||
|
|
||||||
If not specified, the Action will check in several places until it finds
|
If not specified, the Action will check in several places until it finds
|
||||||
the CodeQL tools.
|
the CodeQL tools.
|
||||||
|
|||||||
2
justfile
2
justfile
@@ -22,7 +22,7 @@ test: build
|
|||||||
|
|
||||||
# Run the tests for a single file
|
# Run the tests for a single file
|
||||||
test_file filename: build
|
test_file filename: build
|
||||||
npx ava --verbose {{filename}}
|
npx ava --serial --verbose {{filename}}
|
||||||
|
|
||||||
[doc("Refresh the .js build artefacts in the lib directory")]
|
[doc("Refresh the .js build artefacts in the lib directory")]
|
||||||
[confirm]
|
[confirm]
|
||||||
|
|||||||
119
lib/analyze-action-post.js
generated
119
lib/analyze-action-post.js
generated
@@ -26447,7 +26447,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26463,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -26486,15 +26486,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -26503,10 +26503,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -67282,7 +67282,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -72091,11 +72091,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72114,6 +72121,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72130,6 +72141,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -72235,11 +72248,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72258,6 +72278,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72274,6 +72298,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -73037,7 +73063,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core14 = __importStar4(require_core());
|
var core14 = __importStar4(require_core());
|
||||||
var path6 = __importStar4(require("path"));
|
var path6 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -73045,7 +73071,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants7();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -73063,6 +73088,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError2;
|
exports2.ReserveCacheError = ReserveCacheError2;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -73334,9 +73367,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core14.debug(`File Size: ${archiveFileSize}`);
|
core14.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core14.debug("Reserving Cache");
|
core14.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -73348,7 +73378,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core14.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -73365,6 +73398,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -73374,6 +73410,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError2.name) {
|
} else if (typedError.name === ReserveCacheError2.name) {
|
||||||
core14.info(`Failed to save: ${typedError.message}`);
|
core14.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core14.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core14.error(`Failed to save: ${typedError.message}`);
|
core14.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -94796,7 +94834,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
var TYPEMASK = 1023;
|
var TYPEMASK = 1023;
|
||||||
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
||||||
var normalizeCache = /* @__PURE__ */ new Map();
|
var normalizeCache = /* @__PURE__ */ new Map();
|
||||||
var normalize3 = (s) => {
|
var normalize2 = (s) => {
|
||||||
const c = normalizeCache.get(s);
|
const c = normalizeCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
@@ -94809,7 +94847,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
const c = normalizeNocaseCache.get(s);
|
const c = normalizeNocaseCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
const n = normalize3(s.toLowerCase());
|
const n = normalize2(s.toLowerCase());
|
||||||
normalizeNocaseCache.set(s, n);
|
normalizeNocaseCache.set(s, n);
|
||||||
return n;
|
return n;
|
||||||
};
|
};
|
||||||
@@ -94978,7 +95016,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
*/
|
*/
|
||||||
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.#matchName = nocase ? normalizeNocase(name) : normalize3(name);
|
this.#matchName = nocase ? normalizeNocase(name) : normalize2(name);
|
||||||
this.#type = type2 & TYPEMASK;
|
this.#type = type2 & TYPEMASK;
|
||||||
this.nocase = nocase;
|
this.nocase = nocase;
|
||||||
this.roots = roots;
|
this.roots = roots;
|
||||||
@@ -95071,7 +95109,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
return this.parent || this;
|
return this.parent || this;
|
||||||
}
|
}
|
||||||
const children = this.children();
|
const children = this.children();
|
||||||
const name = this.nocase ? normalizeNocase(pathPart) : normalize3(pathPart);
|
const name = this.nocase ? normalizeNocase(pathPart) : normalize2(pathPart);
|
||||||
for (const p of children) {
|
for (const p of children) {
|
||||||
if (p.#matchName === name) {
|
if (p.#matchName === name) {
|
||||||
return p;
|
return p;
|
||||||
@@ -95316,7 +95354,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
* directly.
|
* directly.
|
||||||
*/
|
*/
|
||||||
isNamed(n) {
|
isNamed(n) {
|
||||||
return !this.nocase ? this.#matchName === normalize3(n) : this.#matchName === normalizeNocase(n);
|
return !this.nocase ? this.#matchName === normalize2(n) : this.#matchName === normalizeNocase(n);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Return the Path object corresponding to the target of a symbolic link.
|
* Return the Path object corresponding to the target of a symbolic link.
|
||||||
@@ -95455,7 +95493,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
#readdirMaybePromoteChild(e, c) {
|
#readdirMaybePromoteChild(e, c) {
|
||||||
for (let p = c.provisional; p < c.length; p++) {
|
for (let p = c.provisional; p < c.length; p++) {
|
||||||
const pchild = c[p];
|
const pchild = c[p];
|
||||||
const name = this.nocase ? normalizeNocase(e.name) : normalize3(e.name);
|
const name = this.nocase ? normalizeNocase(e.name) : normalize2(e.name);
|
||||||
if (name !== pchild.#matchName) {
|
if (name !== pchild.#matchName) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -103286,7 +103324,7 @@ var require_tr46 = __commonJS({
|
|||||||
TRANSITIONAL: 0,
|
TRANSITIONAL: 0,
|
||||||
NONTRANSITIONAL: 1
|
NONTRANSITIONAL: 1
|
||||||
};
|
};
|
||||||
function normalize3(str2) {
|
function normalize2(str2) {
|
||||||
return str2.split("\0").map(function(s) {
|
return str2.split("\0").map(function(s) {
|
||||||
return s.normalize("NFC");
|
return s.normalize("NFC");
|
||||||
}).join("\0");
|
}).join("\0");
|
||||||
@@ -103366,7 +103404,7 @@ var require_tr46 = __commonJS({
|
|||||||
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
||||||
}
|
}
|
||||||
var error2 = false;
|
var error2 = false;
|
||||||
if (normalize3(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
if (normalize2(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
||||||
error2 = true;
|
error2 = true;
|
||||||
}
|
}
|
||||||
var len = countSymbols(label);
|
var len = countSymbols(label);
|
||||||
@@ -103384,7 +103422,7 @@ var require_tr46 = __commonJS({
|
|||||||
}
|
}
|
||||||
function processing(domain_name, useSTD3, processing_option) {
|
function processing(domain_name, useSTD3, processing_option) {
|
||||||
var result = mapChars(domain_name, useSTD3, processing_option);
|
var result = mapChars(domain_name, useSTD3, processing_option);
|
||||||
result.string = normalize3(result.string);
|
result.string = normalize2(result.string);
|
||||||
var labels = result.string.split(".");
|
var labels = result.string.split(".");
|
||||||
for (var i = 0; i < labels.length; ++i) {
|
for (var i = 0; i < labels.length; ++i) {
|
||||||
try {
|
try {
|
||||||
@@ -117487,7 +117525,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs3 = __toESM(require("fs"));
|
var fs3 = __toESM(require("fs"));
|
||||||
var path3 = __toESM(require("path"));
|
var path3 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -117500,8 +117537,17 @@ var supportedAnalysisKinds = new Set(Object.values(AnalysisKind));
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs2 = __toESM(require("fs"));
|
var fs2 = __toESM(require("fs"));
|
||||||
@@ -117686,7 +117732,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -117747,13 +117793,13 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
var SafeArtifactUploadVersion = "2.20.3";
|
var SafeArtifactUploadVersion = "2.20.3";
|
||||||
function isSafeArtifactUpload(codeQlVersion) {
|
function isSafeArtifactUpload(codeQlVersion) {
|
||||||
return !codeQlVersion ? true : semver2.gte(codeQlVersion, SafeArtifactUploadVersion);
|
return !codeQlVersion ? true : semver3.gte(codeQlVersion, SafeArtifactUploadVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
@@ -117914,6 +117960,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -117955,12 +118006,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path3.join(tempDir, "config");
|
return path3.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
|
|||||||
183
lib/analyze-action.js
generated
183
lib/analyze-action.js
generated
@@ -27722,7 +27722,7 @@ var require_pattern = __commonJS({
|
|||||||
const absolute = [];
|
const absolute = [];
|
||||||
const relative2 = [];
|
const relative2 = [];
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
if (isAbsolute3(pattern)) {
|
if (isAbsolute2(pattern)) {
|
||||||
absolute.push(pattern);
|
absolute.push(pattern);
|
||||||
} else {
|
} else {
|
||||||
relative2.push(pattern);
|
relative2.push(pattern);
|
||||||
@@ -27731,10 +27731,10 @@ var require_pattern = __commonJS({
|
|||||||
return [absolute, relative2];
|
return [absolute, relative2];
|
||||||
}
|
}
|
||||||
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
||||||
function isAbsolute3(pattern) {
|
function isAbsolute2(pattern) {
|
||||||
return path20.isAbsolute(pattern);
|
return path20.isAbsolute(pattern);
|
||||||
}
|
}
|
||||||
exports2.isAbsolute = isAbsolute3;
|
exports2.isAbsolute = isAbsolute2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -32296,7 +32296,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -32312,7 +32312,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -32335,15 +32335,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -32352,10 +32352,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -73131,7 +73131,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -77940,11 +77940,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -77963,6 +77970,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -77979,6 +77990,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78084,11 +78097,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -78107,6 +78127,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -78123,6 +78147,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78886,7 +78912,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core15 = __importStar4(require_core());
|
var core15 = __importStar4(require_core());
|
||||||
var path20 = __importStar4(require("path"));
|
var path20 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -78894,7 +78920,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants10();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -78912,6 +78937,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError2;
|
exports2.ReserveCacheError = ReserveCacheError2;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -79183,9 +79216,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core15.debug(`File Size: ${archiveFileSize}`);
|
core15.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core15.debug("Reserving Cache");
|
core15.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -79197,7 +79227,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core15.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -79214,6 +79247,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core15.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core15.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -79223,6 +79259,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError2.name) {
|
} else if (typedError.name === ReserveCacheError2.name) {
|
||||||
core15.info(`Failed to save: ${typedError.message}`);
|
core15.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core15.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core15.error(`Failed to save: ${typedError.message}`);
|
core15.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -89754,7 +89792,7 @@ async function tryGetFolderBytes(cacheDir, logger, quiet = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var hadTimeout = false;
|
var hadTimeout = false;
|
||||||
async function withTimeout(timeoutMs, promise, onTimeout) {
|
async function waitForResultWithTimeLimit(timeoutMs, promise, onTimeout) {
|
||||||
let finished2 = false;
|
let finished2 = false;
|
||||||
const mainTask = async () => {
|
const mainTask = async () => {
|
||||||
const result = await promise;
|
const result = await promise;
|
||||||
@@ -90198,6 +90236,14 @@ function getApiDetails() {
|
|||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return createApiClientWithDetails(getApiDetails());
|
return createApiClientWithDetails(getApiDetails());
|
||||||
}
|
}
|
||||||
|
function getAuthorizationHeaderFor(logger, apiDetails, url2) {
|
||||||
|
if (url2.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url2.startsWith(`${apiDetails.apiURL}/`)) {
|
||||||
|
logger.debug(`Providing an authorization token.`);
|
||||||
|
return `token ${apiDetails.auth}`;
|
||||||
|
}
|
||||||
|
logger.debug(`Not using an authorization token.`);
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
var cachedGitHubVersion = void 0;
|
var cachedGitHubVersion = void 0;
|
||||||
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||||
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
||||||
@@ -90555,7 +90601,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs9 = __toESM(require("fs"));
|
var fs9 = __toESM(require("fs"));
|
||||||
var path10 = __toESM(require("path"));
|
var path10 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
@@ -90569,6 +90614,15 @@ function shouldStoreCache(kind) {
|
|||||||
return kind === "full" /* Full */ || kind === "store" /* Store */;
|
return kind === "full" /* Full */ || kind === "store" /* Store */;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/diff-informed-analysis-utils.ts
|
// src/diff-informed-analysis-utils.ts
|
||||||
var fs8 = __toESM(require("fs"));
|
var fs8 = __toESM(require("fs"));
|
||||||
var path9 = __toESM(require("path"));
|
var path9 = __toESM(require("path"));
|
||||||
@@ -90576,11 +90630,11 @@ var path9 = __toESM(require("path"));
|
|||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var fs7 = __toESM(require("fs"));
|
var fs7 = __toESM(require("fs"));
|
||||||
var path8 = __toESM(require("path"));
|
var path8 = __toESM(require("path"));
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var crypto = __toESM(require("crypto"));
|
var crypto = __toESM(require("crypto"));
|
||||||
@@ -90811,7 +90865,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -90872,7 +90926,7 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
var CACHE_VERSION = 1;
|
var CACHE_VERSION = 1;
|
||||||
var CACHE_PREFIX = "codeql-overlay-base-database";
|
var CACHE_PREFIX = "codeql-overlay-base-database";
|
||||||
var MAX_CACHE_OPERATION_MS = 12e4;
|
var MAX_CACHE_OPERATION_MS = 6e5;
|
||||||
function checkOverlayBaseDatabase(config, logger, warningPrefix) {
|
function checkOverlayBaseDatabase(config, logger, warningPrefix) {
|
||||||
const baseDatabaseOidsFilePath = getBaseDatabaseOidsFilePath(config);
|
const baseDatabaseOidsFilePath = getBaseDatabaseOidsFilePath(config);
|
||||||
if (!fs6.existsSync(baseDatabaseOidsFilePath)) {
|
if (!fs6.existsSync(baseDatabaseOidsFilePath)) {
|
||||||
@@ -90940,7 +90994,7 @@ async function uploadOverlayBaseDatabaseToCache(codeql, config, logger) {
|
|||||||
`Uploading overlay-base database to Actions cache with key ${cacheSaveKey}`
|
`Uploading overlay-base database to Actions cache with key ${cacheSaveKey}`
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
const cacheId = await withTimeout(
|
const cacheId = await waitForResultWithTimeLimit(
|
||||||
MAX_CACHE_OPERATION_MS,
|
MAX_CACHE_OPERATION_MS,
|
||||||
actionsCache.saveCache([dbLocation], cacheSaveKey),
|
actionsCache.saveCache([dbLocation], cacheSaveKey),
|
||||||
() => {
|
() => {
|
||||||
@@ -90982,7 +91036,7 @@ function createCacheKeyHash(components) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
@@ -91148,6 +91202,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -91266,7 +91325,7 @@ var GitHubFeatureFlags = class {
|
|||||||
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
||||||
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
||||||
).replace(/_/g, ".");
|
).replace(/_/g, ".");
|
||||||
if (!semver3.valid(version)) {
|
if (!semver4.valid(version)) {
|
||||||
this.logger.warning(
|
this.logger.warning(
|
||||||
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
||||||
);
|
);
|
||||||
@@ -91498,7 +91557,7 @@ async function uploadTrapCaches(codeql, config, logger) {
|
|||||||
process.env.GITHUB_SHA || "unknown"
|
process.env.GITHUB_SHA || "unknown"
|
||||||
);
|
);
|
||||||
logger.info(`Uploading TRAP cache to Actions cache with key ${key}`);
|
logger.info(`Uploading TRAP cache to Actions cache with key ${key}`);
|
||||||
await withTimeout(
|
await waitForResultWithTimeLimit(
|
||||||
MAX_CACHE_OPERATION_MS2,
|
MAX_CACHE_OPERATION_MS2,
|
||||||
actionsCache2.saveCache([cacheDir], key),
|
actionsCache2.saveCache([cacheDir], key),
|
||||||
() => {
|
() => {
|
||||||
@@ -91615,12 +91674,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path10.join(tempDir, "config");
|
return path10.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
@@ -91683,7 +91736,7 @@ var toolcache3 = __toESM(require_tool_cache());
|
|||||||
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
||||||
var semver7 = __toESM(require_semver2());
|
var semver7 = __toESM(require_semver2());
|
||||||
|
|
||||||
// node_modules/uuid/dist/stringify.js
|
// node_modules/uuid/dist-node/stringify.js
|
||||||
var byteToHex = [];
|
var byteToHex = [];
|
||||||
for (let i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 256).toString(16).slice(1));
|
byteToHex.push((i + 256).toString(16).slice(1));
|
||||||
@@ -91692,7 +91745,7 @@ function unsafeStringify(arr, offset = 0) {
|
|||||||
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/rng.js
|
// node_modules/uuid/dist-node/rng.js
|
||||||
var import_node_crypto = require("node:crypto");
|
var import_node_crypto = require("node:crypto");
|
||||||
var rnds8Pool = new Uint8Array(256);
|
var rnds8Pool = new Uint8Array(256);
|
||||||
var poolPtr = rnds8Pool.length;
|
var poolPtr = rnds8Pool.length;
|
||||||
@@ -91704,11 +91757,11 @@ function rng() {
|
|||||||
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/native.js
|
// node_modules/uuid/dist-node/native.js
|
||||||
var import_node_crypto2 = require("node:crypto");
|
var import_node_crypto2 = require("node:crypto");
|
||||||
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
||||||
|
|
||||||
// node_modules/uuid/dist/v4.js
|
// node_modules/uuid/dist-node/v4.js
|
||||||
function _v4(options, buf, offset) {
|
function _v4(options, buf, offset) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
const rnds = options.random ?? options.rng?.() ?? rng();
|
const rnds = options.random ?? options.rng?.() ?? rng();
|
||||||
@@ -92051,7 +92104,10 @@ function sanitizeUrlForStatusReport(url2) {
|
|||||||
|
|
||||||
// src/setup-codeql.ts
|
// src/setup-codeql.ts
|
||||||
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_OWNER = "dsp-testing";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_NAME = "codeql-cli-nightlies";
|
||||||
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
||||||
|
var CODEQL_NIGHTLY_TOOLS_INPUTS = ["nightly", "nightly-latest"];
|
||||||
function getCodeQLBundleExtension(compressionMethod) {
|
function getCodeQLBundleExtension(compressionMethod) {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case "gzip":
|
case "gzip":
|
||||||
@@ -92194,7 +92250,7 @@ async function findOverridingToolsInCache(humanReadableVersion, logger) {
|
|||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
||||||
if (toolsInput && !CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput) && !toolsInput.startsWith("http")) {
|
if (toolsInput && !isReservedToolsValue(toolsInput) && !toolsInput.startsWith("http")) {
|
||||||
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
||||||
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
||||||
if (compressionMethod2 === void 0) {
|
if (compressionMethod2 === void 0) {
|
||||||
@@ -92223,6 +92279,12 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian
|
|||||||
let cliVersion2;
|
let cliVersion2;
|
||||||
let tagName;
|
let tagName;
|
||||||
let url2;
|
let url2;
|
||||||
|
if (toolsInput !== void 0 && CODEQL_NIGHTLY_TOOLS_INPUTS.includes(toolsInput)) {
|
||||||
|
logger.info(
|
||||||
|
`Using the latest CodeQL CLI nightly, as requested by 'tools: ${toolsInput}'.`
|
||||||
|
);
|
||||||
|
toolsInput = await getNightlyToolsUrl(logger);
|
||||||
|
}
|
||||||
if (forceShippedTools) {
|
if (forceShippedTools) {
|
||||||
cliVersion2 = cliVersion;
|
cliVersion2 = cliVersion;
|
||||||
tagName = bundleVersion;
|
tagName = bundleVersion;
|
||||||
@@ -92375,11 +92437,12 @@ var downloadCodeQL = async function(codeqlURL, compressionMethod, maybeBundleVer
|
|||||||
let authorization = void 0;
|
let authorization = void 0;
|
||||||
if (searchParams.has("token")) {
|
if (searchParams.has("token")) {
|
||||||
logger.debug("CodeQL tools URL contains an authorization token.");
|
logger.debug("CodeQL tools URL contains an authorization token.");
|
||||||
} else if (codeqlURL.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && codeqlURL.startsWith(`${apiDetails.apiURL}/`)) {
|
|
||||||
logger.debug("Providing an authorization token to download CodeQL tools.");
|
|
||||||
authorization = `token ${apiDetails.auth}`;
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Downloading CodeQL tools without an authorization token.");
|
authorization = getAuthorizationHeaderFor(
|
||||||
|
logger,
|
||||||
|
apiDetails,
|
||||||
|
codeqlURL
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const toolcacheInfo = getToolcacheDestinationInfo(
|
const toolcacheInfo = getToolcacheDestinationInfo(
|
||||||
maybeBundleVersion,
|
maybeBundleVersion,
|
||||||
@@ -92506,6 +92569,34 @@ async function useZstdBundle(cliVersion2, tarSupportsZstd) {
|
|||||||
function getTempExtractionDir(tempDir) {
|
function getTempExtractionDir(tempDir) {
|
||||||
return path12.join(tempDir, v4_default());
|
return path12.join(tempDir, v4_default());
|
||||||
}
|
}
|
||||||
|
async function getNightlyToolsUrl(logger) {
|
||||||
|
const zstdAvailability = await isZstdAvailable(logger);
|
||||||
|
const compressionMethod = await useZstdBundle(
|
||||||
|
CODEQL_VERSION_ZSTD_BUNDLE,
|
||||||
|
zstdAvailability.available
|
||||||
|
) ? "zstd" : "gzip";
|
||||||
|
try {
|
||||||
|
const release3 = await getApiClient().rest.repos.listReleases({
|
||||||
|
owner: CODEQL_NIGHTLIES_REPOSITORY_OWNER,
|
||||||
|
repo: CODEQL_NIGHTLIES_REPOSITORY_NAME,
|
||||||
|
per_page: 1,
|
||||||
|
page: 1,
|
||||||
|
prerelease: true
|
||||||
|
});
|
||||||
|
const latestRelease = release3.data[0];
|
||||||
|
if (!latestRelease) {
|
||||||
|
throw new Error("Could not find the latest nightly release.");
|
||||||
|
}
|
||||||
|
return `https://github.com/${CODEQL_NIGHTLIES_REPOSITORY_OWNER}/${CODEQL_NIGHTLIES_REPOSITORY_NAME}/releases/download/${latestRelease.tag_name}/${getCodeQLBundleName(compressionMethod)}`;
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(
|
||||||
|
`Failed to retrieve the latest nightly release: ${wrapError(e)}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isReservedToolsValue(tools) {
|
||||||
|
return CODEQL_BUNDLE_VERSION_ALIAS.includes(tools) || CODEQL_NIGHTLY_TOOLS_INPUTS.includes(tools);
|
||||||
|
}
|
||||||
|
|
||||||
// src/tracer-config.ts
|
// src/tracer-config.ts
|
||||||
var fs13 = __toESM(require("fs"));
|
var fs13 = __toESM(require("fs"));
|
||||||
|
|||||||
105
lib/autobuild-action.js
generated
105
lib/autobuild-action.js
generated
@@ -26447,7 +26447,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26463,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -26486,15 +26486,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -26503,10 +26503,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -67282,7 +67282,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -72091,11 +72091,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72114,6 +72121,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72130,6 +72141,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -72235,11 +72248,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72258,6 +72278,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72274,6 +72298,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -73037,7 +73063,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core14 = __importStar4(require_core());
|
var core14 = __importStar4(require_core());
|
||||||
var path7 = __importStar4(require("path"));
|
var path7 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -73045,7 +73071,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants7();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -73063,6 +73088,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError;
|
exports2.ReserveCacheError = ReserveCacheError;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -73334,9 +73367,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core14.debug(`File Size: ${archiveFileSize}`);
|
core14.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core14.debug("Reserving Cache");
|
core14.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -73348,7 +73378,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core14.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -73365,6 +73398,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -73374,6 +73410,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError.name) {
|
} else if (typedError.name === ReserveCacheError.name) {
|
||||||
core14.info(`Failed to save: ${typedError.message}`);
|
core14.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core14.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core14.error(`Failed to save: ${typedError.message}`);
|
core14.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -78229,7 +78267,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs4 = __toESM(require("fs"));
|
var fs4 = __toESM(require("fs"));
|
||||||
var path4 = __toESM(require("path"));
|
var path4 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -78242,14 +78279,23 @@ var supportedAnalysisKinds = new Set(Object.values(AnalysisKind));
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var fs3 = __toESM(require("fs"));
|
var fs3 = __toESM(require("fs"));
|
||||||
var path3 = __toESM(require("path"));
|
var path3 = __toESM(require("path"));
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs2 = __toESM(require("fs"));
|
var fs2 = __toESM(require("fs"));
|
||||||
@@ -78426,7 +78472,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -78487,7 +78533,7 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
@@ -78652,6 +78698,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -78770,7 +78821,7 @@ var GitHubFeatureFlags = class {
|
|||||||
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
||||||
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
||||||
).replace(/_/g, ".");
|
).replace(/_/g, ".");
|
||||||
if (!semver3.valid(version)) {
|
if (!semver4.valid(version)) {
|
||||||
this.logger.warning(
|
this.logger.warning(
|
||||||
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
||||||
);
|
);
|
||||||
@@ -78957,12 +79008,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path4.join(tempDir, "config");
|
return path4.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-v2.23.0",
|
"bundleVersion": "codeql-bundle-v2.23.1",
|
||||||
"cliVersion": "2.23.0",
|
"cliVersion": "2.23.1",
|
||||||
"priorBundleVersion": "codeql-bundle-v2.22.4",
|
"priorBundleVersion": "codeql-bundle-v2.23.0",
|
||||||
"priorCliVersion": "2.22.4"
|
"priorCliVersion": "2.23.0"
|
||||||
}
|
}
|
||||||
|
|||||||
195
lib/init-action-post.js
generated
195
lib/init-action-post.js
generated
@@ -27722,7 +27722,7 @@ var require_pattern = __commonJS({
|
|||||||
const absolute = [];
|
const absolute = [];
|
||||||
const relative2 = [];
|
const relative2 = [];
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
if (isAbsolute3(pattern)) {
|
if (isAbsolute2(pattern)) {
|
||||||
absolute.push(pattern);
|
absolute.push(pattern);
|
||||||
} else {
|
} else {
|
||||||
relative2.push(pattern);
|
relative2.push(pattern);
|
||||||
@@ -27731,10 +27731,10 @@ var require_pattern = __commonJS({
|
|||||||
return [absolute, relative2];
|
return [absolute, relative2];
|
||||||
}
|
}
|
||||||
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
||||||
function isAbsolute3(pattern) {
|
function isAbsolute2(pattern) {
|
||||||
return path19.isAbsolute(pattern);
|
return path19.isAbsolute(pattern);
|
||||||
}
|
}
|
||||||
exports2.isAbsolute = isAbsolute3;
|
exports2.isAbsolute = isAbsolute2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -32296,7 +32296,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -32312,7 +32312,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -32335,15 +32335,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -32352,10 +32352,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -73131,7 +73131,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -77940,11 +77940,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -77963,6 +77970,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -77979,6 +77990,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78084,11 +78097,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -78107,6 +78127,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -78123,6 +78147,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78886,7 +78912,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core18 = __importStar4(require_core());
|
var core18 = __importStar4(require_core());
|
||||||
var path19 = __importStar4(require("path"));
|
var path19 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -78894,7 +78920,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants10();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -78912,6 +78937,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError2;
|
exports2.ReserveCacheError = ReserveCacheError2;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -79183,9 +79216,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core18.debug(`File Size: ${archiveFileSize}`);
|
core18.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core18.debug("Reserving Cache");
|
core18.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -79197,7 +79227,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core18.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -79214,6 +79247,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core18.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core18.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -79223,6 +79259,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError2.name) {
|
} else if (typedError.name === ReserveCacheError2.name) {
|
||||||
core18.info(`Failed to save: ${typedError.message}`);
|
core18.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core18.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core18.error(`Failed to save: ${typedError.message}`);
|
core18.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -100645,7 +100683,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
var TYPEMASK = 1023;
|
var TYPEMASK = 1023;
|
||||||
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
||||||
var normalizeCache = /* @__PURE__ */ new Map();
|
var normalizeCache = /* @__PURE__ */ new Map();
|
||||||
var normalize4 = (s) => {
|
var normalize3 = (s) => {
|
||||||
const c = normalizeCache.get(s);
|
const c = normalizeCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
@@ -100658,7 +100696,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
const c = normalizeNocaseCache.get(s);
|
const c = normalizeNocaseCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
const n = normalize4(s.toLowerCase());
|
const n = normalize3(s.toLowerCase());
|
||||||
normalizeNocaseCache.set(s, n);
|
normalizeNocaseCache.set(s, n);
|
||||||
return n;
|
return n;
|
||||||
};
|
};
|
||||||
@@ -100827,7 +100865,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
*/
|
*/
|
||||||
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.#matchName = nocase ? normalizeNocase(name) : normalize4(name);
|
this.#matchName = nocase ? normalizeNocase(name) : normalize3(name);
|
||||||
this.#type = type2 & TYPEMASK;
|
this.#type = type2 & TYPEMASK;
|
||||||
this.nocase = nocase;
|
this.nocase = nocase;
|
||||||
this.roots = roots;
|
this.roots = roots;
|
||||||
@@ -100920,7 +100958,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
return this.parent || this;
|
return this.parent || this;
|
||||||
}
|
}
|
||||||
const children = this.children();
|
const children = this.children();
|
||||||
const name = this.nocase ? normalizeNocase(pathPart) : normalize4(pathPart);
|
const name = this.nocase ? normalizeNocase(pathPart) : normalize3(pathPart);
|
||||||
for (const p of children) {
|
for (const p of children) {
|
||||||
if (p.#matchName === name) {
|
if (p.#matchName === name) {
|
||||||
return p;
|
return p;
|
||||||
@@ -101165,7 +101203,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
* directly.
|
* directly.
|
||||||
*/
|
*/
|
||||||
isNamed(n) {
|
isNamed(n) {
|
||||||
return !this.nocase ? this.#matchName === normalize4(n) : this.#matchName === normalizeNocase(n);
|
return !this.nocase ? this.#matchName === normalize3(n) : this.#matchName === normalizeNocase(n);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Return the Path object corresponding to the target of a symbolic link.
|
* Return the Path object corresponding to the target of a symbolic link.
|
||||||
@@ -101304,7 +101342,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
#readdirMaybePromoteChild(e, c) {
|
#readdirMaybePromoteChild(e, c) {
|
||||||
for (let p = c.provisional; p < c.length; p++) {
|
for (let p = c.provisional; p < c.length; p++) {
|
||||||
const pchild = c[p];
|
const pchild = c[p];
|
||||||
const name = this.nocase ? normalizeNocase(e.name) : normalize4(e.name);
|
const name = this.nocase ? normalizeNocase(e.name) : normalize3(e.name);
|
||||||
if (name !== pchild.#matchName) {
|
if (name !== pchild.#matchName) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -109135,7 +109173,7 @@ var require_tr46 = __commonJS({
|
|||||||
TRANSITIONAL: 0,
|
TRANSITIONAL: 0,
|
||||||
NONTRANSITIONAL: 1
|
NONTRANSITIONAL: 1
|
||||||
};
|
};
|
||||||
function normalize4(str2) {
|
function normalize3(str2) {
|
||||||
return str2.split("\0").map(function(s) {
|
return str2.split("\0").map(function(s) {
|
||||||
return s.normalize("NFC");
|
return s.normalize("NFC");
|
||||||
}).join("\0");
|
}).join("\0");
|
||||||
@@ -109215,7 +109253,7 @@ var require_tr46 = __commonJS({
|
|||||||
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
||||||
}
|
}
|
||||||
var error2 = false;
|
var error2 = false;
|
||||||
if (normalize4(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
if (normalize3(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
||||||
error2 = true;
|
error2 = true;
|
||||||
}
|
}
|
||||||
var len = countSymbols(label);
|
var len = countSymbols(label);
|
||||||
@@ -109233,7 +109271,7 @@ var require_tr46 = __commonJS({
|
|||||||
}
|
}
|
||||||
function processing(domain_name, useSTD3, processing_option) {
|
function processing(domain_name, useSTD3, processing_option) {
|
||||||
var result = mapChars(domain_name, useSTD3, processing_option);
|
var result = mapChars(domain_name, useSTD3, processing_option);
|
||||||
result.string = normalize4(result.string);
|
result.string = normalize3(result.string);
|
||||||
var labels = result.string.split(".");
|
var labels = result.string.split(".");
|
||||||
for (var i = 0; i < labels.length; ++i) {
|
for (var i = 0; i < labels.length; ++i) {
|
||||||
try {
|
try {
|
||||||
@@ -128417,6 +128455,14 @@ function getApiDetails() {
|
|||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return createApiClientWithDetails(getApiDetails());
|
return createApiClientWithDetails(getApiDetails());
|
||||||
}
|
}
|
||||||
|
function getAuthorizationHeaderFor(logger, apiDetails, url2) {
|
||||||
|
if (url2.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url2.startsWith(`${apiDetails.apiURL}/`)) {
|
||||||
|
logger.debug(`Providing an authorization token.`);
|
||||||
|
return `token ${apiDetails.auth}`;
|
||||||
|
}
|
||||||
|
logger.debug(`Not using an authorization token.`);
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
var cachedGitHubVersion = void 0;
|
var cachedGitHubVersion = void 0;
|
||||||
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||||
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
||||||
@@ -128746,7 +128792,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs9 = __toESM(require("fs"));
|
var fs9 = __toESM(require("fs"));
|
||||||
var path10 = __toESM(require("path"));
|
var path10 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -128775,6 +128820,15 @@ var CodeQuality = {
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/diff-informed-analysis-utils.ts
|
// src/diff-informed-analysis-utils.ts
|
||||||
var fs8 = __toESM(require("fs"));
|
var fs8 = __toESM(require("fs"));
|
||||||
var path9 = __toESM(require("path"));
|
var path9 = __toESM(require("path"));
|
||||||
@@ -128782,11 +128836,11 @@ var path9 = __toESM(require("path"));
|
|||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var fs7 = __toESM(require("fs"));
|
var fs7 = __toESM(require("fs"));
|
||||||
var path8 = __toESM(require("path"));
|
var path8 = __toESM(require("path"));
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs6 = __toESM(require("fs"));
|
var fs6 = __toESM(require("fs"));
|
||||||
@@ -129016,7 +129070,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -129077,13 +129131,13 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
var SafeArtifactUploadVersion = "2.20.3";
|
var SafeArtifactUploadVersion = "2.20.3";
|
||||||
function isSafeArtifactUpload(codeQlVersion) {
|
function isSafeArtifactUpload(codeQlVersion) {
|
||||||
return !codeQlVersion ? true : semver2.gte(codeQlVersion, SafeArtifactUploadVersion);
|
return !codeQlVersion ? true : semver3.gte(codeQlVersion, SafeArtifactUploadVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
@@ -129247,6 +129301,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -129365,7 +129424,7 @@ var GitHubFeatureFlags = class {
|
|||||||
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
DEFAULT_VERSION_FEATURE_FLAG_PREFIX.length,
|
||||||
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
f.length - DEFAULT_VERSION_FEATURE_FLAG_SUFFIX.length
|
||||||
).replace(/_/g, ".");
|
).replace(/_/g, ".");
|
||||||
if (!semver3.valid(version)) {
|
if (!semver4.valid(version)) {
|
||||||
this.logger.warning(
|
this.logger.warning(
|
||||||
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
`Ignoring feature flag ${f} as it does not specify a valid CodeQL version.`
|
||||||
);
|
);
|
||||||
@@ -129570,12 +129629,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path10.join(tempDir, "config");
|
return path10.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
@@ -129626,7 +129679,7 @@ var toolcache3 = __toESM(require_tool_cache());
|
|||||||
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
||||||
var semver7 = __toESM(require_semver2());
|
var semver7 = __toESM(require_semver2());
|
||||||
|
|
||||||
// node_modules/uuid/dist/stringify.js
|
// node_modules/uuid/dist-node/stringify.js
|
||||||
var byteToHex = [];
|
var byteToHex = [];
|
||||||
for (let i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 256).toString(16).slice(1));
|
byteToHex.push((i + 256).toString(16).slice(1));
|
||||||
@@ -129635,7 +129688,7 @@ function unsafeStringify(arr, offset = 0) {
|
|||||||
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/rng.js
|
// node_modules/uuid/dist-node/rng.js
|
||||||
var import_node_crypto = require("node:crypto");
|
var import_node_crypto = require("node:crypto");
|
||||||
var rnds8Pool = new Uint8Array(256);
|
var rnds8Pool = new Uint8Array(256);
|
||||||
var poolPtr = rnds8Pool.length;
|
var poolPtr = rnds8Pool.length;
|
||||||
@@ -129647,11 +129700,11 @@ function rng() {
|
|||||||
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/native.js
|
// node_modules/uuid/dist-node/native.js
|
||||||
var import_node_crypto2 = require("node:crypto");
|
var import_node_crypto2 = require("node:crypto");
|
||||||
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
||||||
|
|
||||||
// node_modules/uuid/dist/v4.js
|
// node_modules/uuid/dist-node/v4.js
|
||||||
function _v4(options, buf, offset) {
|
function _v4(options, buf, offset) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
const rnds = options.random ?? options.rng?.() ?? rng();
|
const rnds = options.random ?? options.rng?.() ?? rng();
|
||||||
@@ -129994,7 +130047,10 @@ function sanitizeUrlForStatusReport(url2) {
|
|||||||
|
|
||||||
// src/setup-codeql.ts
|
// src/setup-codeql.ts
|
||||||
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_OWNER = "dsp-testing";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_NAME = "codeql-cli-nightlies";
|
||||||
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
||||||
|
var CODEQL_NIGHTLY_TOOLS_INPUTS = ["nightly", "nightly-latest"];
|
||||||
function getCodeQLBundleExtension(compressionMethod) {
|
function getCodeQLBundleExtension(compressionMethod) {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case "gzip":
|
case "gzip":
|
||||||
@@ -130137,7 +130193,7 @@ async function findOverridingToolsInCache(humanReadableVersion, logger) {
|
|||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
||||||
if (toolsInput && !CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput) && !toolsInput.startsWith("http")) {
|
if (toolsInput && !isReservedToolsValue(toolsInput) && !toolsInput.startsWith("http")) {
|
||||||
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
||||||
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
||||||
if (compressionMethod2 === void 0) {
|
if (compressionMethod2 === void 0) {
|
||||||
@@ -130166,6 +130222,12 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian
|
|||||||
let cliVersion2;
|
let cliVersion2;
|
||||||
let tagName;
|
let tagName;
|
||||||
let url2;
|
let url2;
|
||||||
|
if (toolsInput !== void 0 && CODEQL_NIGHTLY_TOOLS_INPUTS.includes(toolsInput)) {
|
||||||
|
logger.info(
|
||||||
|
`Using the latest CodeQL CLI nightly, as requested by 'tools: ${toolsInput}'.`
|
||||||
|
);
|
||||||
|
toolsInput = await getNightlyToolsUrl(logger);
|
||||||
|
}
|
||||||
if (forceShippedTools) {
|
if (forceShippedTools) {
|
||||||
cliVersion2 = cliVersion;
|
cliVersion2 = cliVersion;
|
||||||
tagName = bundleVersion;
|
tagName = bundleVersion;
|
||||||
@@ -130318,11 +130380,12 @@ var downloadCodeQL = async function(codeqlURL, compressionMethod, maybeBundleVer
|
|||||||
let authorization = void 0;
|
let authorization = void 0;
|
||||||
if (searchParams.has("token")) {
|
if (searchParams.has("token")) {
|
||||||
logger.debug("CodeQL tools URL contains an authorization token.");
|
logger.debug("CodeQL tools URL contains an authorization token.");
|
||||||
} else if (codeqlURL.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && codeqlURL.startsWith(`${apiDetails.apiURL}/`)) {
|
|
||||||
logger.debug("Providing an authorization token to download CodeQL tools.");
|
|
||||||
authorization = `token ${apiDetails.auth}`;
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Downloading CodeQL tools without an authorization token.");
|
authorization = getAuthorizationHeaderFor(
|
||||||
|
logger,
|
||||||
|
apiDetails,
|
||||||
|
codeqlURL
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const toolcacheInfo = getToolcacheDestinationInfo(
|
const toolcacheInfo = getToolcacheDestinationInfo(
|
||||||
maybeBundleVersion,
|
maybeBundleVersion,
|
||||||
@@ -130449,6 +130512,34 @@ async function useZstdBundle(cliVersion2, tarSupportsZstd) {
|
|||||||
function getTempExtractionDir(tempDir) {
|
function getTempExtractionDir(tempDir) {
|
||||||
return path12.join(tempDir, v4_default());
|
return path12.join(tempDir, v4_default());
|
||||||
}
|
}
|
||||||
|
async function getNightlyToolsUrl(logger) {
|
||||||
|
const zstdAvailability = await isZstdAvailable(logger);
|
||||||
|
const compressionMethod = await useZstdBundle(
|
||||||
|
CODEQL_VERSION_ZSTD_BUNDLE,
|
||||||
|
zstdAvailability.available
|
||||||
|
) ? "zstd" : "gzip";
|
||||||
|
try {
|
||||||
|
const release3 = await getApiClient().rest.repos.listReleases({
|
||||||
|
owner: CODEQL_NIGHTLIES_REPOSITORY_OWNER,
|
||||||
|
repo: CODEQL_NIGHTLIES_REPOSITORY_NAME,
|
||||||
|
per_page: 1,
|
||||||
|
page: 1,
|
||||||
|
prerelease: true
|
||||||
|
});
|
||||||
|
const latestRelease = release3.data[0];
|
||||||
|
if (!latestRelease) {
|
||||||
|
throw new Error("Could not find the latest nightly release.");
|
||||||
|
}
|
||||||
|
return `https://github.com/${CODEQL_NIGHTLIES_REPOSITORY_OWNER}/${CODEQL_NIGHTLIES_REPOSITORY_NAME}/releases/download/${latestRelease.tag_name}/${getCodeQLBundleName(compressionMethod)}`;
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(
|
||||||
|
`Failed to retrieve the latest nightly release: ${wrapError(e)}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isReservedToolsValue(tools) {
|
||||||
|
return CODEQL_BUNDLE_VERSION_ALIAS.includes(tools) || CODEQL_NIGHTLY_TOOLS_INPUTS.includes(tools);
|
||||||
|
}
|
||||||
|
|
||||||
// src/tracer-config.ts
|
// src/tracer-config.ts
|
||||||
async function shouldEnableIndirectTracing(codeql, config) {
|
async function shouldEnableIndirectTracing(codeql, config) {
|
||||||
|
|||||||
1297
lib/init-action.js
generated
1297
lib/init-action.js
generated
File diff suppressed because it is too large
Load Diff
99
lib/resolve-environment-action.js
generated
99
lib/resolve-environment-action.js
generated
@@ -26447,7 +26447,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26463,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -26486,15 +26486,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -26503,10 +26503,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -67282,7 +67282,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -72091,11 +72091,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72114,6 +72121,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72130,6 +72141,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -72235,11 +72248,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72258,6 +72278,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72274,6 +72298,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -73037,7 +73063,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core13 = __importStar4(require_core());
|
var core13 = __importStar4(require_core());
|
||||||
var path5 = __importStar4(require("path"));
|
var path5 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -73045,7 +73071,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants7();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -73063,6 +73088,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError;
|
exports2.ReserveCacheError = ReserveCacheError;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -73334,9 +73367,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core13.debug(`File Size: ${archiveFileSize}`);
|
core13.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core13.debug("Reserving Cache");
|
core13.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -73348,7 +73378,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core13.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -73365,6 +73398,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core13.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core13.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -73374,6 +73410,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError.name) {
|
} else if (typedError.name === ReserveCacheError.name) {
|
||||||
core13.info(`Failed to save: ${typedError.message}`);
|
core13.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core13.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core13.error(`Failed to save: ${typedError.message}`);
|
core13.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -78228,7 +78266,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs3 = __toESM(require("fs"));
|
var fs3 = __toESM(require("fs"));
|
||||||
var path3 = __toESM(require("path"));
|
var path3 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -78241,8 +78278,17 @@ var supportedAnalysisKinds = new Set(Object.values(AnalysisKind));
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs2 = __toESM(require("fs"));
|
var fs2 = __toESM(require("fs"));
|
||||||
@@ -78419,7 +78465,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -78480,7 +78526,7 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
@@ -78643,6 +78689,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -78684,12 +78735,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path3.join(tempDir, "config");
|
return path3.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
|
|||||||
117
lib/start-proxy-action-post.js
generated
117
lib/start-proxy-action-post.js
generated
@@ -26447,7 +26447,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26463,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -26486,15 +26486,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -26503,10 +26503,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -67282,7 +67282,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -72091,11 +72091,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72114,6 +72121,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72130,6 +72141,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -72235,11 +72248,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -72258,6 +72278,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -72274,6 +72298,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -73037,7 +73063,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core14 = __importStar4(require_core());
|
var core14 = __importStar4(require_core());
|
||||||
var path2 = __importStar4(require("path"));
|
var path2 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -73045,7 +73071,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants7();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -73063,6 +73088,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError2;
|
exports2.ReserveCacheError = ReserveCacheError2;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -73334,9 +73367,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core14.debug(`File Size: ${archiveFileSize}`);
|
core14.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core14.debug("Reserving Cache");
|
core14.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -73348,7 +73378,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core14.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -73365,6 +73398,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -73374,6 +73410,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError2.name) {
|
} else if (typedError.name === ReserveCacheError2.name) {
|
||||||
core14.info(`Failed to save: ${typedError.message}`);
|
core14.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core14.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core14.error(`Failed to save: ${typedError.message}`);
|
core14.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -93456,7 +93494,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
var TYPEMASK = 1023;
|
var TYPEMASK = 1023;
|
||||||
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
||||||
var normalizeCache = /* @__PURE__ */ new Map();
|
var normalizeCache = /* @__PURE__ */ new Map();
|
||||||
var normalize2 = (s) => {
|
var normalize = (s) => {
|
||||||
const c = normalizeCache.get(s);
|
const c = normalizeCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
@@ -93469,7 +93507,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
const c = normalizeNocaseCache.get(s);
|
const c = normalizeNocaseCache.get(s);
|
||||||
if (c)
|
if (c)
|
||||||
return c;
|
return c;
|
||||||
const n = normalize2(s.toLowerCase());
|
const n = normalize(s.toLowerCase());
|
||||||
normalizeNocaseCache.set(s, n);
|
normalizeNocaseCache.set(s, n);
|
||||||
return n;
|
return n;
|
||||||
};
|
};
|
||||||
@@ -93638,7 +93676,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
*/
|
*/
|
||||||
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
constructor(name, type2 = UNKNOWN, root, roots, nocase, children, opts) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.#matchName = nocase ? normalizeNocase(name) : normalize2(name);
|
this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
|
||||||
this.#type = type2 & TYPEMASK;
|
this.#type = type2 & TYPEMASK;
|
||||||
this.nocase = nocase;
|
this.nocase = nocase;
|
||||||
this.roots = roots;
|
this.roots = roots;
|
||||||
@@ -93731,7 +93769,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
return this.parent || this;
|
return this.parent || this;
|
||||||
}
|
}
|
||||||
const children = this.children();
|
const children = this.children();
|
||||||
const name = this.nocase ? normalizeNocase(pathPart) : normalize2(pathPart);
|
const name = this.nocase ? normalizeNocase(pathPart) : normalize(pathPart);
|
||||||
for (const p of children) {
|
for (const p of children) {
|
||||||
if (p.#matchName === name) {
|
if (p.#matchName === name) {
|
||||||
return p;
|
return p;
|
||||||
@@ -93976,7 +94014,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
* directly.
|
* directly.
|
||||||
*/
|
*/
|
||||||
isNamed(n) {
|
isNamed(n) {
|
||||||
return !this.nocase ? this.#matchName === normalize2(n) : this.#matchName === normalizeNocase(n);
|
return !this.nocase ? this.#matchName === normalize(n) : this.#matchName === normalizeNocase(n);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Return the Path object corresponding to the target of a symbolic link.
|
* Return the Path object corresponding to the target of a symbolic link.
|
||||||
@@ -94115,7 +94153,7 @@ var require_commonjs16 = __commonJS({
|
|||||||
#readdirMaybePromoteChild(e, c) {
|
#readdirMaybePromoteChild(e, c) {
|
||||||
for (let p = c.provisional; p < c.length; p++) {
|
for (let p = c.provisional; p < c.length; p++) {
|
||||||
const pchild = c[p];
|
const pchild = c[p];
|
||||||
const name = this.nocase ? normalizeNocase(e.name) : normalize2(e.name);
|
const name = this.nocase ? normalizeNocase(e.name) : normalize(e.name);
|
||||||
if (name !== pchild.#matchName) {
|
if (name !== pchild.#matchName) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -101946,7 +101984,7 @@ var require_tr46 = __commonJS({
|
|||||||
TRANSITIONAL: 0,
|
TRANSITIONAL: 0,
|
||||||
NONTRANSITIONAL: 1
|
NONTRANSITIONAL: 1
|
||||||
};
|
};
|
||||||
function normalize2(str2) {
|
function normalize(str2) {
|
||||||
return str2.split("\0").map(function(s) {
|
return str2.split("\0").map(function(s) {
|
||||||
return s.normalize("NFC");
|
return s.normalize("NFC");
|
||||||
}).join("\0");
|
}).join("\0");
|
||||||
@@ -102026,7 +102064,7 @@ var require_tr46 = __commonJS({
|
|||||||
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
|
||||||
}
|
}
|
||||||
var error2 = false;
|
var error2 = false;
|
||||||
if (normalize2(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
if (normalize(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
|
||||||
error2 = true;
|
error2 = true;
|
||||||
}
|
}
|
||||||
var len = countSymbols(label);
|
var len = countSymbols(label);
|
||||||
@@ -102044,7 +102082,7 @@ var require_tr46 = __commonJS({
|
|||||||
}
|
}
|
||||||
function processing(domain_name, useSTD3, processing_option) {
|
function processing(domain_name, useSTD3, processing_option) {
|
||||||
var result = mapChars(domain_name, useSTD3, processing_option);
|
var result = mapChars(domain_name, useSTD3, processing_option);
|
||||||
result.string = normalize2(result.string);
|
result.string = normalize(result.string);
|
||||||
var labels = result.string.split(".");
|
var labels = result.string.split(".");
|
||||||
for (var i = 0; i < labels.length; ++i) {
|
for (var i = 0; i < labels.length; ++i) {
|
||||||
try {
|
try {
|
||||||
@@ -117127,7 +117165,6 @@ async function getGitHubVersion() {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs = __toESM(require("fs"));
|
var fs = __toESM(require("fs"));
|
||||||
var path = __toESM(require("path"));
|
var path = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -117140,8 +117177,17 @@ var supportedAnalysisKinds = new Set(Object.values(AnalysisKind));
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var actionsCache = __toESM(require_cache3());
|
var actionsCache = __toESM(require_cache3());
|
||||||
@@ -117158,12 +117204,12 @@ 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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var featureConfig = {
|
var featureConfig = {
|
||||||
@@ -117323,6 +117369,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -117364,12 +117415,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path.join(tempDir, "config");
|
return path.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
|
|||||||
63
lib/start-proxy-action.js
generated
63
lib/start-proxy-action.js
generated
@@ -44975,7 +44975,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -44991,7 +44991,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -45014,15 +45014,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -45031,10 +45031,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -49356,17 +49356,8 @@ var persistInputs = function() {
|
|||||||
core4.saveState(persistedInputsKey, JSON.stringify(inputEnvironmentVariables));
|
core4.saveState(persistedInputsKey, JSON.stringify(inputEnvironmentVariables));
|
||||||
};
|
};
|
||||||
|
|
||||||
// src/logging.ts
|
|
||||||
var core5 = __toESM(require_core());
|
|
||||||
function getActionsLogger() {
|
|
||||||
return core5;
|
|
||||||
}
|
|
||||||
|
|
||||||
// src/start-proxy.ts
|
|
||||||
var core7 = __toESM(require_core());
|
|
||||||
|
|
||||||
// src/api-client.ts
|
// src/api-client.ts
|
||||||
var core6 = __toESM(require_core());
|
var core5 = __toESM(require_core());
|
||||||
var githubUtils = __toESM(require_utils4());
|
var githubUtils = __toESM(require_utils4());
|
||||||
var retry = __toESM(require_dist_node15());
|
var retry = __toESM(require_dist_node15());
|
||||||
var import_console_log_level = __toESM(require_console_log_level());
|
var import_console_log_level = __toESM(require_console_log_level());
|
||||||
@@ -49391,10 +49382,27 @@ function getApiDetails() {
|
|||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return createApiClientWithDetails(getApiDetails());
|
return createApiClientWithDetails(getApiDetails());
|
||||||
}
|
}
|
||||||
|
function getAuthorizationHeaderFor(logger, apiDetails, url) {
|
||||||
|
if (url.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url.startsWith(`${apiDetails.apiURL}/`)) {
|
||||||
|
logger.debug(`Providing an authorization token.`);
|
||||||
|
return `token ${apiDetails.auth}`;
|
||||||
|
}
|
||||||
|
logger.debug(`Not using an authorization token.`);
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// src/logging.ts
|
||||||
|
var core6 = __toESM(require_core());
|
||||||
|
function getActionsLogger() {
|
||||||
|
return core6;
|
||||||
|
}
|
||||||
|
|
||||||
|
// src/start-proxy.ts
|
||||||
|
var core7 = __toESM(require_core());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/languages.ts
|
// src/languages.ts
|
||||||
var KnownLanguage = /* @__PURE__ */ ((KnownLanguage2) => {
|
var KnownLanguage = /* @__PURE__ */ ((KnownLanguage2) => {
|
||||||
@@ -49682,7 +49690,20 @@ async function getProxyBinaryPath(logger) {
|
|||||||
const proxyInfo = await getDownloadUrl(logger);
|
const proxyInfo = await getDownloadUrl(logger);
|
||||||
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
|
let proxyBin = toolcache.find(proxyFileName, proxyInfo.version);
|
||||||
if (!proxyBin) {
|
if (!proxyBin) {
|
||||||
const temp = await toolcache.downloadTool(proxyInfo.url);
|
const apiDetails = getApiDetails();
|
||||||
|
const authorization = getAuthorizationHeaderFor(
|
||||||
|
logger,
|
||||||
|
apiDetails,
|
||||||
|
proxyInfo.url
|
||||||
|
);
|
||||||
|
const temp = await toolcache.downloadTool(
|
||||||
|
proxyInfo.url,
|
||||||
|
void 0,
|
||||||
|
authorization,
|
||||||
|
{
|
||||||
|
accept: "application/octet-stream"
|
||||||
|
}
|
||||||
|
);
|
||||||
const extracted = await toolcache.extractTar(temp);
|
const extracted = await toolcache.extractTar(temp);
|
||||||
proxyBin = await toolcache.cacheDir(
|
proxyBin = await toolcache.cacheDir(
|
||||||
extracted,
|
extracted,
|
||||||
|
|||||||
173
lib/upload-lib.js
generated
173
lib/upload-lib.js
generated
@@ -29019,7 +29019,7 @@ var require_pattern = __commonJS({
|
|||||||
const absolute = [];
|
const absolute = [];
|
||||||
const relative2 = [];
|
const relative2 = [];
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
if (isAbsolute3(pattern)) {
|
if (isAbsolute2(pattern)) {
|
||||||
absolute.push(pattern);
|
absolute.push(pattern);
|
||||||
} else {
|
} else {
|
||||||
relative2.push(pattern);
|
relative2.push(pattern);
|
||||||
@@ -29028,10 +29028,10 @@ var require_pattern = __commonJS({
|
|||||||
return [absolute, relative2];
|
return [absolute, relative2];
|
||||||
}
|
}
|
||||||
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
||||||
function isAbsolute3(pattern) {
|
function isAbsolute2(pattern) {
|
||||||
return path15.isAbsolute(pattern);
|
return path15.isAbsolute(pattern);
|
||||||
}
|
}
|
||||||
exports2.isAbsolute = isAbsolute3;
|
exports2.isAbsolute = isAbsolute2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -33593,7 +33593,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -33609,7 +33609,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -33632,15 +33632,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -33649,10 +33649,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -74428,7 +74428,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -79237,11 +79237,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -79260,6 +79267,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -79276,6 +79287,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -79381,11 +79394,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -79404,6 +79424,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -79420,6 +79444,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -80183,7 +80209,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core12 = __importStar4(require_core());
|
var core12 = __importStar4(require_core());
|
||||||
var path15 = __importStar4(require("path"));
|
var path15 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -80191,7 +80217,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants10();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -80209,6 +80234,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError;
|
exports2.ReserveCacheError = ReserveCacheError;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -80480,9 +80513,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core12.debug(`File Size: ${archiveFileSize}`);
|
core12.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core12.debug("Reserving Cache");
|
core12.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -80494,7 +80524,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core12.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -80511,6 +80544,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core12.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core12.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -80520,6 +80556,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError.name) {
|
} else if (typedError.name === ReserveCacheError.name) {
|
||||||
core12.info(`Failed to save: ${typedError.message}`);
|
core12.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core12.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core12.error(`Failed to save: ${typedError.message}`);
|
core12.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -88544,6 +88582,14 @@ function getApiDetails() {
|
|||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return createApiClientWithDetails(getApiDetails());
|
return createApiClientWithDetails(getApiDetails());
|
||||||
}
|
}
|
||||||
|
function getAuthorizationHeaderFor(logger, apiDetails, url2) {
|
||||||
|
if (url2.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url2.startsWith(`${apiDetails.apiURL}/`)) {
|
||||||
|
logger.debug(`Providing an authorization token.`);
|
||||||
|
return `token ${apiDetails.auth}`;
|
||||||
|
}
|
||||||
|
logger.debug(`Not using an authorization token.`);
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
var cachedGitHubVersion = void 0;
|
var cachedGitHubVersion = void 0;
|
||||||
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||||
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
||||||
@@ -88873,7 +88919,6 @@ function wrapCliConfigurationError(cliError) {
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs7 = __toESM(require("fs"));
|
var fs7 = __toESM(require("fs"));
|
||||||
var path9 = __toESM(require("path"));
|
var path9 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/analyses.ts
|
// src/analyses.ts
|
||||||
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
var AnalysisKind = /* @__PURE__ */ ((AnalysisKind2) => {
|
||||||
@@ -88886,16 +88931,25 @@ var supportedAnalysisKinds = new Set(Object.values(AnalysisKind));
|
|||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/diff-informed-analysis-utils.ts
|
// src/diff-informed-analysis-utils.ts
|
||||||
var fs6 = __toESM(require("fs"));
|
var fs6 = __toESM(require("fs"));
|
||||||
var path8 = __toESM(require("path"));
|
var path8 = __toESM(require("path"));
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs5 = __toESM(require("fs"));
|
var fs5 = __toESM(require("fs"));
|
||||||
@@ -89114,7 +89168,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -89175,7 +89229,7 @@ function computeChangedFiles(baseFileOids, overlayFileOids) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/tools-features.ts
|
// src/tools-features.ts
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
function isSupportedToolsFeature(versionInfo, feature) {
|
function isSupportedToolsFeature(versionInfo, feature) {
|
||||||
return !!versionInfo.features && versionInfo.features[feature];
|
return !!versionInfo.features && versionInfo.features[feature];
|
||||||
}
|
}
|
||||||
@@ -89339,6 +89393,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -89398,12 +89457,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path9.join(tempDir, "config");
|
return path9.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
@@ -89454,7 +89507,7 @@ var toolcache3 = __toESM(require_tool_cache());
|
|||||||
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
||||||
var semver7 = __toESM(require_semver2());
|
var semver7 = __toESM(require_semver2());
|
||||||
|
|
||||||
// node_modules/uuid/dist/stringify.js
|
// node_modules/uuid/dist-node/stringify.js
|
||||||
var byteToHex = [];
|
var byteToHex = [];
|
||||||
for (let i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 256).toString(16).slice(1));
|
byteToHex.push((i + 256).toString(16).slice(1));
|
||||||
@@ -89463,7 +89516,7 @@ function unsafeStringify(arr, offset = 0) {
|
|||||||
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/rng.js
|
// node_modules/uuid/dist-node/rng.js
|
||||||
var import_node_crypto = require("node:crypto");
|
var import_node_crypto = require("node:crypto");
|
||||||
var rnds8Pool = new Uint8Array(256);
|
var rnds8Pool = new Uint8Array(256);
|
||||||
var poolPtr = rnds8Pool.length;
|
var poolPtr = rnds8Pool.length;
|
||||||
@@ -89475,11 +89528,11 @@ function rng() {
|
|||||||
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/native.js
|
// node_modules/uuid/dist-node/native.js
|
||||||
var import_node_crypto2 = require("node:crypto");
|
var import_node_crypto2 = require("node:crypto");
|
||||||
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
||||||
|
|
||||||
// node_modules/uuid/dist/v4.js
|
// node_modules/uuid/dist-node/v4.js
|
||||||
function _v4(options, buf, offset) {
|
function _v4(options, buf, offset) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
const rnds = options.random ?? options.rng?.() ?? rng();
|
const rnds = options.random ?? options.rng?.() ?? rng();
|
||||||
@@ -89822,7 +89875,10 @@ function sanitizeUrlForStatusReport(url2) {
|
|||||||
|
|
||||||
// src/setup-codeql.ts
|
// src/setup-codeql.ts
|
||||||
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_OWNER = "dsp-testing";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_NAME = "codeql-cli-nightlies";
|
||||||
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
||||||
|
var CODEQL_NIGHTLY_TOOLS_INPUTS = ["nightly", "nightly-latest"];
|
||||||
function getCodeQLBundleExtension(compressionMethod) {
|
function getCodeQLBundleExtension(compressionMethod) {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case "gzip":
|
case "gzip":
|
||||||
@@ -89965,7 +90021,7 @@ async function findOverridingToolsInCache(humanReadableVersion, logger) {
|
|||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
||||||
if (toolsInput && !CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput) && !toolsInput.startsWith("http")) {
|
if (toolsInput && !isReservedToolsValue(toolsInput) && !toolsInput.startsWith("http")) {
|
||||||
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
||||||
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
||||||
if (compressionMethod2 === void 0) {
|
if (compressionMethod2 === void 0) {
|
||||||
@@ -89994,6 +90050,12 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian
|
|||||||
let cliVersion2;
|
let cliVersion2;
|
||||||
let tagName;
|
let tagName;
|
||||||
let url2;
|
let url2;
|
||||||
|
if (toolsInput !== void 0 && CODEQL_NIGHTLY_TOOLS_INPUTS.includes(toolsInput)) {
|
||||||
|
logger.info(
|
||||||
|
`Using the latest CodeQL CLI nightly, as requested by 'tools: ${toolsInput}'.`
|
||||||
|
);
|
||||||
|
toolsInput = await getNightlyToolsUrl(logger);
|
||||||
|
}
|
||||||
if (forceShippedTools) {
|
if (forceShippedTools) {
|
||||||
cliVersion2 = cliVersion;
|
cliVersion2 = cliVersion;
|
||||||
tagName = bundleVersion;
|
tagName = bundleVersion;
|
||||||
@@ -90146,11 +90208,12 @@ var downloadCodeQL = async function(codeqlURL, compressionMethod, maybeBundleVer
|
|||||||
let authorization = void 0;
|
let authorization = void 0;
|
||||||
if (searchParams.has("token")) {
|
if (searchParams.has("token")) {
|
||||||
logger.debug("CodeQL tools URL contains an authorization token.");
|
logger.debug("CodeQL tools URL contains an authorization token.");
|
||||||
} else if (codeqlURL.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && codeqlURL.startsWith(`${apiDetails.apiURL}/`)) {
|
|
||||||
logger.debug("Providing an authorization token to download CodeQL tools.");
|
|
||||||
authorization = `token ${apiDetails.auth}`;
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Downloading CodeQL tools without an authorization token.");
|
authorization = getAuthorizationHeaderFor(
|
||||||
|
logger,
|
||||||
|
apiDetails,
|
||||||
|
codeqlURL
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const toolcacheInfo = getToolcacheDestinationInfo(
|
const toolcacheInfo = getToolcacheDestinationInfo(
|
||||||
maybeBundleVersion,
|
maybeBundleVersion,
|
||||||
@@ -90277,6 +90340,34 @@ async function useZstdBundle(cliVersion2, tarSupportsZstd) {
|
|||||||
function getTempExtractionDir(tempDir) {
|
function getTempExtractionDir(tempDir) {
|
||||||
return path11.join(tempDir, v4_default());
|
return path11.join(tempDir, v4_default());
|
||||||
}
|
}
|
||||||
|
async function getNightlyToolsUrl(logger) {
|
||||||
|
const zstdAvailability = await isZstdAvailable(logger);
|
||||||
|
const compressionMethod = await useZstdBundle(
|
||||||
|
CODEQL_VERSION_ZSTD_BUNDLE,
|
||||||
|
zstdAvailability.available
|
||||||
|
) ? "zstd" : "gzip";
|
||||||
|
try {
|
||||||
|
const release = await getApiClient().rest.repos.listReleases({
|
||||||
|
owner: CODEQL_NIGHTLIES_REPOSITORY_OWNER,
|
||||||
|
repo: CODEQL_NIGHTLIES_REPOSITORY_NAME,
|
||||||
|
per_page: 1,
|
||||||
|
page: 1,
|
||||||
|
prerelease: true
|
||||||
|
});
|
||||||
|
const latestRelease = release.data[0];
|
||||||
|
if (!latestRelease) {
|
||||||
|
throw new Error("Could not find the latest nightly release.");
|
||||||
|
}
|
||||||
|
return `https://github.com/${CODEQL_NIGHTLIES_REPOSITORY_OWNER}/${CODEQL_NIGHTLIES_REPOSITORY_NAME}/releases/download/${latestRelease.tag_name}/${getCodeQLBundleName(compressionMethod)}`;
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(
|
||||||
|
`Failed to retrieve the latest nightly release: ${wrapError(e)}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isReservedToolsValue(tools) {
|
||||||
|
return CODEQL_BUNDLE_VERSION_ALIAS.includes(tools) || CODEQL_NIGHTLY_TOOLS_INPUTS.includes(tools);
|
||||||
|
}
|
||||||
|
|
||||||
// src/tracer-config.ts
|
// src/tracer-config.ts
|
||||||
async function shouldEnableIndirectTracing(codeql, config) {
|
async function shouldEnableIndirectTracing(codeql, config) {
|
||||||
|
|||||||
103
lib/upload-sarif-action-post.js
generated
103
lib/upload-sarif-action-post.js
generated
@@ -26447,7 +26447,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26463,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -26486,15 +26486,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -26503,10 +26503,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -109984,7 +109984,7 @@ var require_package3 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -110567,11 +110567,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -110590,6 +110597,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -110606,6 +110617,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -110711,11 +110724,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -110734,6 +110754,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -110750,6 +110774,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -111513,7 +111539,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core14 = __importStar4(require_core());
|
var core14 = __importStar4(require_core());
|
||||||
var path2 = __importStar4(require("path"));
|
var path2 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -111521,7 +111547,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config2();
|
var config_1 = require_config2();
|
||||||
var tar_1 = require_tar2();
|
var tar_1 = require_tar2();
|
||||||
var constants_1 = require_constants10();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -111539,6 +111564,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError2;
|
exports2.ReserveCacheError = ReserveCacheError2;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -111810,9 +111843,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core14.debug(`File Size: ${archiveFileSize}`);
|
core14.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core14.debug("Reserving Cache");
|
core14.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -111824,7 +111854,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core14.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -111841,6 +111874,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -111850,6 +111886,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError2.name) {
|
} else if (typedError.name === ReserveCacheError2.name) {
|
||||||
core14.info(`Failed to save: ${typedError.message}`);
|
core14.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core14.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core14.error(`Failed to save: ${typedError.message}`);
|
core14.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -117287,14 +117325,20 @@ var cliErrorsConfig = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// src/config-utils.ts
|
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core6 = __toESM(require_core());
|
var core6 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver2 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var semver3 = __toESM(require_semver2());
|
var semver4 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var actionsCache = __toESM(require_cache3());
|
var actionsCache = __toESM(require_cache3());
|
||||||
@@ -117319,15 +117363,15 @@ 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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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
|
||||||
var semver2 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
var SafeArtifactUploadVersion = "2.20.3";
|
var SafeArtifactUploadVersion = "2.20.3";
|
||||||
function isSafeArtifactUpload(codeQlVersion) {
|
function isSafeArtifactUpload(codeQlVersion) {
|
||||||
return !codeQlVersion ? true : semver2.gte(codeQlVersion, SafeArtifactUploadVersion);
|
return !codeQlVersion ? true : semver3.gte(codeQlVersion, SafeArtifactUploadVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
@@ -117488,6 +117532,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -117529,12 +117578,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
|
|
||||||
// src/setup-codeql.ts
|
// src/setup-codeql.ts
|
||||||
var toolcache3 = __toESM(require_tool_cache());
|
var toolcache3 = __toESM(require_tool_cache());
|
||||||
|
|||||||
302
lib/upload-sarif-action.js
generated
302
lib/upload-sarif-action.js
generated
@@ -27722,7 +27722,7 @@ var require_pattern = __commonJS({
|
|||||||
const absolute = [];
|
const absolute = [];
|
||||||
const relative2 = [];
|
const relative2 = [];
|
||||||
for (const pattern of patterns) {
|
for (const pattern of patterns) {
|
||||||
if (isAbsolute3(pattern)) {
|
if (isAbsolute2(pattern)) {
|
||||||
absolute.push(pattern);
|
absolute.push(pattern);
|
||||||
} else {
|
} else {
|
||||||
relative2.push(pattern);
|
relative2.push(pattern);
|
||||||
@@ -27731,10 +27731,10 @@ var require_pattern = __commonJS({
|
|||||||
return [absolute, relative2];
|
return [absolute, relative2];
|
||||||
}
|
}
|
||||||
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
||||||
function isAbsolute3(pattern) {
|
function isAbsolute2(pattern) {
|
||||||
return path16.isAbsolute(pattern);
|
return path16.isAbsolute(pattern);
|
||||||
}
|
}
|
||||||
exports2.isAbsolute = isAbsolute3;
|
exports2.isAbsolute = isAbsolute2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -32296,7 +32296,7 @@ var require_package = __commonJS({
|
|||||||
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
test: "npm run transpile && ava src/**.test.ts --serial --verbose",
|
test: "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -32312,7 +32312,7 @@ var require_package = __commonJS({
|
|||||||
dependencies: {
|
dependencies: {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -32335,15 +32335,15 @@ var require_package = __commonJS({
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
octokit: "^5.0.3",
|
octokit: "^5.0.3",
|
||||||
semver: "^7.7.2",
|
semver: "^7.7.2",
|
||||||
uuid: "^12.0.0"
|
uuid: "^13.0.0"
|
||||||
},
|
},
|
||||||
devDependencies: {
|
devDependencies: {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -32352,10 +32352,10 @@ var require_package = __commonJS({
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
ava: "^6.4.1",
|
ava: "^6.4.1",
|
||||||
esbuild: "^0.25.9",
|
esbuild: "^0.25.10",
|
||||||
eslint: "^8.57.1",
|
eslint: "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
@@ -73131,7 +73131,7 @@ var require_package2 = __commonJS({
|
|||||||
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
"node_modules/@actions/cache/package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "@actions/cache",
|
name: "@actions/cache",
|
||||||
version: "4.0.5",
|
version: "4.1.0",
|
||||||
preview: true,
|
preview: true,
|
||||||
description: "Actions cache lib",
|
description: "Actions cache lib",
|
||||||
keywords: [
|
keywords: [
|
||||||
@@ -77940,11 +77940,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 9
|
T: 9
|
||||||
/*ScalarType.STRING*/
|
/*ScalarType.STRING*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, signedUploadUrl: "" };
|
const message = { ok: false, signedUploadUrl: "", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -77963,6 +77970,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.signedUploadUrl = reader.string();
|
message.signedUploadUrl = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -77979,6 +77990,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.signedUploadUrl !== "")
|
if (message.signedUploadUrl !== "")
|
||||||
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78084,11 +78097,18 @@ var require_cache2 = __commonJS({
|
|||||||
kind: "scalar",
|
kind: "scalar",
|
||||||
T: 3
|
T: 3
|
||||||
/*ScalarType.INT64*/
|
/*ScalarType.INT64*/
|
||||||
|
},
|
||||||
|
{
|
||||||
|
no: 3,
|
||||||
|
name: "message",
|
||||||
|
kind: "scalar",
|
||||||
|
T: 9
|
||||||
|
/*ScalarType.STRING*/
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
create(value) {
|
create(value) {
|
||||||
const message = { ok: false, entryId: "0" };
|
const message = { ok: false, entryId: "0", message: "" };
|
||||||
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
|
||||||
if (value !== void 0)
|
if (value !== void 0)
|
||||||
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
||||||
@@ -78107,6 +78127,10 @@ var require_cache2 = __commonJS({
|
|||||||
2:
|
2:
|
||||||
message.entryId = reader.int64().toString();
|
message.entryId = reader.int64().toString();
|
||||||
break;
|
break;
|
||||||
|
case /* string message */
|
||||||
|
3:
|
||||||
|
message.message = reader.string();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -78123,6 +78147,8 @@ var require_cache2 = __commonJS({
|
|||||||
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.ok);
|
||||||
if (message.entryId !== "0")
|
if (message.entryId !== "0")
|
||||||
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId);
|
||||||
|
if (message.message !== "")
|
||||||
|
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -78886,7 +78912,7 @@ var require_cache3 = __commonJS({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports2, "__esModule", { value: true });
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
||||||
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
exports2.saveCache = exports2.restoreCache = exports2.isFeatureAvailable = exports2.FinalizeCacheError = exports2.ReserveCacheError = exports2.ValidationError = void 0;
|
||||||
var core14 = __importStar4(require_core());
|
var core14 = __importStar4(require_core());
|
||||||
var path16 = __importStar4(require("path"));
|
var path16 = __importStar4(require("path"));
|
||||||
var utils = __importStar4(require_cacheUtils());
|
var utils = __importStar4(require_cacheUtils());
|
||||||
@@ -78894,7 +78920,6 @@ var require_cache3 = __commonJS({
|
|||||||
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
var cacheTwirpClient = __importStar4(require_cacheTwirpClient());
|
||||||
var config_1 = require_config();
|
var config_1 = require_config();
|
||||||
var tar_1 = require_tar();
|
var tar_1 = require_tar();
|
||||||
var constants_1 = require_constants10();
|
|
||||||
var http_client_1 = require_lib();
|
var http_client_1 = require_lib();
|
||||||
var ValidationError = class _ValidationError extends Error {
|
var ValidationError = class _ValidationError extends Error {
|
||||||
constructor(message) {
|
constructor(message) {
|
||||||
@@ -78912,6 +78937,14 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.ReserveCacheError = ReserveCacheError;
|
exports2.ReserveCacheError = ReserveCacheError;
|
||||||
|
var FinalizeCacheError = class _FinalizeCacheError extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message);
|
||||||
|
this.name = "FinalizeCacheError";
|
||||||
|
Object.setPrototypeOf(this, _FinalizeCacheError.prototype);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports2.FinalizeCacheError = FinalizeCacheError;
|
||||||
function checkPaths(paths) {
|
function checkPaths(paths) {
|
||||||
if (!paths || paths.length === 0) {
|
if (!paths || paths.length === 0) {
|
||||||
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
throw new ValidationError(`Path Validation Error: At least one directory or file path is required`);
|
||||||
@@ -79183,9 +79216,6 @@ var require_cache3 = __commonJS({
|
|||||||
}
|
}
|
||||||
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath);
|
||||||
core14.debug(`File Size: ${archiveFileSize}`);
|
core14.debug(`File Size: ${archiveFileSize}`);
|
||||||
if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) {
|
|
||||||
throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`);
|
|
||||||
}
|
|
||||||
options.archiveSizeBytes = archiveFileSize;
|
options.archiveSizeBytes = archiveFileSize;
|
||||||
core14.debug("Reserving Cache");
|
core14.debug("Reserving Cache");
|
||||||
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
const version = utils.getCacheVersion(paths, compressionMethod, enableCrossOsArchive);
|
||||||
@@ -79197,7 +79227,10 @@ var require_cache3 = __commonJS({
|
|||||||
try {
|
try {
|
||||||
const response = yield twirpClient.CreateCacheEntry(request);
|
const response = yield twirpClient.CreateCacheEntry(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error("Response was not ok");
|
if (response.message) {
|
||||||
|
core14.warning(`Cache reservation failed: ${response.message}`);
|
||||||
|
}
|
||||||
|
throw new Error(response.message || "Response was not ok");
|
||||||
}
|
}
|
||||||
signedUploadUrl = response.signedUploadUrl;
|
signedUploadUrl = response.signedUploadUrl;
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
@@ -79214,6 +79247,9 @@ var require_cache3 = __commonJS({
|
|||||||
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest);
|
||||||
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
core14.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`);
|
||||||
if (!finalizeResponse.ok) {
|
if (!finalizeResponse.ok) {
|
||||||
|
if (finalizeResponse.message) {
|
||||||
|
throw new FinalizeCacheError(finalizeResponse.message);
|
||||||
|
}
|
||||||
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`);
|
||||||
}
|
}
|
||||||
cacheId = parseInt(finalizeResponse.entryId);
|
cacheId = parseInt(finalizeResponse.entryId);
|
||||||
@@ -79223,6 +79259,8 @@ var require_cache3 = __commonJS({
|
|||||||
throw error2;
|
throw error2;
|
||||||
} else if (typedError.name === ReserveCacheError.name) {
|
} else if (typedError.name === ReserveCacheError.name) {
|
||||||
core14.info(`Failed to save: ${typedError.message}`);
|
core14.info(`Failed to save: ${typedError.message}`);
|
||||||
|
} else if (typedError.name === FinalizeCacheError.name) {
|
||||||
|
core14.warning(typedError.message);
|
||||||
} else {
|
} else {
|
||||||
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
if (typedError instanceof http_client_1.HttpClientError && typeof typedError.statusCode === "number" && typedError.statusCode >= 500) {
|
||||||
core14.error(`Failed to save: ${typedError.message}`);
|
core14.error(`Failed to save: ${typedError.message}`);
|
||||||
@@ -88796,6 +88834,14 @@ function getApiDetails() {
|
|||||||
function getApiClient() {
|
function getApiClient() {
|
||||||
return createApiClientWithDetails(getApiDetails());
|
return createApiClientWithDetails(getApiDetails());
|
||||||
}
|
}
|
||||||
|
function getAuthorizationHeaderFor(logger, apiDetails, url2) {
|
||||||
|
if (url2.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && url2.startsWith(`${apiDetails.apiURL}/`)) {
|
||||||
|
logger.debug(`Providing an authorization token.`);
|
||||||
|
return `token ${apiDetails.auth}`;
|
||||||
|
}
|
||||||
|
logger.debug(`Not using an authorization token.`);
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
var cachedGitHubVersion = void 0;
|
var cachedGitHubVersion = void 0;
|
||||||
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
async function getGitHubVersionFromApi(apiClient, apiDetails) {
|
||||||
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
if (parseGitHubUrl(apiDetails.url) === GITHUB_DOTCOM_URL) {
|
||||||
@@ -88885,8 +88931,8 @@ var path8 = __toESM(require("path"));
|
|||||||
var semver3 = __toESM(require_semver2());
|
var semver3 = __toESM(require_semver2());
|
||||||
|
|
||||||
// src/defaults.json
|
// src/defaults.json
|
||||||
var bundleVersion = "codeql-bundle-v2.23.0";
|
var bundleVersion = "codeql-bundle-v2.23.1";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.1";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs5 = __toESM(require("fs"));
|
var fs5 = __toESM(require("fs"));
|
||||||
@@ -89108,7 +89154,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.4";
|
||||||
var OVERLAY_BASE_DATABASE_MAX_UPLOAD_SIZE_MB = 15e3;
|
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) {
|
||||||
@@ -89335,6 +89381,11 @@ var featureConfig = {
|
|||||||
minimumVersion: void 0,
|
minimumVersion: void 0,
|
||||||
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
toolsFeature: "pythonDefaultIsToNotExtractStdlib" /* PythonDefaultIsToNotExtractStdlib */
|
||||||
},
|
},
|
||||||
|
["use_repository_properties" /* UseRepositoryProperties */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_USE_REPOSITORY_PROPERTIES",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
["qa_telemetry_enabled" /* QaTelemetryEnabled */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
envVar: "CODEQL_ACTION_QA_TELEMETRY",
|
||||||
@@ -89619,11 +89670,19 @@ var core9 = __toESM(require_core());
|
|||||||
// src/config-utils.ts
|
// src/config-utils.ts
|
||||||
var fs8 = __toESM(require("fs"));
|
var fs8 = __toESM(require("fs"));
|
||||||
var path10 = __toESM(require("path"));
|
var path10 = __toESM(require("path"));
|
||||||
var semver4 = __toESM(require_semver2());
|
|
||||||
|
|
||||||
// src/caching-utils.ts
|
// src/caching-utils.ts
|
||||||
var core8 = __toESM(require_core());
|
var core8 = __toESM(require_core());
|
||||||
|
|
||||||
|
// src/config/db-config.ts
|
||||||
|
var semver4 = __toESM(require_semver2());
|
||||||
|
var PACK_IDENTIFIER_PATTERN = (function() {
|
||||||
|
const alphaNumeric = "[a-z0-9]";
|
||||||
|
const alphaNumericDash = "[a-z0-9-]";
|
||||||
|
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
||||||
|
return new RegExp(`^${component}/${component}$`);
|
||||||
|
})();
|
||||||
|
|
||||||
// src/diff-informed-analysis-utils.ts
|
// src/diff-informed-analysis-utils.ts
|
||||||
var fs7 = __toESM(require("fs"));
|
var fs7 = __toESM(require("fs"));
|
||||||
var path9 = __toESM(require("path"));
|
var path9 = __toESM(require("path"));
|
||||||
@@ -89672,12 +89731,6 @@ var OVERLAY_ANALYSIS_CODE_SCANNING_FEATURES = {
|
|||||||
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
rust: "overlay_analysis_code_scanning_rust" /* OverlayAnalysisCodeScanningRust */,
|
||||||
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
swift: "overlay_analysis_code_scanning_swift" /* OverlayAnalysisCodeScanningSwift */
|
||||||
};
|
};
|
||||||
var PACK_IDENTIFIER_PATTERN = (function() {
|
|
||||||
const alphaNumeric = "[a-z0-9]";
|
|
||||||
const alphaNumericDash = "[a-z0-9-]";
|
|
||||||
const component = `${alphaNumeric}(${alphaNumericDash}*${alphaNumeric})?`;
|
|
||||||
return new RegExp(`^${component}/${component}$`);
|
|
||||||
})();
|
|
||||||
function getPathToParsedConfigFile(tempDir) {
|
function getPathToParsedConfigFile(tempDir) {
|
||||||
return path10.join(tempDir, "config");
|
return path10.join(tempDir, "config");
|
||||||
}
|
}
|
||||||
@@ -90155,7 +90208,7 @@ var toolcache3 = __toESM(require_tool_cache());
|
|||||||
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
var import_fast_deep_equal = __toESM(require_fast_deep_equal());
|
||||||
var semver7 = __toESM(require_semver2());
|
var semver7 = __toESM(require_semver2());
|
||||||
|
|
||||||
// node_modules/uuid/dist/stringify.js
|
// node_modules/uuid/dist-node/stringify.js
|
||||||
var byteToHex = [];
|
var byteToHex = [];
|
||||||
for (let i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 256).toString(16).slice(1));
|
byteToHex.push((i + 256).toString(16).slice(1));
|
||||||
@@ -90164,7 +90217,7 @@ function unsafeStringify(arr, offset = 0) {
|
|||||||
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/rng.js
|
// node_modules/uuid/dist-node/rng.js
|
||||||
var import_node_crypto = require("node:crypto");
|
var import_node_crypto = require("node:crypto");
|
||||||
var rnds8Pool = new Uint8Array(256);
|
var rnds8Pool = new Uint8Array(256);
|
||||||
var poolPtr = rnds8Pool.length;
|
var poolPtr = rnds8Pool.length;
|
||||||
@@ -90176,11 +90229,11 @@ function rng() {
|
|||||||
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
// node_modules/uuid/dist/native.js
|
// node_modules/uuid/dist-node/native.js
|
||||||
var import_node_crypto2 = require("node:crypto");
|
var import_node_crypto2 = require("node:crypto");
|
||||||
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
var native_default = { randomUUID: import_node_crypto2.randomUUID };
|
||||||
|
|
||||||
// node_modules/uuid/dist/v4.js
|
// node_modules/uuid/dist-node/v4.js
|
||||||
function _v4(options, buf, offset) {
|
function _v4(options, buf, offset) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
const rnds = options.random ?? options.rng?.() ?? rng();
|
const rnds = options.random ?? options.rng?.() ?? rng();
|
||||||
@@ -90523,7 +90576,10 @@ function sanitizeUrlForStatusReport(url2) {
|
|||||||
|
|
||||||
// src/setup-codeql.ts
|
// src/setup-codeql.ts
|
||||||
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
var CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_OWNER = "dsp-testing";
|
||||||
|
var CODEQL_NIGHTLIES_REPOSITORY_NAME = "codeql-cli-nightlies";
|
||||||
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
var CODEQL_BUNDLE_VERSION_ALIAS = ["linked", "latest"];
|
||||||
|
var CODEQL_NIGHTLY_TOOLS_INPUTS = ["nightly", "nightly-latest"];
|
||||||
function getCodeQLBundleExtension(compressionMethod) {
|
function getCodeQLBundleExtension(compressionMethod) {
|
||||||
switch (compressionMethod) {
|
switch (compressionMethod) {
|
||||||
case "gzip":
|
case "gzip":
|
||||||
@@ -90666,7 +90722,7 @@ async function findOverridingToolsInCache(humanReadableVersion, logger) {
|
|||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, variant, tarSupportsZstd, logger) {
|
||||||
if (toolsInput && !CODEQL_BUNDLE_VERSION_ALIAS.includes(toolsInput) && !toolsInput.startsWith("http")) {
|
if (toolsInput && !isReservedToolsValue(toolsInput) && !toolsInput.startsWith("http")) {
|
||||||
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
logger.info(`Using CodeQL CLI from local path ${toolsInput}`);
|
||||||
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
const compressionMethod2 = inferCompressionMethod(toolsInput);
|
||||||
if (compressionMethod2 === void 0) {
|
if (compressionMethod2 === void 0) {
|
||||||
@@ -90695,6 +90751,12 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian
|
|||||||
let cliVersion2;
|
let cliVersion2;
|
||||||
let tagName;
|
let tagName;
|
||||||
let url2;
|
let url2;
|
||||||
|
if (toolsInput !== void 0 && CODEQL_NIGHTLY_TOOLS_INPUTS.includes(toolsInput)) {
|
||||||
|
logger.info(
|
||||||
|
`Using the latest CodeQL CLI nightly, as requested by 'tools: ${toolsInput}'.`
|
||||||
|
);
|
||||||
|
toolsInput = await getNightlyToolsUrl(logger);
|
||||||
|
}
|
||||||
if (forceShippedTools) {
|
if (forceShippedTools) {
|
||||||
cliVersion2 = cliVersion;
|
cliVersion2 = cliVersion;
|
||||||
tagName = bundleVersion;
|
tagName = bundleVersion;
|
||||||
@@ -90847,11 +90909,12 @@ var downloadCodeQL = async function(codeqlURL, compressionMethod, maybeBundleVer
|
|||||||
let authorization = void 0;
|
let authorization = void 0;
|
||||||
if (searchParams.has("token")) {
|
if (searchParams.has("token")) {
|
||||||
logger.debug("CodeQL tools URL contains an authorization token.");
|
logger.debug("CodeQL tools URL contains an authorization token.");
|
||||||
} else if (codeqlURL.startsWith(`${apiDetails.url}/`) || apiDetails.apiURL && codeqlURL.startsWith(`${apiDetails.apiURL}/`)) {
|
|
||||||
logger.debug("Providing an authorization token to download CodeQL tools.");
|
|
||||||
authorization = `token ${apiDetails.auth}`;
|
|
||||||
} else {
|
} else {
|
||||||
logger.debug("Downloading CodeQL tools without an authorization token.");
|
authorization = getAuthorizationHeaderFor(
|
||||||
|
logger,
|
||||||
|
apiDetails,
|
||||||
|
codeqlURL
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const toolcacheInfo = getToolcacheDestinationInfo(
|
const toolcacheInfo = getToolcacheDestinationInfo(
|
||||||
maybeBundleVersion,
|
maybeBundleVersion,
|
||||||
@@ -90978,6 +91041,34 @@ async function useZstdBundle(cliVersion2, tarSupportsZstd) {
|
|||||||
function getTempExtractionDir(tempDir) {
|
function getTempExtractionDir(tempDir) {
|
||||||
return path12.join(tempDir, v4_default());
|
return path12.join(tempDir, v4_default());
|
||||||
}
|
}
|
||||||
|
async function getNightlyToolsUrl(logger) {
|
||||||
|
const zstdAvailability = await isZstdAvailable(logger);
|
||||||
|
const compressionMethod = await useZstdBundle(
|
||||||
|
CODEQL_VERSION_ZSTD_BUNDLE,
|
||||||
|
zstdAvailability.available
|
||||||
|
) ? "zstd" : "gzip";
|
||||||
|
try {
|
||||||
|
const release3 = await getApiClient().rest.repos.listReleases({
|
||||||
|
owner: CODEQL_NIGHTLIES_REPOSITORY_OWNER,
|
||||||
|
repo: CODEQL_NIGHTLIES_REPOSITORY_NAME,
|
||||||
|
per_page: 1,
|
||||||
|
page: 1,
|
||||||
|
prerelease: true
|
||||||
|
});
|
||||||
|
const latestRelease = release3.data[0];
|
||||||
|
if (!latestRelease) {
|
||||||
|
throw new Error("Could not find the latest nightly release.");
|
||||||
|
}
|
||||||
|
return `https://github.com/${CODEQL_NIGHTLIES_REPOSITORY_OWNER}/${CODEQL_NIGHTLIES_REPOSITORY_NAME}/releases/download/${latestRelease.tag_name}/${getCodeQLBundleName(compressionMethod)}`;
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(
|
||||||
|
`Failed to retrieve the latest nightly release: ${wrapError(e)}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isReservedToolsValue(tools) {
|
||||||
|
return CODEQL_BUNDLE_VERSION_ALIAS.includes(tools) || CODEQL_NIGHTLY_TOOLS_INPUTS.includes(tools);
|
||||||
|
}
|
||||||
|
|
||||||
// src/tracer-config.ts
|
// src/tracer-config.ts
|
||||||
async function shouldEnableIndirectTracing(codeql, config) {
|
async function shouldEnableIndirectTracing(codeql, config) {
|
||||||
@@ -92985,23 +93076,6 @@ function findSarifFilesInDir(sarifPath, isSarif) {
|
|||||||
walkSarifFiles(sarifPath);
|
walkSarifFiles(sarifPath);
|
||||||
return sarifFiles;
|
return sarifFiles;
|
||||||
}
|
}
|
||||||
function getSarifFilePaths(sarifPath, isSarif) {
|
|
||||||
if (!fs14.existsSync(sarifPath)) {
|
|
||||||
throw new ConfigurationError(`Path does not exist: ${sarifPath}`);
|
|
||||||
}
|
|
||||||
let sarifFiles;
|
|
||||||
if (fs14.lstatSync(sarifPath).isDirectory()) {
|
|
||||||
sarifFiles = findSarifFilesInDir(sarifPath, isSarif);
|
|
||||||
if (sarifFiles.length === 0) {
|
|
||||||
throw new ConfigurationError(
|
|
||||||
`No SARIF files found to upload in "${sarifPath}".`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
sarifFiles = [sarifPath];
|
|
||||||
}
|
|
||||||
return sarifFiles;
|
|
||||||
}
|
|
||||||
function countResultsInSarif(sarif) {
|
function countResultsInSarif(sarif) {
|
||||||
let numResults = 0;
|
let numResults = 0;
|
||||||
const parsedSarif = JSON.parse(sarif);
|
const parsedSarif = JSON.parse(sarif);
|
||||||
@@ -93097,20 +93171,6 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
|
|||||||
}
|
}
|
||||||
return payloadObj;
|
return payloadObj;
|
||||||
}
|
}
|
||||||
async function uploadFiles(inputSarifPath, checkoutPath, category, features, logger, uploadTarget) {
|
|
||||||
const sarifPaths = getSarifFilePaths(
|
|
||||||
inputSarifPath,
|
|
||||||
uploadTarget.sarifPredicate
|
|
||||||
);
|
|
||||||
return uploadSpecifiedFiles(
|
|
||||||
sarifPaths,
|
|
||||||
checkoutPath,
|
|
||||||
category,
|
|
||||||
features,
|
|
||||||
logger,
|
|
||||||
uploadTarget
|
|
||||||
);
|
|
||||||
}
|
|
||||||
async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features, logger, uploadTarget) {
|
async function uploadSpecifiedFiles(sarifPaths, checkoutPath, category, features, logger, uploadTarget) {
|
||||||
logger.startGroup(`Uploading ${uploadTarget.name} results`);
|
logger.startGroup(`Uploading ${uploadTarget.name} results`);
|
||||||
logger.info(`Processing sarif files: ${JSON.stringify(sarifPaths)}`);
|
logger.info(`Processing sarif files: ${JSON.stringify(sarifPaths)}`);
|
||||||
@@ -93358,6 +93418,30 @@ function filterAlertsByDiffRange(logger, sarif) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// src/upload-sarif-action.ts
|
// src/upload-sarif-action.ts
|
||||||
|
async function findAndUpload(logger, features, sarifPath, pathStats, checkoutPath, analysis, category) {
|
||||||
|
let sarifFiles;
|
||||||
|
if (pathStats.isDirectory()) {
|
||||||
|
sarifFiles = findSarifFilesInDir(
|
||||||
|
sarifPath,
|
||||||
|
analysis.sarifPredicate
|
||||||
|
);
|
||||||
|
} else if (pathStats.isFile() && analysis.sarifPredicate(sarifPath)) {
|
||||||
|
sarifFiles = [sarifPath];
|
||||||
|
} else {
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
if (sarifFiles.length !== 0) {
|
||||||
|
return await uploadSpecifiedFiles(
|
||||||
|
sarifFiles,
|
||||||
|
checkoutPath,
|
||||||
|
category,
|
||||||
|
features,
|
||||||
|
logger,
|
||||||
|
analysis
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
async function sendSuccessStatusReport(startedAt, uploadStats, logger) {
|
async function sendSuccessStatusReport(startedAt, uploadStats, logger) {
|
||||||
const statusReportBase = await createStatusReportBase(
|
const statusReportBase = await createStatusReportBase(
|
||||||
"upload-sarif" /* UploadSarif */,
|
"upload-sarif" /* UploadSarif */,
|
||||||
@@ -93404,41 +93488,59 @@ async function run() {
|
|||||||
const sarifPath = getRequiredInput("sarif_file");
|
const sarifPath = getRequiredInput("sarif_file");
|
||||||
const checkoutPath = getRequiredInput("checkout_path");
|
const checkoutPath = getRequiredInput("checkout_path");
|
||||||
const category = getOptionalInput("category");
|
const category = getOptionalInput("category");
|
||||||
const uploadResult = await uploadFiles(
|
const pathStats = fs15.lstatSync(sarifPath, { throwIfNoEntry: false });
|
||||||
sarifPath,
|
if (pathStats === void 0) {
|
||||||
checkoutPath,
|
throw new ConfigurationError(`Path does not exist: ${sarifPath}.`);
|
||||||
category,
|
|
||||||
features,
|
|
||||||
logger,
|
|
||||||
CodeScanning
|
|
||||||
);
|
|
||||||
core13.setOutput("sarif-id", uploadResult.sarifID);
|
|
||||||
if (fs15.lstatSync(sarifPath).isDirectory()) {
|
|
||||||
const qualitySarifFiles = findSarifFilesInDir(
|
|
||||||
sarifPath,
|
|
||||||
CodeQuality.sarifPredicate
|
|
||||||
);
|
|
||||||
if (qualitySarifFiles.length !== 0) {
|
|
||||||
await uploadSpecifiedFiles(
|
|
||||||
qualitySarifFiles,
|
|
||||||
checkoutPath,
|
|
||||||
fixCodeQualityCategory(logger, category),
|
|
||||||
features,
|
|
||||||
logger,
|
|
||||||
CodeQuality
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
const sarifIds = [];
|
||||||
|
const uploadResult = await findAndUpload(
|
||||||
|
logger,
|
||||||
|
features,
|
||||||
|
sarifPath,
|
||||||
|
pathStats,
|
||||||
|
checkoutPath,
|
||||||
|
CodeScanning,
|
||||||
|
category
|
||||||
|
);
|
||||||
|
if (uploadResult !== void 0) {
|
||||||
|
core13.setOutput("sarif-id", uploadResult.sarifID);
|
||||||
|
sarifIds.push({
|
||||||
|
analysis: "code-scanning" /* CodeScanning */,
|
||||||
|
id: uploadResult.sarifID
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const qualityUploadResult = await findAndUpload(
|
||||||
|
logger,
|
||||||
|
features,
|
||||||
|
sarifPath,
|
||||||
|
pathStats,
|
||||||
|
checkoutPath,
|
||||||
|
CodeQuality,
|
||||||
|
fixCodeQualityCategory(logger, category)
|
||||||
|
);
|
||||||
|
if (qualityUploadResult !== void 0) {
|
||||||
|
sarifIds.push({
|
||||||
|
analysis: "code-quality" /* CodeQuality */,
|
||||||
|
id: qualityUploadResult.sarifID
|
||||||
|
});
|
||||||
|
}
|
||||||
|
core13.setOutput("sarif-ids", JSON.stringify(sarifIds));
|
||||||
if (isInTestMode()) {
|
if (isInTestMode()) {
|
||||||
core13.debug("In test mode. Waiting for processing is disabled.");
|
core13.debug("In test mode. Waiting for processing is disabled.");
|
||||||
} else if (getRequiredInput("wait-for-processing") === "true") {
|
} else if (getRequiredInput("wait-for-processing") === "true") {
|
||||||
await waitForProcessing(
|
if (uploadResult !== void 0) {
|
||||||
getRepositoryNwo(),
|
await waitForProcessing(
|
||||||
uploadResult.sarifID,
|
getRepositoryNwo(),
|
||||||
logger
|
uploadResult.sarifID,
|
||||||
);
|
logger
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await sendSuccessStatusReport(startedAt, uploadResult.statusReport, logger);
|
await sendSuccessStatusReport(
|
||||||
|
startedAt,
|
||||||
|
uploadResult?.statusReport || {},
|
||||||
|
logger
|
||||||
|
);
|
||||||
} catch (unwrappedError) {
|
} catch (unwrappedError) {
|
||||||
const error2 = isThirdPartyAnalysis("upload-sarif" /* UploadSarif */) && unwrappedError instanceof InvalidSarifUploadError ? new ConfigurationError(unwrappedError.message) : wrapError(unwrappedError);
|
const error2 = isThirdPartyAnalysis("upload-sarif" /* UploadSarif */) && unwrappedError instanceof InvalidSarifUploadError ? new ConfigurationError(unwrappedError.message) : wrapError(unwrappedError);
|
||||||
const message = error2.message;
|
const message = error2.message;
|
||||||
|
|||||||
675
package-lock.json
generated
675
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -9,7 +9,7 @@
|
|||||||
"lint": "eslint --report-unused-disable-directives --max-warnings=0 .",
|
"lint": "eslint --report-unused-disable-directives --max-warnings=0 .",
|
||||||
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
|
||||||
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",
|
||||||
"test": "npm run transpile && ava src/**.test.ts --serial --verbose",
|
"test": "npm run transpile && ava src/ --serial --verbose",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
"transpile": "tsc --build --verbose"
|
"transpile": "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/artifact": "^2.3.1",
|
"@actions/artifact": "^2.3.1",
|
||||||
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
"@actions/artifact-legacy": "npm:@actions/artifact@^1.1.2",
|
||||||
"@actions/cache": "^4.0.5",
|
"@actions/cache": "^4.1.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^6.0.0",
|
"@actions/github": "^6.0.0",
|
||||||
@@ -48,15 +48,15 @@
|
|||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
"octokit": "^5.0.3",
|
"octokit": "^5.0.3",
|
||||||
"semver": "^7.7.2",
|
"semver": "^7.7.2",
|
||||||
"uuid": "^12.0.0"
|
"uuid": "^13.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ava/typescript": "6.0.0",
|
"@ava/typescript": "6.0.0",
|
||||||
"@eslint/compat": "^1.3.2",
|
"@eslint/compat": "^1.4.0",
|
||||||
"@eslint/eslintrc": "^3.3.1",
|
"@eslint/eslintrc": "^3.3.1",
|
||||||
"@eslint/js": "^9.35.0",
|
"@eslint/js": "^9.36.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
"@octokit/types": "^14.1.0",
|
"@octokit/types": "^15.0.0",
|
||||||
"@types/archiver": "^6.0.3",
|
"@types/archiver": "^6.0.3",
|
||||||
"@types/console-log-level": "^1.4.5",
|
"@types/console-log-level": "^1.4.5",
|
||||||
"@types/follow-redirects": "^1.14.4",
|
"@types/follow-redirects": "^1.14.4",
|
||||||
@@ -65,10 +65,10 @@
|
|||||||
"@types/node-forge": "^1.3.14",
|
"@types/node-forge": "^1.3.14",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@types/sinon": "^17.0.4",
|
"@types/sinon": "^17.0.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
||||||
"@typescript-eslint/parser": "^8.41.0",
|
"@typescript-eslint/parser": "^8.41.0",
|
||||||
"ava": "^6.4.1",
|
"ava": "^6.4.1",
|
||||||
"esbuild": "^0.25.9",
|
"esbuild": "^0.25.10",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.1",
|
||||||
"eslint-import-resolver-typescript": "^3.8.7",
|
"eslint-import-resolver-typescript": "^3.8.7",
|
||||||
"eslint-plugin-filenames": "^1.3.2",
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
|
|||||||
2
pr-checks/.gitignore
vendored
2
pr-checks/.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
env
|
env
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|||||||
0
pr-checks/__init__.py
Normal file
0
pr-checks/__init__.py
Normal file
@@ -8,7 +8,7 @@ operatingSystems:
|
|||||||
- windows
|
- windows
|
||||||
steps:
|
steps:
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
@@ -18,7 +18,7 @@ steps:
|
|||||||
- name: Install @actions/tool-cache
|
- name: Install @actions/tool-cache
|
||||||
run: npm install @actions/tool-cache
|
run: npm install @actions/tool-cache
|
||||||
- name: Check toolcache does not contain CodeQL
|
- name: Check toolcache does not contain CodeQL
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const toolcache = require('@actions/tool-cache');
|
const toolcache = require('@actions/tool-cache');
|
||||||
@@ -37,7 +37,7 @@ steps:
|
|||||||
output: ${{ runner.temp }}/results
|
output: ${{ runner.temp }}/results
|
||||||
upload-database: false
|
upload-database: false
|
||||||
- name: Check CodeQL is installed within the toolcache
|
- name: Check CodeQL is installed within the toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const toolcache = require('@actions/tool-cache');
|
const toolcache = require('@actions/tool-cache');
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ operatingSystems:
|
|||||||
- windows
|
- windows
|
||||||
steps:
|
steps:
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
@@ -33,7 +33,7 @@ steps:
|
|||||||
path: ${{ runner.temp }}/results/javascript.sarif
|
path: ${{ runner.temp }}/results/javascript.sarif
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check diagnostic with expected tools URL appears in SARIF
|
- name: Check diagnostic with expected tools URL appears in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
SARIF_PATH: ${{ runner.temp }}/results/javascript.sarif
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ steps:
|
|||||||
path: "${{ runner.temp }}/results/javascript.sarif"
|
path: "${{ runner.temp }}/results/javascript.sarif"
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check config properties appear in SARIF
|
- name: Check config properties appear in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: "${{ runner.temp }}/results/javascript.sarif"
|
SARIF_PATH: "${{ runner.temp }}/results/javascript.sarif"
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ steps:
|
|||||||
path: "${{ runner.temp }}/results/javascript.sarif"
|
path: "${{ runner.temp }}/results/javascript.sarif"
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Check diagnostics appear in SARIF
|
- name: Check diagnostics appear in SARIF
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
SARIF_PATH: "${{ runner.temp }}/results/javascript.sarif"
|
SARIF_PATH: "${{ runner.temp }}/results/javascript.sarif"
|
||||||
with:
|
with:
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user