mirror of
https://github.com/github/codeql-action.git
synced 2025-12-11 02:04:31 +08:00
Compare commits
324 Commits
codeql-bun
...
codeql-bun
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17783bfb99 | ||
|
|
3c764cd93a | ||
|
|
e1968324ff | ||
|
|
2a6736cca7 | ||
|
|
c8765c966b | ||
|
|
61789e2fdb | ||
|
|
5cd2d139cb | ||
|
|
f443b600d9 | ||
|
|
7a2cb623ed | ||
|
|
527f0f324a | ||
|
|
f402506f0f | ||
|
|
f5e53f9476 | ||
|
|
4e90a42a3e | ||
|
|
413a4a4df1 | ||
|
|
452186448a | ||
|
|
eadf14bf6e | ||
|
|
e1257b6fda | ||
|
|
b516b1d4bc | ||
|
|
168b2dee16 | ||
|
|
4704ab1869 | ||
|
|
dc2ced8385 | ||
|
|
5c752c85dd | ||
|
|
e74435a1da | ||
|
|
524b9a00e8 | ||
|
|
a512fe0868 | ||
|
|
62f0f21c3c | ||
|
|
a8440d08d5 | ||
|
|
610c7c68e3 | ||
|
|
ff2fc66cc1 | ||
|
|
a841c540b7 | ||
|
|
aeb12f6eaa | ||
|
|
6fd4ceb7bb | ||
|
|
196a3e577b | ||
|
|
98abb870dc | ||
|
|
bdd2cdf891 | ||
|
|
fb148789ab | ||
|
|
2ff418f28a | ||
|
|
527501d15d | ||
|
|
621809b239 | ||
|
|
8301b8b096 | ||
|
|
7bdfa9736a | ||
|
|
a57997f2d2 | ||
|
|
4489a63a9d | ||
|
|
1707898e5b | ||
|
|
d05f2255a0 | ||
|
|
7892cb2362 | ||
|
|
8a6b62bc2d | ||
|
|
d95a3b53f8 | ||
|
|
257e42ce3d | ||
|
|
074940162c | ||
|
|
e296a93559 | ||
|
|
df65651d4f | ||
|
|
1b09eb4ccc | ||
|
|
2f11c17b09 | ||
|
|
0ba4970165 | ||
|
|
5431b6a308 | ||
|
|
7f5db167b6 | ||
|
|
239d7b286f | ||
|
|
86b2ad6646 | ||
|
|
5dfb610e99 | ||
|
|
1491baa17e | ||
|
|
db562a696f | ||
|
|
93c16735fa | ||
|
|
55283843ca | ||
|
|
6877465dc1 | ||
|
|
ff23a55f4d | ||
|
|
b66db86c84 | ||
|
|
00a6e13cbf | ||
|
|
25c8db918a | ||
|
|
dabf6fc578 | ||
|
|
14c5d77032 | ||
|
|
380e002752 | ||
|
|
680b07003d | ||
|
|
22aba57acf | ||
|
|
11e4034414 | ||
|
|
882667e383 | ||
|
|
6f964b7776 | ||
|
|
6bdf5d3d00 | ||
|
|
9b3ade946d | ||
|
|
e0b9da7b0a | ||
|
|
726a341ed4 | ||
|
|
1cc5eb6636 | ||
|
|
43ce7ef399 | ||
|
|
4d0c164f60 | ||
|
|
b2e22323e2 | ||
|
|
dd9e24a8a4 | ||
|
|
13a3a6890f | ||
|
|
7d468c931c | ||
|
|
425ef85595 | ||
|
|
297313df79 | ||
|
|
065c6cfb78 | ||
|
|
7fb8378d93 | ||
|
|
dddf033776 | ||
|
|
54ae8ba5b1 | ||
|
|
65e9e640ee | ||
|
|
21a7ba37dd | ||
|
|
70836b1ec4 | ||
|
|
205744e04f | ||
|
|
64d10c1313 | ||
|
|
909610e8a8 | ||
|
|
d899b2ed98 | ||
|
|
10feb5d2a2 | ||
|
|
4182ea3d4e | ||
|
|
34afe5b7b1 | ||
|
|
096fe67f97 | ||
|
|
b4964014ad | ||
|
|
d573787cca | ||
|
|
15916800df | ||
|
|
cb5a2849ac | ||
|
|
6de1d741f6 | ||
|
|
a506145f31 | ||
|
|
aac66ec793 | ||
|
|
91a63dc72c | ||
|
|
d25fa60a90 | ||
|
|
3adb1ff7b8 | ||
|
|
d4b5380db4 | ||
|
|
d4bbcb74ca | ||
|
|
180438161e | ||
|
|
d7ada03e02 | ||
|
|
30445af89f | ||
|
|
7434149006 | ||
|
|
9a0b46abff | ||
|
|
b8c496644d | ||
|
|
ad086e4d90 | ||
|
|
47b5ac77ee | ||
|
|
b5caf1196e | ||
|
|
80cb6b56b9 | ||
|
|
d44c8b3e18 | ||
|
|
93711d3d89 | ||
|
|
056fb86575 | ||
|
|
63d1b25e97 | ||
|
|
717d581574 | ||
|
|
0417531633 | ||
|
|
13ae3d4328 | ||
|
|
fe0376ed1f | ||
|
|
36adfa7b0f | ||
|
|
97159624c3 | ||
|
|
f0a08a4bf5 | ||
|
|
73fbfb0bbf | ||
|
|
5fd2cfe1ef | ||
|
|
2adc894410 | ||
|
|
5b3f0ded91 | ||
|
|
6e0b0872fa | ||
|
|
9f452fad0f | ||
|
|
5fc9e66105 | ||
|
|
e6768a18cf | ||
|
|
6a87ebe42b | ||
|
|
b66e847aaf | ||
|
|
1733a23b20 | ||
|
|
3599b3baa1 | ||
|
|
2ca0085e58 | ||
|
|
0a67bd46a0 | ||
|
|
8e34f2f3bf | ||
|
|
0b7fc56648 | ||
|
|
2f0649510e | ||
|
|
f19a3e769f | ||
|
|
31bfb99f0d | ||
|
|
94a9b7a110 | ||
|
|
ed57767898 | ||
|
|
2ff902e1f1 | ||
|
|
a0ae9ba202 | ||
|
|
b27a8ef21f | ||
|
|
65925679a3 | ||
|
|
fa64a7dee6 | ||
|
|
455038c8a7 | ||
|
|
853decd26b | ||
|
|
48be21c31e | ||
|
|
77a9259761 | ||
|
|
e2e1db3e4e | ||
|
|
a645d167d6 | ||
|
|
8fca38155e | ||
|
|
4e65cda8c2 | ||
|
|
b4db1860cd | ||
|
|
9cf3a96f63 | ||
|
|
6a72568b19 | ||
|
|
b1d32cf356 | ||
|
|
5235174f0e | ||
|
|
f3bf6463e1 | ||
|
|
c5ce5e5d1c | ||
|
|
79dc6cc78c | ||
|
|
4d32274da6 | ||
|
|
0a3e31778d | ||
|
|
303c0aef88 | ||
|
|
333a673809 | ||
|
|
5445d1a09c | ||
|
|
e4b85ab654 | ||
|
|
1e72556714 | ||
|
|
39842d8f83 | ||
|
|
6ccec2ac14 | ||
|
|
435f474d1e | ||
|
|
a34e1cd60b | ||
|
|
f134e09015 | ||
|
|
50a31df6ba | ||
|
|
8e25b3435d | ||
|
|
4e820a4ca4 | ||
|
|
5a9c44b3b2 | ||
|
|
3183e6b8f9 | ||
|
|
d43f46c39c | ||
|
|
efcf614b5d | ||
|
|
4082f8c39f | ||
|
|
cec0b17b93 | ||
|
|
83fdfaf3fc | ||
|
|
86de17c44d | ||
|
|
ba58de7d61 | ||
|
|
8633a151d5 | ||
|
|
79bbb1744e | ||
|
|
67a0080933 | ||
|
|
a8eeef9291 | ||
|
|
f54c1c0b33 | ||
|
|
c6674f9abd | ||
|
|
0890b56a8a | ||
|
|
c6e30a2b5a | ||
|
|
1b12ed7ea8 | ||
|
|
d92eef9c9e | ||
|
|
d34e247444 | ||
|
|
78e8dc0161 | ||
|
|
a29637ac01 | ||
|
|
50fc7e9236 | ||
|
|
1ba789f617 | ||
|
|
944aa7df3d | ||
|
|
29a4b8731d | ||
|
|
3df807292a | ||
|
|
c656a2569b | ||
|
|
eb05da905d | ||
|
|
e8921f7eff | ||
|
|
2bbfe979c3 | ||
|
|
5c8c613b75 | ||
|
|
7dfbfdcb01 | ||
|
|
3d7d7c978e | ||
|
|
249a3cbb5c | ||
|
|
11480e326c | ||
|
|
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 | ||
|
|
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'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
2
.github/actions/check-sarif/action.yml
vendored
2
.github/actions/check-sarif/action.yml
vendored
@@ -16,5 +16,5 @@ inputs:
|
|||||||
Comma separated list of query ids that should NOT be included in this SARIF file.
|
Comma separated list of query ids that should NOT be included in this SARIF file.
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node24
|
||||||
main: index.js
|
main: index.js
|
||||||
|
|||||||
29
.github/actions/prepare-test/action.yml
vendored
29
.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', 'toolcache', '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,37 +35,34 @@ 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" == "toolcache" ]]; then
|
||||||
|
echo "tools-url=toolcache" >> "$GITHUB_OUTPUT"
|
||||||
|
exit 0
|
||||||
elif [[ "$VERSION" == "default" ]]; then
|
elif [[ "$VERSION" == "default" ]]; then
|
||||||
echo "tools-url=" >> "$GITHUB_OUTPUT"
|
echo "tools-url=" >> "$GITHUB_OUTPUT"
|
||||||
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
|
||||||
|
|||||||
24
.github/dependabot.yml
vendored
24
.github/dependabot.yml
vendored
@@ -16,22 +16,24 @@ updates:
|
|||||||
- dependency-name: "eslint-plugin-import"
|
- dependency-name: "eslint-plugin-import"
|
||||||
versions: [">=2.30.0"]
|
versions: [">=2.30.0"]
|
||||||
groups:
|
groups:
|
||||||
npm:
|
npm-minor:
|
||||||
patterns:
|
patterns:
|
||||||
- "*"
|
- "*"
|
||||||
|
update-types:
|
||||||
|
- "minor"
|
||||||
|
- "patch"
|
||||||
- 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-minor:
|
||||||
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:
|
patterns:
|
||||||
- "*"
|
- "*"
|
||||||
|
update-types:
|
||||||
|
- "minor"
|
||||||
|
- "patch"
|
||||||
|
|||||||
49
.github/pull_request_template.md
vendored
49
.github/pull_request_template.md
vendored
@@ -1,4 +1,13 @@
|
|||||||
<!-- For GitHub staff: Remember that this is a public repository. -->
|
<!--
|
||||||
|
For GitHub staff: Remember that this is a public repository. Do not link to internal resources.
|
||||||
|
If necessary, link to this PR from an internal issue and include further details there.
|
||||||
|
|
||||||
|
Everyone: Include a summary of the context of this change, what it aims to accomplish, and why you
|
||||||
|
chose the approach you did if applicable. Indicate any open questions you want to answer
|
||||||
|
during the review process and anything you want reviewers to pay particular attention to.
|
||||||
|
|
||||||
|
See https://github.com/github/codeql-action/blob/main/CONTRIBUTING.md for additional information.
|
||||||
|
-->
|
||||||
|
|
||||||
### Risk assessment
|
### Risk assessment
|
||||||
|
|
||||||
@@ -7,6 +16,44 @@ For internal use only. Please select the risk level of this change:
|
|||||||
- **Low risk:** Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.
|
- **Low risk:** Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.
|
||||||
- **High risk:** Changes are not fully under feature flags, have limited visibility and/or cannot be tested outside of production.
|
- **High risk:** Changes are not fully under feature flags, have limited visibility and/or cannot be tested outside of production.
|
||||||
|
|
||||||
|
#### Which use cases does this change impact?
|
||||||
|
|
||||||
|
<!-- Delete options that don't apply. -->
|
||||||
|
|
||||||
|
- **Advanced setup** - Impacts users who have custom workflows.
|
||||||
|
- **Default setup** - Impacts users who use default setup.
|
||||||
|
- **Code Scanning** - Impacts Code Scanning (i.e. `analysis-kinds: code-scanning`).
|
||||||
|
- **Code Quality** - Impacts Code Quality (i.e. `analysis-kinds: code-quality`).
|
||||||
|
- **Third-party analyses** - Impacts third-party analyses (i.e. `upload-sarif`).
|
||||||
|
- **GHES** - Impacts GitHub Enterprise Server.
|
||||||
|
|
||||||
|
#### How did/will you validate this change?
|
||||||
|
|
||||||
|
<!-- Delete options that don't apply. -->
|
||||||
|
|
||||||
|
- **Test repository** - This change will be tested on a test repository before merging.
|
||||||
|
- **Unit tests** - I am depending on unit test coverage (i.e. tests in `.test.ts` files).
|
||||||
|
- **End-to-end tests** - I am depending on PR checks (i.e. tests in `pr-checks`).
|
||||||
|
- **Other** - Please provide details.
|
||||||
|
- **None** - I am not validating these changes.
|
||||||
|
|
||||||
|
#### If something goes wrong after this change is released, what are the mitigation and rollback strategies?
|
||||||
|
|
||||||
|
<!-- Delete strategies that don't apply. -->
|
||||||
|
|
||||||
|
- **Feature flags** - All new or changed code paths can be fully disabled with corresponding feature flags.
|
||||||
|
- **Rollback** - Change can only be disabled by rolling back the release or releasing a new version with a fix.
|
||||||
|
- **Other** - Please provide details.
|
||||||
|
|
||||||
|
#### How will you know if something goes wrong after this change is released?
|
||||||
|
|
||||||
|
<!-- Delete options that don't apply. -->
|
||||||
|
|
||||||
|
- **Telemetry** - I rely on existing telemetry or have made changes to the telemetry.
|
||||||
|
- **Dashboards** - I will watch relevant dashboards for issues after the release. Consider whether this requires this change to be released at a particular time rather than as part of a regular release.
|
||||||
|
- **Alerts** - New or existing monitors will trip if something goes wrong with this change.
|
||||||
|
- **Other** - Please provide details.
|
||||||
|
|
||||||
### Merge / deployment checklist
|
### Merge / deployment checklist
|
||||||
|
|
||||||
- Confirm this change is backwards compatible with existing workflows.
|
- Confirm this change is backwards compatible with existing workflows.
|
||||||
|
|||||||
8
.github/update-release-branch.py
vendored
8
.github/update-release-branch.py
vendored
@@ -371,10 +371,10 @@ def main():
|
|||||||
# releases.
|
# releases.
|
||||||
run_git('revert', vOlder_update_commits[0], '--no-edit')
|
run_git('revert', vOlder_update_commits[0], '--no-edit')
|
||||||
|
|
||||||
# Also revert the "Update checked-in dependencies" commit created by Actions.
|
# Also revert the "Rebuild" commit created by Actions.
|
||||||
update_dependencies_commit = run_git('log', '--grep', '^Update checked-in dependencies', '--format=%H').split()[0]
|
rebuild_commit = run_git('log', '--grep', '^Rebuild$', '--format=%H').split()[0]
|
||||||
print(f' Reverting {update_dependencies_commit}')
|
print(f' Reverting {rebuild_commit}')
|
||||||
run_git('revert', update_dependencies_commit, '--no-edit')
|
run_git('revert', rebuild_commit, '--no-edit')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(' Nothing to revert.')
|
print(' Nothing to revert.')
|
||||||
|
|||||||
10
.github/workflows/__all-platform-bundle.yml
generated
vendored
10
.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:
|
||||||
@@ -45,7 +48,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
|
- os: macos-latest
|
||||||
|
version: nightly-latest
|
||||||
|
- os: windows-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 +70,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
|
||||||
|
|||||||
10
.github/workflows/__analyze-ref-input.yml
generated
vendored
10
.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:
|
||||||
@@ -45,11 +48,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
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 +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/__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
|
||||||
|
|||||||
100
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
100
.github/workflows/__autobuild-direct-tracing.yml
generated
vendored
@@ -1,100 +0,0 @@
|
|||||||
# Warning: This file is generated automatically, and should not be modified.
|
|
||||||
# Instead, please modify the template in the pr-checks directory and run:
|
|
||||||
# pr-checks/sync.sh
|
|
||||||
# to regenerate this file.
|
|
||||||
|
|
||||||
name: PR Check - Autobuild direct tracing
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GO111MODULE: auto
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- releases/v*
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
- ready_for_review
|
|
||||||
schedule:
|
|
||||||
- cron: '0 5 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
java-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Java to install
|
|
||||||
required: false
|
|
||||||
default: '17'
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
java-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Java to install
|
|
||||||
required: false
|
|
||||||
default: '17'
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
jobs:
|
|
||||||
autobuild-direct-tracing:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-latest
|
|
||||||
version: nightly-latest
|
|
||||||
name: Autobuild direct tracing
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
security-events: read
|
|
||||||
timeout-minutes: 45
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- name: Check out repository
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
- name: Prepare test
|
|
||||||
id: prepare-test
|
|
||||||
uses: ./.github/actions/prepare-test
|
|
||||||
with:
|
|
||||||
version: ${{ matrix.version }}
|
|
||||||
use-all-platform-bundle: 'false'
|
|
||||||
setup-kotlin: 'true'
|
|
||||||
- name: Install Java
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
java-version: ${{ inputs.java-version || '17' }}
|
|
||||||
distribution: temurin
|
|
||||||
- name: Set up Java test repo configuration
|
|
||||||
run: |
|
|
||||||
mv * .github ../action/tests/multi-language-repo/
|
|
||||||
mv ../action/tests/multi-language-repo/.github/workflows .github
|
|
||||||
mv ../action/tests/java-repo/* .
|
|
||||||
|
|
||||||
- uses: ./../action/init
|
|
||||||
id: init
|
|
||||||
with:
|
|
||||||
build-mode: autobuild
|
|
||||||
db-location: ${{ runner.temp }}/customDbLocation
|
|
||||||
languages: java
|
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
||||||
|
|
||||||
- name: Check that indirect tracing is disabled
|
|
||||||
run: |
|
|
||||||
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
|
||||||
echo "Expected indirect tracing to be disabled, but the" \
|
|
||||||
"CODEQL_RUNNER environment variable is set."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- uses: ./../action/analyze
|
|
||||||
env:
|
|
||||||
CODEQL_ACTION_AUTOBUILD_BUILD_MODE_DIRECT_TRACING: true
|
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
|
||||||
@@ -27,8 +27,11 @@ 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:
|
autobuild-working-dir:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -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
|
||||||
42
.github/workflows/__build-mode-autobuild.yml
generated
vendored
42
.github/workflows/__build-mode-autobuild.yml
generated
vendored
@@ -21,12 +21,25 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs: {}
|
inputs:
|
||||||
|
java-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Java to install
|
||||||
|
required: false
|
||||||
|
default: '17'
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs:
|
||||||
|
java-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Java to install
|
||||||
|
required: false
|
||||||
|
default: '17'
|
||||||
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:
|
||||||
@@ -34,8 +47,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
|
version: linked
|
||||||
|
- os: windows-latest
|
||||||
|
version: linked
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: nightly-latest
|
||||||
|
- os: windows-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
|
||||||
@@ -51,6 +71,11 @@ jobs:
|
|||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
|
- name: Install Java
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
java-version: ${{ inputs.java-version || '17' }}
|
||||||
|
distribution: temurin
|
||||||
- name: Set up Java test repo configuration
|
- name: Set up Java test repo configuration
|
||||||
run: |
|
run: |
|
||||||
mv * .github ../action/tests/multi-language-repo/
|
mv * .github ../action/tests/multi-language-repo/
|
||||||
@@ -65,6 +90,11 @@ jobs:
|
|||||||
languages: java
|
languages: java
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
|
||||||
|
- name: Install yq
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: |
|
||||||
|
choco install yq -y
|
||||||
|
|
||||||
- name: Validate database build mode
|
- name: Validate database build mode
|
||||||
run: |
|
run: |
|
||||||
metadata_path="$RUNNER_TEMP/customDbLocation/java/codeql-database.yml"
|
metadata_path="$RUNNER_TEMP/customDbLocation/java/codeql-database.yml"
|
||||||
@@ -74,6 +104,14 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Check that indirect tracing is disabled
|
||||||
|
run: |
|
||||||
|
if [[ ! -z "${CODEQL_RUNNER}" ]]; then
|
||||||
|
echo "Expected indirect tracing to be disabled, but the" \
|
||||||
|
"CODEQL_RUNNER environment variable is set."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: ./../action/analyze
|
- uses: ./../action/analyze
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
|
|||||||
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
|
||||||
|
|||||||
86
.github/workflows/__bundle-from-toolcache.yml
generated
vendored
Normal file
86
.github/workflows/__bundle-from-toolcache.yml
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
# Warning: This file is generated automatically, and should not be modified.
|
||||||
|
# Instead, please modify the template in the pr-checks directory and run:
|
||||||
|
# pr-checks/sync.sh
|
||||||
|
# to regenerate this file.
|
||||||
|
|
||||||
|
name: 'PR Check - Bundle: From toolcache'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GO111MODULE: auto
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- releases/v*
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs: {}
|
||||||
|
workflow_call:
|
||||||
|
inputs: {}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
jobs:
|
||||||
|
bundle-from-toolcache:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: toolcache
|
||||||
|
name: 'Bundle: From toolcache'
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: read
|
||||||
|
timeout-minutes: 45
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Prepare test
|
||||||
|
id: prepare-test
|
||||||
|
uses: ./.github/actions/prepare-test
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.version }}
|
||||||
|
use-all-platform-bundle: 'false'
|
||||||
|
setup-kotlin: 'true'
|
||||||
|
- name: Install @actions/tool-cache
|
||||||
|
run: npm install @actions/tool-cache
|
||||||
|
- name: Check toolcache contains CodeQL
|
||||||
|
continue-on-error: true
|
||||||
|
uses: actions/github-script@v8
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const toolcache = require('@actions/tool-cache');
|
||||||
|
const allCodeqlVersions = toolcache.findAllVersions('CodeQL');
|
||||||
|
if (allCodeqlVersions.length === 0) {
|
||||||
|
throw new Error(`CodeQL could not be found in the toolcache`);
|
||||||
|
}
|
||||||
|
- id: init
|
||||||
|
uses: ./../action/init
|
||||||
|
with:
|
||||||
|
languages: javascript
|
||||||
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
- name: Check CodeQL is installed within the toolcache
|
||||||
|
uses: actions/github-script@v8
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const toolcache = require('@actions/tool-cache');
|
||||||
|
const allCodeqlVersions = toolcache.findAllVersions('CodeQL');
|
||||||
|
console.log(`Found CodeQL versions: ${allCodeqlVersions}`);
|
||||||
|
if (allCodeqlVersions.length === 0) {
|
||||||
|
throw new Error('CodeQL not found in toolcache');
|
||||||
|
}
|
||||||
|
env:
|
||||||
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
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
|
||||||
|
|||||||
14
.github/workflows/__config-export.yml
generated
vendored
14
.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:
|
||||||
@@ -35,17 +38,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +73,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
|
||||||
|
|||||||
14
.github/workflows/__diagnostics-export.yml
generated
vendored
14
.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:
|
||||||
@@ -35,17 +38,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +84,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/__test-proxy.yml → .github/workflows/__global-proxy.yml
generated
vendored
6
.github/workflows/__test-proxy.yml → .github/workflows/__global-proxy.yml
generated
vendored
@@ -27,8 +27,11 @@ 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:
|
global-proxy:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -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/__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
|
||||||
|
|||||||
6
.github/workflows/__go-tracing-autobuilder.yml
generated
vendored
6
.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:
|
||||||
@@ -80,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
|
||||||
@@ -96,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
|
||||||
|
|||||||
6
.github/workflows/__go-tracing-custom-build-steps.yml
generated
vendored
6
.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:
|
||||||
@@ -80,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
|
||||||
@@ -96,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
|
||||||
|
|||||||
6
.github/workflows/__go-tracing-legacy-workflow.yml
generated
vendored
6
.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:
|
||||||
@@ -80,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
|
||||||
@@ -96,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
|
||||||
|
|||||||
18
.github/workflows/__init-with-registries.yml
generated
vendored
18
.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:
|
||||||
@@ -35,23 +38,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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
|
||||||
@@ -114,8 +106,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify contents of qlconfig.yml
|
- name: Verify contents of qlconfig.yml
|
||||||
# yq is not available on windows
|
|
||||||
if: runner.os != 'Windows'
|
|
||||||
run: |
|
run: |
|
||||||
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
QLCONFIG_PATH=$RUNNER_TEMP/qlconfig.yml
|
||||||
cat $QLCONFIG_PATH | yq -e '.registries[] | select(.url == "https://ghcr.io/v2/") | select(.packages == "*/*")'
|
cat $QLCONFIG_PATH | yq -e '.registries[] | select(.url == "https://ghcr.io/v2/") | select(.packages == "*/*")'
|
||||||
|
|||||||
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
|
||||||
|
|||||||
16
.github/workflows/__test-local-codeql.yml → .github/workflows/__local-bundle.yml
generated
vendored
16
.github/workflows/__test-local-codeql.yml → .github/workflows/__local-bundle.yml
generated
vendored
@@ -37,15 +37,19 @@ 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:
|
local-bundle:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
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:
|
||||||
6
.github/workflows/__multi-language-autodetect.yml
generated
vendored
6
.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:
|
||||||
@@ -80,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
|
||||||
@@ -96,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
|
||||||
|
|||||||
20
.github/workflows/__packaging-codescanning-config-inputs-js.yml
generated
vendored
20
.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:
|
||||||
@@ -45,23 +48,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +63,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 +77,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
|
||||||
|
|||||||
20
.github/workflows/__packaging-config-inputs-js.yml
generated
vendored
20
.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:
|
||||||
@@ -45,23 +48,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +63,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 +77,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
|
||||||
|
|||||||
20
.github/workflows/__packaging-config-js.yml
generated
vendored
20
.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:
|
||||||
@@ -45,23 +48,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +63,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 +77,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
|
||||||
|
|||||||
20
.github/workflows/__packaging-inputs-js.yml
generated
vendored
20
.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:
|
||||||
@@ -45,23 +48,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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 +63,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 +77,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
|
||||||
|
|||||||
44
.github/workflows/__quality-queries.yml
generated
vendored
44
.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:
|
||||||
@@ -42,24 +45,6 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
analysis-kinds: code-scanning,code-quality
|
analysis-kinds: code-scanning,code-quality
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-scanning
|
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-quality
|
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-scanning,code-quality
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-scanning
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-quality
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
analysis-kinds: code-scanning,code-quality
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
analysis-kinds: code-scanning
|
analysis-kinds: code-scanning
|
||||||
@@ -69,25 +54,8 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
analysis-kinds: code-scanning,code-quality
|
analysis-kinds: code-scanning,code-quality
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
analysis-kinds: code-scanning
|
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
analysis-kinds: code-quality
|
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
analysis-kinds: code-scanning,code-quality
|
|
||||||
- os: windows-latest
|
|
||||||
version: nightly-latest
|
|
||||||
analysis-kinds: code-scanning
|
|
||||||
- os: windows-latest
|
|
||||||
version: nightly-latest
|
|
||||||
analysis-kinds: code-quality
|
|
||||||
- os: windows-latest
|
|
||||||
version: nightly-latest
|
|
||||||
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 +98,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 +106,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
|
||||||
|
|||||||
16
.github/workflows/__resolve-environment-action.yml
generated
vendored
16
.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:
|
||||||
@@ -35,23 +38,12 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
- os: windows-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@ab177d40ee5483edb974554986f56b33477e21d0 # v1.265.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
|
||||||
|
|||||||
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
|
||||||
|
|||||||
93
.github/workflows/__upload-quality-sarif.yml
generated
vendored
93
.github/workflows/__upload-quality-sarif.yml
generated
vendored
@@ -1,93 +0,0 @@
|
|||||||
# Warning: This file is generated automatically, and should not be modified.
|
|
||||||
# Instead, please modify the template in the pr-checks directory and run:
|
|
||||||
# pr-checks/sync.sh
|
|
||||||
# to regenerate this file.
|
|
||||||
|
|
||||||
name: 'PR Check - Upload-sarif: code quality endpoint'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GO111MODULE: auto
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- releases/v*
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
- ready_for_review
|
|
||||||
schedule:
|
|
||||||
- cron: '0 5 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
go-version:
|
|
||||||
type: string
|
|
||||||
description: The version of Go to install
|
|
||||||
required: false
|
|
||||||
default: '>=1.21.0'
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
jobs:
|
|
||||||
upload-quality-sarif:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
version: default
|
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
version: default
|
|
||||||
name: 'Upload-sarif: code quality endpoint'
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
security-events: read
|
|
||||||
timeout-minutes: 45
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- name: Check out repository
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
- name: Prepare test
|
|
||||||
id: prepare-test
|
|
||||||
uses: ./.github/actions/prepare-test
|
|
||||||
with:
|
|
||||||
version: ${{ matrix.version }}
|
|
||||||
use-all-platform-bundle: 'false'
|
|
||||||
setup-kotlin: 'true'
|
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
|
||||||
cache: false
|
|
||||||
- uses: ./../action/init
|
|
||||||
with:
|
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
|
||||||
languages: cpp,csharp,java,javascript,python
|
|
||||||
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{
|
|
||||||
github.sha }}
|
|
||||||
analysis-kinds: code-scanning,code-quality
|
|
||||||
- name: Build code
|
|
||||||
run: ./build.sh
|
|
||||||
# Generate some SARIF we can upload with the upload-sarif step
|
|
||||||
- uses: ./../action/analyze
|
|
||||||
with:
|
|
||||||
ref: refs/heads/main
|
|
||||||
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
|
||||||
upload: never
|
|
||||||
- uses: ./../action/upload-sarif
|
|
||||||
with:
|
|
||||||
ref: refs/heads/main
|
|
||||||
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
|
||||||
env:
|
|
||||||
CODEQL_ACTION_TEST_MODE: true
|
|
||||||
10
.github/workflows/__upload-ref-sha-input.yml
generated
vendored
10
.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:
|
||||||
@@ -45,11 +48,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: windows-latest
|
|
||||||
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 +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
|
||||||
|
|||||||
158
.github/workflows/__upload-sarif.yml
generated
vendored
Normal file
158
.github/workflows/__upload-sarif.yml
generated
vendored
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
# Warning: This file is generated automatically, and should not be modified.
|
||||||
|
# Instead, please modify the template in the pr-checks directory and run:
|
||||||
|
# pr-checks/sync.sh
|
||||||
|
# to regenerate this file.
|
||||||
|
|
||||||
|
name: PR Check - Test different uses of `upload-sarif`
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GO111MODULE: auto
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- releases/v*
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
go-version:
|
||||||
|
type: string
|
||||||
|
description: The version of Go to install
|
||||||
|
required: false
|
||||||
|
default: '>=1.21.0'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
concurrency:
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
jobs:
|
||||||
|
upload-sarif:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: default
|
||||||
|
analysis-kinds: code-scanning
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: default
|
||||||
|
analysis-kinds: code-quality
|
||||||
|
- os: ubuntu-latest
|
||||||
|
version: default
|
||||||
|
analysis-kinds: code-scanning,code-quality
|
||||||
|
name: Test different uses of `upload-sarif`
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: read
|
||||||
|
timeout-minutes: 45
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Prepare test
|
||||||
|
id: prepare-test
|
||||||
|
uses: ./.github/actions/prepare-test
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.version }}
|
||||||
|
use-all-platform-bundle: 'false'
|
||||||
|
setup-kotlin: 'true'
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version: ${{ inputs.go-version || '>=1.21.0' }}
|
||||||
|
cache: false
|
||||||
|
- uses: ./../action/init
|
||||||
|
with:
|
||||||
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
|
languages: csharp,java,javascript,python
|
||||||
|
analysis-kinds: ${{ matrix.analysis-kinds }}
|
||||||
|
- name: Build code
|
||||||
|
run: ./build.sh
|
||||||
|
# Generate some SARIF we can upload with the upload-sarif step
|
||||||
|
- uses: ./../action/analyze
|
||||||
|
with:
|
||||||
|
ref: refs/heads/main
|
||||||
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
upload: never
|
||||||
|
output: ${{ runner.temp }}/results
|
||||||
|
|
||||||
|
- name: |
|
||||||
|
Upload all SARIF files for `analysis-kinds: ${{ matrix.analysis-kinds }}`
|
||||||
|
uses: ./../action/upload-sarif
|
||||||
|
id: upload-sarif
|
||||||
|
with:
|
||||||
|
ref: refs/heads/main
|
||||||
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
sarif_file: ${{ runner.temp }}/results
|
||||||
|
category: |
|
||||||
|
${{ github.workflow }}:upload-sarif/analysis-kinds:${{ matrix.analysis-kinds }}/os:${{ matrix.os }}/version:${{ matrix.version }}/test:all-files/
|
||||||
|
- name: Fail for missing output from `upload-sarif` step for `code-scanning`
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning') && !(fromJSON(steps.upload-sarif.outputs.sarif-ids).code-scanning)
|
||||||
|
run: exit 1
|
||||||
|
- name: Fail for missing output from `upload-sarif` step for `code-quality`
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-quality') && !(fromJSON(steps.upload-sarif.outputs.sarif-ids).code-quality)
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
|
- name: Upload single SARIF file for Code Scanning
|
||||||
|
uses: ./../action/upload-sarif
|
||||||
|
id: upload-single-sarif-code-scanning
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning')
|
||||||
|
with:
|
||||||
|
ref: refs/heads/main
|
||||||
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
sarif_file: ${{ runner.temp }}/results/javascript.sarif
|
||||||
|
category: |
|
||||||
|
${{ github.workflow }}:upload-sarif/analysis-kinds:${{ matrix.analysis-kinds }}/os:${{ matrix.os }}/version:${{ matrix.version }}/test:single-code-scanning/
|
||||||
|
- name: Fail for missing output from `upload-single-sarif-code-scanning` step
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning') &&
|
||||||
|
!(fromJSON(steps.upload-single-sarif-code-scanning.outputs.sarif-ids).code-scanning)
|
||||||
|
run: exit 1
|
||||||
|
- name: Upload single SARIF file for Code Quality
|
||||||
|
uses: ./../action/upload-sarif
|
||||||
|
id: upload-single-sarif-code-quality
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-quality')
|
||||||
|
with:
|
||||||
|
ref: refs/heads/main
|
||||||
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
sarif_file: ${{ runner.temp }}/results/javascript.quality.sarif
|
||||||
|
category: |
|
||||||
|
${{ github.workflow }}:upload-sarif/analysis-kinds:${{ matrix.analysis-kinds }}/os:${{ matrix.os }}/version:${{ matrix.version }}/test:single-code-quality/
|
||||||
|
- name: Fail for missing output from `upload-single-sarif-code-quality` step
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-quality') &&
|
||||||
|
!(fromJSON(steps.upload-single-sarif-code-quality.outputs.sarif-ids).code-quality)
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
|
- name: Change SARIF file extension
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning')
|
||||||
|
run: mv ${{ runner.temp }}/results/javascript.sarif ${{ runner.temp }}/results/javascript.sarif.json
|
||||||
|
- name: Upload single non-`.sarif` file
|
||||||
|
uses: ./../action/upload-sarif
|
||||||
|
id: upload-single-non-sarif
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning')
|
||||||
|
with:
|
||||||
|
ref: refs/heads/main
|
||||||
|
sha: 5e235361806c361d4d3f8859e3c897658025a9a2
|
||||||
|
sarif_file: ${{ runner.temp }}/results/javascript.sarif.json
|
||||||
|
category: |
|
||||||
|
${{ github.workflow }}:upload-sarif/analysis-kinds:${{ matrix.analysis-kinds }}/os:${{ matrix.os }}/version:${{ matrix.version }}/test:non-sarif/
|
||||||
|
- name: Fail for missing output from `upload-single-non-sarif` step
|
||||||
|
if: contains(matrix.analysis-kinds, 'code-scanning') && !(fromJSON(steps.upload-single-non-sarif.outputs.sarif-ids).code-scanning)
|
||||||
|
run: exit 1
|
||||||
|
env:
|
||||||
|
CODEQL_ACTION_TEST_MODE: true
|
||||||
23
.github/workflows/__with-checkout-path.yml
generated
vendored
23
.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:
|
||||||
@@ -45,11 +48,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: windows-latest
|
|
||||||
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 +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
|
||||||
@@ -103,29 +103,30 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify SARIF after upload
|
- name: Verify SARIF after upload
|
||||||
run: |
|
run: |
|
||||||
|
PAYLOAD_FILE="$RUNNER_TEMP/payload-code-scanning.json"
|
||||||
EXPECTED_COMMIT_OID="474bbf07f9247ffe1856c6a0f94aeeb10e7afee6"
|
EXPECTED_COMMIT_OID="474bbf07f9247ffe1856c6a0f94aeeb10e7afee6"
|
||||||
EXPECTED_REF="v1.1.0"
|
EXPECTED_REF="v1.1.0"
|
||||||
EXPECTED_CHECKOUT_URI_SUFFIX="/x/y/z/some-path/tests/multi-language-repo"
|
EXPECTED_CHECKOUT_URI_SUFFIX="/x/y/z/some-path/tests/multi-language-repo"
|
||||||
|
|
||||||
ACTUAL_COMMIT_OID="$(cat "$RUNNER_TEMP/payload.json" | jq -r .commit_oid)"
|
ACTUAL_COMMIT_OID="$(cat "$PAYLOAD_FILE" | jq -r .commit_oid)"
|
||||||
ACTUAL_REF="$(cat "$RUNNER_TEMP/payload.json" | jq -r .ref)"
|
ACTUAL_REF="$(cat "$PAYLOAD_FILE" | jq -r .ref)"
|
||||||
ACTUAL_CHECKOUT_URI="$(cat "$RUNNER_TEMP/payload.json" | jq -r .checkout_uri)"
|
ACTUAL_CHECKOUT_URI="$(cat "$PAYLOAD_FILE" | jq -r .checkout_uri)"
|
||||||
|
|
||||||
if [[ "$EXPECTED_COMMIT_OID" != "$ACTUAL_COMMIT_OID" ]]; then
|
if [[ "$EXPECTED_COMMIT_OID" != "$ACTUAL_COMMIT_OID" ]]; then
|
||||||
echo "::error Invalid commit oid. Expected: $EXPECTED_COMMIT_OID Actual: $ACTUAL_COMMIT_OID"
|
echo "::error Invalid commit oid. Expected: $EXPECTED_COMMIT_OID Actual: $ACTUAL_COMMIT_OID"
|
||||||
echo "$RUNNER_TEMP/payload.json"
|
echo "$PAYLOAD_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$EXPECTED_REF" != "$ACTUAL_REF" ]]; then
|
if [[ "$EXPECTED_REF" != "$ACTUAL_REF" ]]; then
|
||||||
echo "::error Invalid ref. Expected: '$EXPECTED_REF' Actual: '$ACTUAL_REF'"
|
echo "::error Invalid ref. Expected: '$EXPECTED_REF' Actual: '$ACTUAL_REF'"
|
||||||
echo "$RUNNER_TEMP/payload.json"
|
echo "$PAYLOAD_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$ACTUAL_CHECKOUT_URI" != *$EXPECTED_CHECKOUT_URI_SUFFIX ]]; then
|
if [[ "$ACTUAL_CHECKOUT_URI" != *$EXPECTED_CHECKOUT_URI_SUFFIX ]]; then
|
||||||
echo "::error Invalid checkout URI suffix. Expected suffix: $EXPECTED_CHECKOUT_URI_SUFFIX Actual uri: $ACTUAL_CHECKOUT_URI"
|
echo "::error Invalid checkout URI suffix. Expected suffix: $EXPECTED_CHECKOUT_URI_SUFFIX Actual uri: $ACTUAL_CHECKOUT_URI"
|
||||||
echo "$RUNNER_TEMP/payload.json"
|
echo "$PAYLOAD_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
|||||||
3
.github/workflows/codeql.yml
vendored
3
.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
|
||||||
@@ -110,6 +112,7 @@ jobs:
|
|||||||
upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && 'always') || 'never' }}
|
upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && 'always') || 'never' }}
|
||||||
|
|
||||||
analyze-other:
|
analyze-other:
|
||||||
|
if: github.triggering_actor != 'dependabot[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
21
.github/workflows/codescanning-config-cli.yml
vendored
21
.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:
|
||||||
@@ -41,16 +42,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: linked
|
version: linked
|
||||||
- os: macos-latest
|
|
||||||
version: linked
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: default
|
version: default
|
||||||
- os: macos-latest
|
|
||||||
version: default
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
version: nightly-latest
|
version: nightly-latest
|
||||||
- os: macos-latest
|
|
||||||
version: nightly-latest
|
|
||||||
|
|
||||||
# Code-Scanning config not created because environment variable is not set
|
# Code-Scanning config not created because environment variable is not set
|
||||||
name: Code Scanning Configuration tests
|
name: Code Scanning Configuration tests
|
||||||
@@ -61,9 +56,9 @@ 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: 24
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -180,13 +175,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:
|
||||||
|
|||||||
5
.github/workflows/post-release-mergeback.yml
vendored
5
.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,13 +139,14 @@ 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 }}
|
||||||
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
|
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Create the GitHub release
|
- name: Create the GitHub release
|
||||||
|
if: steps.check.outputs.exists != 'true'
|
||||||
env:
|
env:
|
||||||
PARTIAL_CHANGELOG: "${{ runner.temp }}/partial_changelog.md"
|
PARTIAL_CHANGELOG: "${{ runner.temp }}/partial_changelog.md"
|
||||||
VERSION: "${{ steps.getVersion.outputs.version }}"
|
VERSION: "${{ steps.getVersion.outputs.version }}"
|
||||||
|
|||||||
25
.github/workflows/pr-checks.yml
vendored
25
.github/workflows/pr-checks.yml
vendored
@@ -15,10 +15,12 @@ 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:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
node-version: [20, 24]
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write # needed to upload ESLint results
|
security-events: write # needed to upload ESLint results
|
||||||
@@ -31,15 +33,15 @@ jobs:
|
|||||||
run: git config --global core.autocrlf false
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: ${{ matrix.node-version }}
|
||||||
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
|
||||||
|
|
||||||
@@ -54,24 +56,31 @@ jobs:
|
|||||||
run: .github/workflows/script/check-js.sh
|
run: .github/workflows/script/check-js.sh
|
||||||
|
|
||||||
- name: Verify PR checks up to date
|
- name: Verify PR checks up to date
|
||||||
|
if: always()
|
||||||
run: .github/workflows/script/verify-pr-checks.sh
|
run: .github/workflows/script/verify-pr-checks.sh
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
if: always()
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
|
- name: Run pr-checks tests
|
||||||
|
if: always()
|
||||||
|
working-directory: pr-checks
|
||||||
|
run: python -m unittest discover
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
if: matrix.os != 'windows-latest'
|
if: always() && matrix.os != 'windows-latest'
|
||||||
run: npm run lint-ci
|
run: npm run lint-ci
|
||||||
|
|
||||||
- name: Upload sarif
|
- name: Upload sarif
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v4
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest' && matrix.node-version == 24
|
||||||
with:
|
with:
|
||||||
sarif_file: eslint.sarif
|
sarif_file: eslint.sarif
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
5
.github/workflows/query-filters.yml
vendored
5
.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,9 +32,9 @@ 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: 24
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
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
|
||||||
|
|||||||
6
.github/workflows/rollback-release.yml
vendored
6
.github/workflows/rollback-release.yml
vendored
@@ -10,6 +10,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
# Only for dry-runs of changes to the workflow.
|
# Only for dry-runs of changes to the workflow.
|
||||||
push:
|
push:
|
||||||
|
# Don't run dry-run on release branches, to avoid an issue where the
|
||||||
|
# "new" tag determined by the "Prepare release" job already exists.
|
||||||
|
branches-ignore:
|
||||||
|
- releases/v*
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/rollback-release.yml
|
- .github/workflows/rollback-release.yml
|
||||||
- .github/actions/prepare-mergeback-branch/**
|
- .github/actions/prepare-mergeback-branch/**
|
||||||
@@ -133,7 +137,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 }}
|
||||||
|
|||||||
12
.github/workflows/script/check-js.sh
vendored
12
.github/workflows/script/check-js.sh
vendored
@@ -16,6 +16,18 @@ if [ ! -z "$(git status --porcelain)" ]; then
|
|||||||
# If we get a fail here then the PR needs attention
|
# If we get a fail here then the PR needs attention
|
||||||
>&2 echo "Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
|
>&2 echo "Failed: JavaScript files are not up to date. Run 'rm -rf lib && npm run-script build' to update"
|
||||||
git status
|
git status
|
||||||
|
|
||||||
|
echo "### Transpiled JS diff" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
||||||
|
git diff --output="$RUNNER_TEMP/js.diff"
|
||||||
|
cat "$RUNNER_TEMP/js.diff" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
# Reset bundled files to allow other checks to test for changes
|
||||||
|
git checkout lib
|
||||||
|
|
||||||
|
# Fail this check
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Success: JavaScript files are up to date"
|
echo "Success: JavaScript files are up to date"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
10
.github/workflows/script/verify-pr-checks.sh
vendored
10
.github/workflows/script/verify-pr-checks.sh
vendored
@@ -20,6 +20,14 @@ if [ ! -z "$(git status --porcelain)" ]; then
|
|||||||
git diff
|
git diff
|
||||||
git status
|
git status
|
||||||
>&2 echo "Failed: PR checks are not up to date. Run 'cd pr-checks && python3 sync.py' to update"
|
>&2 echo "Failed: PR checks are not up to date. Run 'cd pr-checks && python3 sync.py' to update"
|
||||||
|
|
||||||
|
echo "### Generated workflows diff" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
||||||
|
git diff --output="$RUNNER_TEMP/workflows.diff"
|
||||||
|
cat "$RUNNER_TEMP/workflows.diff" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Success: PR checks are up to date"
|
echo "Success: PR checks are up to date"
|
||||||
|
|||||||
3
.github/workflows/test-codeql-bundle-all.yml
vendored
3
.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
|
||||||
@@ -46,7 +47,7 @@ jobs:
|
|||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
# We manually exclude Swift from the languages list here, as it is not supported on Ubuntu
|
# We manually exclude Swift from the languages list here, as it is not supported on Ubuntu
|
||||||
languages: cpp,csharp,go,java,javascript,python,ruby
|
languages: cpp,csharp,go,java,javascript,python,ruby
|
||||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||||
- name: Build code
|
- name: Build code
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|||||||
4
.github/workflows/update-bundle.yml
vendored
4
.github/workflows/update-bundle.yml
vendored
@@ -41,9 +41,9 @@ 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: 24
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
99
.github/workflows/update-proxy-release.yml
vendored
99
.github/workflows/update-proxy-release.yml
vendored
@@ -1,99 +0,0 @@
|
|||||||
name: Update dependency proxy release assets
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
tag:
|
|
||||||
description: "The tag of CodeQL Bundle release that contains the proxy binaries as release assets"
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update:
|
|
||||||
name: Update code and create PR
|
|
||||||
timeout-minutes: 15
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write # needed to push the updated files
|
|
||||||
pull-requests: write # needed to create the PR
|
|
||||||
env:
|
|
||||||
RELEASE_TAG: ${{ inputs.tag }}
|
|
||||||
steps:
|
|
||||||
- name: Check release tag format
|
|
||||||
id: checks
|
|
||||||
run: |
|
|
||||||
if ! [[ $RELEASE_TAG =~ ^codeql-bundle-v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Invalid release tag: expected a CodeQL bundle tag in the 'codeql-bundle-vM.N.P' format."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "target_branch=dependency-proxy/$RELEASE_TAG" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Check that the release exists
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
run: |
|
|
||||||
(gh release view --repo "$GITHUB_REPOSITORY" --json "assets" "$RELEASE_TAG" && echo "Release found.") || exit 1
|
|
||||||
|
|
||||||
- name: Install Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # ensure we have all tags and can push commits
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- name: Update git config
|
|
||||||
run: |
|
|
||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
||||||
git config --global user.name "github-actions[bot]"
|
|
||||||
|
|
||||||
- name: Update release tag and version
|
|
||||||
run: |
|
|
||||||
NOW=$(date +"%Y%m%d%H%M%S") # only used to make sure we don't fetch stale binaries from the toolcache
|
|
||||||
sed -i "s|https://github.com/github/codeql-action/releases/download/codeql-bundle-v[0-9.]\+/|https://github.com/github/codeql-action/releases/download/$RELEASE_TAG/|g" ./src/start-proxy-action.ts
|
|
||||||
sed -i "s/\"v2.0.[0-9]\+\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts
|
|
||||||
|
|
||||||
- name: Compile TypeScript and commit changes
|
|
||||||
env:
|
|
||||||
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
|
||||||
run: |
|
|
||||||
set -exu
|
|
||||||
git checkout -b "$TARGET_BRANCH"
|
|
||||||
|
|
||||||
npm run build
|
|
||||||
git add ./src/start-proxy-action.ts
|
|
||||||
git add ./lib
|
|
||||||
git commit -m "Update release used by \`start-proxy\` action"
|
|
||||||
|
|
||||||
- name: Push changes and open PR
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
TARGET_BRANCH: ${{ steps.checks.outputs.target_branch }}
|
|
||||||
PR_FLAG: ${{ (github.event_name == 'workflow_dispatch' && '--draft') || '--dry-run' }}
|
|
||||||
run: |
|
|
||||||
set -exu
|
|
||||||
pr_title="Update release used by \`start-proxy\` to \`$RELEASE_TAG\`"
|
|
||||||
pr_body=$(cat << EOF
|
|
||||||
This PR updates the \`start-proxy\` action to use the private registry proxy binaries that
|
|
||||||
are attached as release assets to the \`$RELEASE_TAG\` release.
|
|
||||||
|
|
||||||
|
|
||||||
Please do the following before merging:
|
|
||||||
|
|
||||||
- [ ] Verify that the changes to the code are correct.
|
|
||||||
- [ ] Mark the PR as ready for review to trigger the CI.
|
|
||||||
EOF
|
|
||||||
)
|
|
||||||
|
|
||||||
git push origin "$TARGET_BRANCH"
|
|
||||||
gh pr create \
|
|
||||||
--head "$TARGET_BRANCH" \
|
|
||||||
--base "main" \
|
|
||||||
--title "${pr_title}" \
|
|
||||||
--body "${pr_body}" \
|
|
||||||
$PR_FLAG
|
|
||||||
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
|
||||||
|
|||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -8,6 +8,11 @@
|
|||||||
"build": true,
|
"build": true,
|
||||||
"lib": true,
|
"lib": true,
|
||||||
},
|
},
|
||||||
|
"search.exclude": {
|
||||||
|
"**/node_modules": true,
|
||||||
|
"build": true,
|
||||||
|
"lib": true,
|
||||||
|
},
|
||||||
// Installing a new Node package often triggers VS Code's git limit warnings as there is typically
|
// Installing a new Node package often triggers VS Code's git limit warnings as there is typically
|
||||||
// an intermediate stage where many files are modified. This setting suppresses these warnings.
|
// an intermediate stage where many files are modified. This setting suppresses these warnings.
|
||||||
"git.ignoreLimitWarning": true,
|
"git.ignoreLimitWarning": true,
|
||||||
|
|||||||
22
CHANGELOG.md
22
CHANGELOG.md
@@ -4,8 +4,30 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
|||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
|
No user facing changes.
|
||||||
|
|
||||||
|
## 4.30.8 - 10 Oct 2025
|
||||||
|
|
||||||
|
No user facing changes.
|
||||||
|
|
||||||
|
## 4.30.7 - 06 Oct 2025
|
||||||
|
|
||||||
|
- [v4+ only] The CodeQL Action now runs on Node.js v24. [#3169](https://github.com/github/codeql-action/pull/3169)
|
||||||
|
|
||||||
|
## 3.30.6 - 02 Oct 2025
|
||||||
|
|
||||||
|
- Update default CodeQL bundle version to 2.23.2. [#3168](https://github.com/github/codeql-action/pull/3168)
|
||||||
|
|
||||||
|
## 3.30.5 - 26 Sep 2025
|
||||||
|
|
||||||
|
- We fixed a bug that was introduced in `3.30.4` with `upload-sarif` which resulted in files without a `.sarif` extension not getting uploaded. [#3160](https://github.com/github/codeql-action/pull/3160)
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,14 @@ Please note that this project is released with a [Contributor Code of Conduct][c
|
|||||||
|
|
||||||
## Development and Testing
|
## Development and Testing
|
||||||
|
|
||||||
Before you start, ensure that you have a recent version of node (16 or higher) installed, along with a recent version of npm (9.2 or higher). You can see which version of node is used by the action in `init/action.yml`.
|
Before you start, ensure that you have a recent version of node (24 or higher) installed, along with a recent version of npm (9.2 or higher). You can see which version of node is used by the action in `init/action.yml`.
|
||||||
|
|
||||||
### Common tasks
|
### Common tasks
|
||||||
|
|
||||||
* Transpile the TypeScript to JavaScript: `npm run build`. Note that the JavaScript files are committed to git.
|
* Transpile the TypeScript to JavaScript: `npm run build`. Note that the JavaScript files are committed to git.
|
||||||
* Run tests: `npm run test`. You’ll need to ensure that the JavaScript files are up-to-date first by running the command above.
|
* Run tests: `npm run test`. You’ll need to ensure that the JavaScript files are up-to-date first by running the command above.
|
||||||
* Run the linter: `npm run lint`.
|
* Run the linter: `npm run lint`.
|
||||||
|
* Run tests for a specific path: `npm run ava -- ./src/filename.test.ts` or `npm run ava -- ./src/feature-flags/`
|
||||||
|
|
||||||
This project also includes configuration to run tests from VSCode (with support for breakpoints) - open the test file you wish to run and choose "Debug AVA test file" from the Run menu in the Run panel.
|
This project also includes configuration to run tests from VSCode (with support for breakpoints) - open the test file you wish to run and choose "Debug AVA test file" from the Run menu in the Run panel.
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ For compiled languages:
|
|||||||
|
|
||||||
The following versions of the CodeQL Action are currently supported:
|
The following versions of the CodeQL Action are currently supported:
|
||||||
|
|
||||||
- v3 (latest)
|
- v4 (latest)
|
||||||
|
- v3
|
||||||
|
|
||||||
## Supported versions of the CodeQL Bundle on GitHub Enterprise Server
|
## Supported versions of the CodeQL Bundle on GitHub Enterprise Server
|
||||||
|
|
||||||
|
|||||||
@@ -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."
|
||||||
@@ -92,6 +92,6 @@ outputs:
|
|||||||
sarif-id:
|
sarif-id:
|
||||||
description: The ID of the uploaded SARIF file.
|
description: The ID of the uploaded SARIF file.
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node24
|
||||||
main: "../lib/analyze-action.js"
|
main: "../lib/analyze-action.js"
|
||||||
post: "../lib/analyze-action-post.js"
|
post: "../lib/analyze-action-post.js"
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ inputs:
|
|||||||
$GITHUB_WORKSPACE as its working directory.
|
$GITHUB_WORKSPACE as its working directory.
|
||||||
required: false
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node24
|
||||||
main: '../lib/autobuild-action.js'
|
main: '../lib/autobuild-action.js'
|
||||||
|
|||||||
@@ -146,6 +146,12 @@ export default [
|
|||||||
"@typescript-eslint/prefer-regexp-exec": "off",
|
"@typescript-eslint/prefer-regexp-exec": "off",
|
||||||
"@typescript-eslint/require-await": "off",
|
"@typescript-eslint/require-await": "off",
|
||||||
"@typescript-eslint/restrict-template-expressions": "off",
|
"@typescript-eslint/restrict-template-expressions": "off",
|
||||||
|
"@typescript-eslint/no-unused-vars": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"argsIgnorePattern": "^_",
|
||||||
|
}
|
||||||
|
],
|
||||||
"func-style": "off",
|
"func-style": "off",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -162,6 +165,6 @@ outputs:
|
|||||||
codeql-version:
|
codeql-version:
|
||||||
description: The version of the CodeQL binary used for analysis
|
description: The version of the CodeQL binary used for analysis
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node24
|
||||||
main: '../lib/init-action.js'
|
main: '../lib/init-action.js'
|
||||||
post: '../lib/init-action-post.js'
|
post: '../lib/init-action-post.js'
|
||||||
|
|||||||
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}}
|
npm run ava {{filename}}
|
||||||
|
|
||||||
[doc("Refresh the .js build artefacts in the lib directory")]
|
[doc("Refresh the .js build artefacts in the lib directory")]
|
||||||
[confirm]
|
[confirm]
|
||||||
|
|||||||
244
lib/analyze-action-post.js
generated
244
lib/analyze-action-post.js
generated
@@ -24680,6 +24680,9 @@ var require_identifiers = __commonJS({
|
|||||||
"use strict";
|
"use strict";
|
||||||
var numeric = /^[0-9]+$/;
|
var numeric = /^[0-9]+$/;
|
||||||
var compareIdentifiers = (a, b) => {
|
var compareIdentifiers = (a, b) => {
|
||||||
|
if (typeof a === "number" && typeof b === "number") {
|
||||||
|
return a === b ? 0 : a < b ? -1 : 1;
|
||||||
|
}
|
||||||
const anum = numeric.test(a);
|
const anum = numeric.test(a);
|
||||||
const bnum = numeric.test(b);
|
const bnum = numeric.test(b);
|
||||||
if (anum && bnum) {
|
if (anum && bnum) {
|
||||||
@@ -24786,7 +24789,25 @@ var require_semver = __commonJS({
|
|||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
other = new _SemVer(other, this.options);
|
other = new _SemVer(other, this.options);
|
||||||
}
|
}
|
||||||
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
if (this.major < other.major) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.major > other.major) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.minor < other.minor) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.minor > other.minor) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.patch < other.patch) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.patch > other.patch) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
comparePre(other) {
|
comparePre(other) {
|
||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
@@ -25121,8 +25142,8 @@ var require_compare = __commonJS({
|
|||||||
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var SemVer = require_semver();
|
var SemVer = require_semver();
|
||||||
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
module2.exports = compare;
|
module2.exports = compare2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -25130,8 +25151,8 @@ var require_compare = __commonJS({
|
|||||||
var require_rcompare = __commonJS({
|
var require_rcompare = __commonJS({
|
||||||
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = (a, b, loose) => compare(b, a, loose);
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
||||||
module2.exports = rcompare;
|
module2.exports = rcompare;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25140,8 +25161,8 @@ var require_rcompare = __commonJS({
|
|||||||
var require_compare_loose = __commonJS({
|
var require_compare_loose = __commonJS({
|
||||||
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var compareLoose = (a, b) => compare(a, b, true);
|
var compareLoose = (a, b) => compare2(a, b, true);
|
||||||
module2.exports = compareLoose;
|
module2.exports = compareLoose;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25184,8 +25205,8 @@ var require_rsort = __commonJS({
|
|||||||
var require_gt = __commonJS({
|
var require_gt = __commonJS({
|
||||||
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
||||||
module2.exports = gt;
|
module2.exports = gt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25194,8 +25215,8 @@ var require_gt = __commonJS({
|
|||||||
var require_lt = __commonJS({
|
var require_lt = __commonJS({
|
||||||
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
||||||
module2.exports = lt;
|
module2.exports = lt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25204,8 +25225,8 @@ var require_lt = __commonJS({
|
|||||||
var require_eq = __commonJS({
|
var require_eq = __commonJS({
|
||||||
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
||||||
module2.exports = eq;
|
module2.exports = eq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25214,8 +25235,8 @@ var require_eq = __commonJS({
|
|||||||
var require_neq = __commonJS({
|
var require_neq = __commonJS({
|
||||||
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
||||||
module2.exports = neq;
|
module2.exports = neq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25224,8 +25245,8 @@ var require_neq = __commonJS({
|
|||||||
var require_gte = __commonJS({
|
var require_gte = __commonJS({
|
||||||
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gte5 = (a, b, loose) => compare(a, b, loose) >= 0;
|
var gte5 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
||||||
module2.exports = gte5;
|
module2.exports = gte5;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25234,8 +25255,8 @@ var require_gte = __commonJS({
|
|||||||
var require_lte = __commonJS({
|
var require_lte = __commonJS({
|
||||||
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
||||||
module2.exports = lte;
|
module2.exports = lte;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25547,6 +25568,7 @@ var require_range = __commonJS({
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var parseComparator = (comp, options) => {
|
var parseComparator = (comp, options) => {
|
||||||
|
comp = comp.replace(re[t.BUILD], "");
|
||||||
debug2("comp", comp, options);
|
debug2("comp", comp, options);
|
||||||
comp = replaceCarets(comp, options);
|
comp = replaceCarets(comp, options);
|
||||||
debug2("caret", comp);
|
debug2("caret", comp);
|
||||||
@@ -26131,12 +26153,12 @@ var require_simplify = __commonJS({
|
|||||||
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
module2.exports = (versions, range, options) => {
|
module2.exports = (versions, range, options) => {
|
||||||
const set2 = [];
|
const set2 = [];
|
||||||
let first = null;
|
let first = null;
|
||||||
let prev = null;
|
let prev = null;
|
||||||
const v = versions.sort((a, b) => compare(a, b, options));
|
const v = versions.sort((a, b) => compare2(a, b, options));
|
||||||
for (const version of v) {
|
for (const version of v) {
|
||||||
const included = satisfies2(version, range, options);
|
const included = satisfies2(version, range, options);
|
||||||
if (included) {
|
if (included) {
|
||||||
@@ -26184,7 +26206,7 @@ var require_subset = __commonJS({
|
|||||||
var Comparator = require_comparator();
|
var Comparator = require_comparator();
|
||||||
var { ANY } = Comparator;
|
var { ANY } = Comparator;
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var subset = (sub, dom, options = {}) => {
|
var subset = (sub, dom, options = {}) => {
|
||||||
if (sub === dom) {
|
if (sub === dom) {
|
||||||
return true;
|
return true;
|
||||||
@@ -26244,7 +26266,7 @@ var require_subset = __commonJS({
|
|||||||
}
|
}
|
||||||
let gtltComp;
|
let gtltComp;
|
||||||
if (gt && lt) {
|
if (gt && lt) {
|
||||||
gtltComp = compare(gt.semver, lt.semver, options);
|
gtltComp = compare2(gt.semver, lt.semver, options);
|
||||||
if (gtltComp > 0) {
|
if (gtltComp > 0) {
|
||||||
return null;
|
return null;
|
||||||
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
||||||
@@ -26324,14 +26346,14 @@ var require_subset = __commonJS({
|
|||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
||||||
};
|
};
|
||||||
var lowerLT = (a, b, options) => {
|
var lowerLT = (a, b, options) => {
|
||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
||||||
};
|
};
|
||||||
module2.exports = subset;
|
module2.exports = subset;
|
||||||
@@ -26355,7 +26377,7 @@ var require_semver2 = __commonJS({
|
|||||||
var minor = require_minor();
|
var minor = require_minor();
|
||||||
var patch = require_patch();
|
var patch = require_patch();
|
||||||
var prerelease = require_prerelease();
|
var prerelease = require_prerelease();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = require_rcompare();
|
var rcompare = require_rcompare();
|
||||||
var compareLoose = require_compare_loose();
|
var compareLoose = require_compare_loose();
|
||||||
var compareBuild = require_compare_build();
|
var compareBuild = require_compare_build();
|
||||||
@@ -26393,7 +26415,7 @@ var require_semver2 = __commonJS({
|
|||||||
minor,
|
minor,
|
||||||
patch,
|
patch,
|
||||||
prerelease,
|
prerelease,
|
||||||
compare,
|
compare: compare2,
|
||||||
rcompare,
|
rcompare,
|
||||||
compareLoose,
|
compareLoose,
|
||||||
compareBuild,
|
compareBuild,
|
||||||
@@ -26438,16 +26460,17 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.4",
|
version: "4.30.9",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
||||||
build: "npm run transpile && node build.mjs",
|
build: "./scripts/check-node-modules.sh && npm run transpile && node build.mjs",
|
||||||
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",
|
ava: "npm run transpile && ava --serial --verbose",
|
||||||
|
test: "npm run ava -- src/",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26486,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",
|
||||||
@@ -26472,6 +26495,7 @@ var require_package = __commonJS({
|
|||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/plugin-retry": "^6.0.0",
|
"@octokit/plugin-retry": "^6.0.0",
|
||||||
|
"@octokit/request-error": "^7.0.1",
|
||||||
"@schemastore/package": "0.0.10",
|
"@schemastore/package": "0.0.10",
|
||||||
archiver: "^7.0.1",
|
archiver: "^7.0.1",
|
||||||
"check-disk-space": "^3.4.0",
|
"check-disk-space": "^3.4.0",
|
||||||
@@ -26485,16 +26509,16 @@ var require_package = __commonJS({
|
|||||||
long: "^5.3.2",
|
long: "^5.3.2",
|
||||||
"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.3",
|
||||||
uuid: "^13.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.37.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 +26527,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.46.0",
|
||||||
"@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",
|
||||||
@@ -26516,7 +26540,7 @@ var require_package = __commonJS({
|
|||||||
glob: "^11.0.3",
|
glob: "^11.0.3",
|
||||||
nock: "^14.0.10",
|
nock: "^14.0.10",
|
||||||
sinon: "^21.0.0",
|
sinon: "^21.0.0",
|
||||||
typescript: "^5.9.2"
|
typescript: "^5.9.3"
|
||||||
},
|
},
|
||||||
overrides: {
|
overrides: {
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
@@ -28541,7 +28565,7 @@ var require_brace_expansion = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -30260,13 +30284,13 @@ var require_semver3 = __commonJS({
|
|||||||
function patch(a, loose) {
|
function patch(a, loose) {
|
||||||
return new SemVer(a, loose).patch;
|
return new SemVer(a, loose).patch;
|
||||||
}
|
}
|
||||||
exports2.compare = compare;
|
exports2.compare = compare2;
|
||||||
function compare(a, b, loose) {
|
function compare2(a, b, loose) {
|
||||||
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
}
|
}
|
||||||
exports2.compareLoose = compareLoose;
|
exports2.compareLoose = compareLoose;
|
||||||
function compareLoose(a, b) {
|
function compareLoose(a, b) {
|
||||||
return compare(a, b, true);
|
return compare2(a, b, true);
|
||||||
}
|
}
|
||||||
exports2.compareBuild = compareBuild;
|
exports2.compareBuild = compareBuild;
|
||||||
function compareBuild(a, b, loose) {
|
function compareBuild(a, b, loose) {
|
||||||
@@ -30276,7 +30300,7 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.rcompare = rcompare;
|
exports2.rcompare = rcompare;
|
||||||
function rcompare(a, b, loose) {
|
function rcompare(a, b, loose) {
|
||||||
return compare(b, a, loose);
|
return compare2(b, a, loose);
|
||||||
}
|
}
|
||||||
exports2.sort = sort;
|
exports2.sort = sort;
|
||||||
function sort(list, loose) {
|
function sort(list, loose) {
|
||||||
@@ -30292,27 +30316,27 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.gt = gt;
|
exports2.gt = gt;
|
||||||
function gt(a, b, loose) {
|
function gt(a, b, loose) {
|
||||||
return compare(a, b, loose) > 0;
|
return compare2(a, b, loose) > 0;
|
||||||
}
|
}
|
||||||
exports2.lt = lt;
|
exports2.lt = lt;
|
||||||
function lt(a, b, loose) {
|
function lt(a, b, loose) {
|
||||||
return compare(a, b, loose) < 0;
|
return compare2(a, b, loose) < 0;
|
||||||
}
|
}
|
||||||
exports2.eq = eq;
|
exports2.eq = eq;
|
||||||
function eq(a, b, loose) {
|
function eq(a, b, loose) {
|
||||||
return compare(a, b, loose) === 0;
|
return compare2(a, b, loose) === 0;
|
||||||
}
|
}
|
||||||
exports2.neq = neq;
|
exports2.neq = neq;
|
||||||
function neq(a, b, loose) {
|
function neq(a, b, loose) {
|
||||||
return compare(a, b, loose) !== 0;
|
return compare2(a, b, loose) !== 0;
|
||||||
}
|
}
|
||||||
exports2.gte = gte5;
|
exports2.gte = gte5;
|
||||||
function gte5(a, b, loose) {
|
function gte5(a, b, loose) {
|
||||||
return compare(a, b, loose) >= 0;
|
return compare2(a, b, loose) >= 0;
|
||||||
}
|
}
|
||||||
exports2.lte = lte;
|
exports2.lte = lte;
|
||||||
function lte(a, b, loose) {
|
function lte(a, b, loose) {
|
||||||
return compare(a, b, loose) <= 0;
|
return compare2(a, b, loose) <= 0;
|
||||||
}
|
}
|
||||||
exports2.cmp = cmp;
|
exports2.cmp = cmp;
|
||||||
function cmp(a, op, b, loose) {
|
function cmp(a, op, b, loose) {
|
||||||
@@ -67282,7 +67306,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 +72115,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 +72145,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 +72165,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 +72272,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 +72302,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 +72322,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 +73087,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 +73095,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 +73112,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 +73391,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 +73402,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 +73422,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 +73434,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 +94858,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 +94871,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 +95040,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 +95133,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 +95378,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 +95517,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;
|
||||||
}
|
}
|
||||||
@@ -95784,8 +95846,8 @@ var require_commonjs16 = __commonJS({
|
|||||||
if (rootPath === this.root.name) {
|
if (rootPath === this.root.name) {
|
||||||
return this.root;
|
return this.root;
|
||||||
}
|
}
|
||||||
for (const [compare, root] of Object.entries(this.roots)) {
|
for (const [compare2, root] of Object.entries(this.roots)) {
|
||||||
if (this.sameRoot(rootPath, compare)) {
|
if (this.sameRoot(rootPath, compare2)) {
|
||||||
return this.roots[rootPath] = root;
|
return this.roots[rootPath] = root;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95794,9 +95856,9 @@ var require_commonjs16 = __commonJS({
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
sameRoot(rootPath, compare = this.root.name) {
|
sameRoot(rootPath, compare2 = this.root.name) {
|
||||||
rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
|
rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
|
||||||
return rootPath === compare;
|
return rootPath === compare2;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.PathWin32 = PathWin32;
|
exports2.PathWin32 = PathWin32;
|
||||||
@@ -99815,7 +99877,7 @@ var require_b4a = __commonJS({
|
|||||||
function byteLength(string, encoding) {
|
function byteLength(string, encoding) {
|
||||||
return Buffer.byteLength(string, encoding);
|
return Buffer.byteLength(string, encoding);
|
||||||
}
|
}
|
||||||
function compare(a, b) {
|
function compare2(a, b) {
|
||||||
return Buffer.compare(a, b);
|
return Buffer.compare(a, b);
|
||||||
}
|
}
|
||||||
function concat(buffers, totalLength) {
|
function concat(buffers, totalLength) {
|
||||||
@@ -99916,7 +99978,7 @@ var require_b4a = __commonJS({
|
|||||||
allocUnsafe,
|
allocUnsafe,
|
||||||
allocUnsafeSlow,
|
allocUnsafeSlow,
|
||||||
byteLength,
|
byteLength,
|
||||||
compare,
|
compare: compare2,
|
||||||
concat,
|
concat,
|
||||||
copy,
|
copy,
|
||||||
equals,
|
equals,
|
||||||
@@ -103286,7 +103348,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 +103428,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 +103446,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 +117549,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 +117561,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 +117756,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,17 +117817,22 @@ 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
|
||||||
var featureConfig = {
|
var featureConfig = {
|
||||||
|
["allow_toolcache_input" /* AllowToolcacheInput */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_ALLOW_TOOLCACHE_INPUT",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
||||||
@@ -117914,6 +117989,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 +118035,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");
|
||||||
}
|
}
|
||||||
@@ -118625,7 +118699,7 @@ async function uploadCombinedSarifArtifacts(logger, gitHubVariant, codeQlVersion
|
|||||||
if (fs5.existsSync(baseTempDir)) {
|
if (fs5.existsSync(baseTempDir)) {
|
||||||
const outputDirs = fs5.readdirSync(baseTempDir);
|
const outputDirs = fs5.readdirSync(baseTempDir);
|
||||||
for (const outputDir of outputDirs) {
|
for (const outputDir of outputDirs) {
|
||||||
const sarifFiles = fs5.readdirSync(path5.resolve(baseTempDir, outputDir)).filter((f) => f.endsWith(".sarif"));
|
const sarifFiles = fs5.readdirSync(path5.resolve(baseTempDir, outputDir)).filter((f) => path5.extname(f) === ".sarif");
|
||||||
for (const sarifFile of sarifFiles) {
|
for (const sarifFile of sarifFiles) {
|
||||||
toUpload.push(path5.resolve(baseTempDir, outputDir, sarifFile));
|
toUpload.push(path5.resolve(baseTempDir, outputDir, sarifFile));
|
||||||
}
|
}
|
||||||
|
|||||||
526
lib/analyze-action.js
generated
526
lib/analyze-action.js
generated
File diff suppressed because it is too large
Load Diff
223
lib/autobuild-action.js
generated
223
lib/autobuild-action.js
generated
@@ -24680,6 +24680,9 @@ var require_identifiers = __commonJS({
|
|||||||
"use strict";
|
"use strict";
|
||||||
var numeric = /^[0-9]+$/;
|
var numeric = /^[0-9]+$/;
|
||||||
var compareIdentifiers = (a, b) => {
|
var compareIdentifiers = (a, b) => {
|
||||||
|
if (typeof a === "number" && typeof b === "number") {
|
||||||
|
return a === b ? 0 : a < b ? -1 : 1;
|
||||||
|
}
|
||||||
const anum = numeric.test(a);
|
const anum = numeric.test(a);
|
||||||
const bnum = numeric.test(b);
|
const bnum = numeric.test(b);
|
||||||
if (anum && bnum) {
|
if (anum && bnum) {
|
||||||
@@ -24786,7 +24789,25 @@ var require_semver = __commonJS({
|
|||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
other = new _SemVer(other, this.options);
|
other = new _SemVer(other, this.options);
|
||||||
}
|
}
|
||||||
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
if (this.major < other.major) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.major > other.major) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.minor < other.minor) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.minor > other.minor) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.patch < other.patch) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.patch > other.patch) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
comparePre(other) {
|
comparePre(other) {
|
||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
@@ -25121,8 +25142,8 @@ var require_compare = __commonJS({
|
|||||||
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var SemVer = require_semver();
|
var SemVer = require_semver();
|
||||||
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
module2.exports = compare;
|
module2.exports = compare2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -25130,8 +25151,8 @@ var require_compare = __commonJS({
|
|||||||
var require_rcompare = __commonJS({
|
var require_rcompare = __commonJS({
|
||||||
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = (a, b, loose) => compare(b, a, loose);
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
||||||
module2.exports = rcompare;
|
module2.exports = rcompare;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25140,8 +25161,8 @@ var require_rcompare = __commonJS({
|
|||||||
var require_compare_loose = __commonJS({
|
var require_compare_loose = __commonJS({
|
||||||
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var compareLoose = (a, b) => compare(a, b, true);
|
var compareLoose = (a, b) => compare2(a, b, true);
|
||||||
module2.exports = compareLoose;
|
module2.exports = compareLoose;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25184,8 +25205,8 @@ var require_rsort = __commonJS({
|
|||||||
var require_gt = __commonJS({
|
var require_gt = __commonJS({
|
||||||
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
||||||
module2.exports = gt;
|
module2.exports = gt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25194,8 +25215,8 @@ var require_gt = __commonJS({
|
|||||||
var require_lt = __commonJS({
|
var require_lt = __commonJS({
|
||||||
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
||||||
module2.exports = lt;
|
module2.exports = lt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25204,8 +25225,8 @@ var require_lt = __commonJS({
|
|||||||
var require_eq = __commonJS({
|
var require_eq = __commonJS({
|
||||||
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
||||||
module2.exports = eq;
|
module2.exports = eq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25214,8 +25235,8 @@ var require_eq = __commonJS({
|
|||||||
var require_neq = __commonJS({
|
var require_neq = __commonJS({
|
||||||
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
||||||
module2.exports = neq;
|
module2.exports = neq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25224,8 +25245,8 @@ var require_neq = __commonJS({
|
|||||||
var require_gte = __commonJS({
|
var require_gte = __commonJS({
|
||||||
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gte5 = (a, b, loose) => compare(a, b, loose) >= 0;
|
var gte5 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
||||||
module2.exports = gte5;
|
module2.exports = gte5;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25234,8 +25255,8 @@ var require_gte = __commonJS({
|
|||||||
var require_lte = __commonJS({
|
var require_lte = __commonJS({
|
||||||
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
||||||
module2.exports = lte;
|
module2.exports = lte;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25547,6 +25568,7 @@ var require_range = __commonJS({
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var parseComparator = (comp, options) => {
|
var parseComparator = (comp, options) => {
|
||||||
|
comp = comp.replace(re[t.BUILD], "");
|
||||||
debug3("comp", comp, options);
|
debug3("comp", comp, options);
|
||||||
comp = replaceCarets(comp, options);
|
comp = replaceCarets(comp, options);
|
||||||
debug3("caret", comp);
|
debug3("caret", comp);
|
||||||
@@ -26131,12 +26153,12 @@ var require_simplify = __commonJS({
|
|||||||
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
module2.exports = (versions, range, options) => {
|
module2.exports = (versions, range, options) => {
|
||||||
const set2 = [];
|
const set2 = [];
|
||||||
let first = null;
|
let first = null;
|
||||||
let prev = null;
|
let prev = null;
|
||||||
const v = versions.sort((a, b) => compare(a, b, options));
|
const v = versions.sort((a, b) => compare2(a, b, options));
|
||||||
for (const version of v) {
|
for (const version of v) {
|
||||||
const included = satisfies2(version, range, options);
|
const included = satisfies2(version, range, options);
|
||||||
if (included) {
|
if (included) {
|
||||||
@@ -26184,7 +26206,7 @@ var require_subset = __commonJS({
|
|||||||
var Comparator = require_comparator();
|
var Comparator = require_comparator();
|
||||||
var { ANY } = Comparator;
|
var { ANY } = Comparator;
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var subset = (sub, dom, options = {}) => {
|
var subset = (sub, dom, options = {}) => {
|
||||||
if (sub === dom) {
|
if (sub === dom) {
|
||||||
return true;
|
return true;
|
||||||
@@ -26244,7 +26266,7 @@ var require_subset = __commonJS({
|
|||||||
}
|
}
|
||||||
let gtltComp;
|
let gtltComp;
|
||||||
if (gt && lt) {
|
if (gt && lt) {
|
||||||
gtltComp = compare(gt.semver, lt.semver, options);
|
gtltComp = compare2(gt.semver, lt.semver, options);
|
||||||
if (gtltComp > 0) {
|
if (gtltComp > 0) {
|
||||||
return null;
|
return null;
|
||||||
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
||||||
@@ -26324,14 +26346,14 @@ var require_subset = __commonJS({
|
|||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
||||||
};
|
};
|
||||||
var lowerLT = (a, b, options) => {
|
var lowerLT = (a, b, options) => {
|
||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
||||||
};
|
};
|
||||||
module2.exports = subset;
|
module2.exports = subset;
|
||||||
@@ -26355,7 +26377,7 @@ var require_semver2 = __commonJS({
|
|||||||
var minor = require_minor();
|
var minor = require_minor();
|
||||||
var patch = require_patch();
|
var patch = require_patch();
|
||||||
var prerelease = require_prerelease();
|
var prerelease = require_prerelease();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = require_rcompare();
|
var rcompare = require_rcompare();
|
||||||
var compareLoose = require_compare_loose();
|
var compareLoose = require_compare_loose();
|
||||||
var compareBuild = require_compare_build();
|
var compareBuild = require_compare_build();
|
||||||
@@ -26393,7 +26415,7 @@ var require_semver2 = __commonJS({
|
|||||||
minor,
|
minor,
|
||||||
patch,
|
patch,
|
||||||
prerelease,
|
prerelease,
|
||||||
compare,
|
compare: compare2,
|
||||||
rcompare,
|
rcompare,
|
||||||
compareLoose,
|
compareLoose,
|
||||||
compareBuild,
|
compareBuild,
|
||||||
@@ -26438,16 +26460,17 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.4",
|
version: "4.30.9",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
||||||
build: "npm run transpile && node build.mjs",
|
build: "./scripts/check-node-modules.sh && npm run transpile && node build.mjs",
|
||||||
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",
|
ava: "npm run transpile && ava --serial --verbose",
|
||||||
|
test: "npm run ava -- src/",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26486,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",
|
||||||
@@ -26472,6 +26495,7 @@ var require_package = __commonJS({
|
|||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/plugin-retry": "^6.0.0",
|
"@octokit/plugin-retry": "^6.0.0",
|
||||||
|
"@octokit/request-error": "^7.0.1",
|
||||||
"@schemastore/package": "0.0.10",
|
"@schemastore/package": "0.0.10",
|
||||||
archiver: "^7.0.1",
|
archiver: "^7.0.1",
|
||||||
"check-disk-space": "^3.4.0",
|
"check-disk-space": "^3.4.0",
|
||||||
@@ -26485,16 +26509,16 @@ var require_package = __commonJS({
|
|||||||
long: "^5.3.2",
|
long: "^5.3.2",
|
||||||
"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.3",
|
||||||
uuid: "^13.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.37.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 +26527,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.46.0",
|
||||||
"@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",
|
||||||
@@ -26516,7 +26540,7 @@ var require_package = __commonJS({
|
|||||||
glob: "^11.0.3",
|
glob: "^11.0.3",
|
||||||
nock: "^14.0.10",
|
nock: "^14.0.10",
|
||||||
sinon: "^21.0.0",
|
sinon: "^21.0.0",
|
||||||
typescript: "^5.9.2"
|
typescript: "^5.9.3"
|
||||||
},
|
},
|
||||||
overrides: {
|
overrides: {
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
@@ -28541,7 +28565,7 @@ var require_brace_expansion = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -30260,13 +30284,13 @@ var require_semver3 = __commonJS({
|
|||||||
function patch(a, loose) {
|
function patch(a, loose) {
|
||||||
return new SemVer(a, loose).patch;
|
return new SemVer(a, loose).patch;
|
||||||
}
|
}
|
||||||
exports2.compare = compare;
|
exports2.compare = compare2;
|
||||||
function compare(a, b, loose) {
|
function compare2(a, b, loose) {
|
||||||
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
}
|
}
|
||||||
exports2.compareLoose = compareLoose;
|
exports2.compareLoose = compareLoose;
|
||||||
function compareLoose(a, b) {
|
function compareLoose(a, b) {
|
||||||
return compare(a, b, true);
|
return compare2(a, b, true);
|
||||||
}
|
}
|
||||||
exports2.compareBuild = compareBuild;
|
exports2.compareBuild = compareBuild;
|
||||||
function compareBuild(a, b, loose) {
|
function compareBuild(a, b, loose) {
|
||||||
@@ -30276,7 +30300,7 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.rcompare = rcompare;
|
exports2.rcompare = rcompare;
|
||||||
function rcompare(a, b, loose) {
|
function rcompare(a, b, loose) {
|
||||||
return compare(b, a, loose);
|
return compare2(b, a, loose);
|
||||||
}
|
}
|
||||||
exports2.sort = sort;
|
exports2.sort = sort;
|
||||||
function sort(list, loose) {
|
function sort(list, loose) {
|
||||||
@@ -30292,27 +30316,27 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.gt = gt;
|
exports2.gt = gt;
|
||||||
function gt(a, b, loose) {
|
function gt(a, b, loose) {
|
||||||
return compare(a, b, loose) > 0;
|
return compare2(a, b, loose) > 0;
|
||||||
}
|
}
|
||||||
exports2.lt = lt;
|
exports2.lt = lt;
|
||||||
function lt(a, b, loose) {
|
function lt(a, b, loose) {
|
||||||
return compare(a, b, loose) < 0;
|
return compare2(a, b, loose) < 0;
|
||||||
}
|
}
|
||||||
exports2.eq = eq;
|
exports2.eq = eq;
|
||||||
function eq(a, b, loose) {
|
function eq(a, b, loose) {
|
||||||
return compare(a, b, loose) === 0;
|
return compare2(a, b, loose) === 0;
|
||||||
}
|
}
|
||||||
exports2.neq = neq;
|
exports2.neq = neq;
|
||||||
function neq(a, b, loose) {
|
function neq(a, b, loose) {
|
||||||
return compare(a, b, loose) !== 0;
|
return compare2(a, b, loose) !== 0;
|
||||||
}
|
}
|
||||||
exports2.gte = gte5;
|
exports2.gte = gte5;
|
||||||
function gte5(a, b, loose) {
|
function gte5(a, b, loose) {
|
||||||
return compare(a, b, loose) >= 0;
|
return compare2(a, b, loose) >= 0;
|
||||||
}
|
}
|
||||||
exports2.lte = lte;
|
exports2.lte = lte;
|
||||||
function lte(a, b, loose) {
|
function lte(a, b, loose) {
|
||||||
return compare(a, b, loose) <= 0;
|
return compare2(a, b, loose) <= 0;
|
||||||
}
|
}
|
||||||
exports2.cmp = cmp;
|
exports2.cmp = cmp;
|
||||||
function cmp(a, op, b, loose) {
|
function cmp(a, op, b, loose) {
|
||||||
@@ -67282,7 +67306,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 +72115,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 +72145,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 +72165,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 +72272,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 +72302,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 +72322,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 +73087,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 +73095,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 +73112,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 +73391,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 +73402,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 +73422,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 +73434,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 +78291,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 +78303,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.2";
|
||||||
var cliVersion = "2.23.0";
|
var cliVersion = "2.23.2";
|
||||||
|
|
||||||
// src/overlay-database-utils.ts
|
// src/overlay-database-utils.ts
|
||||||
var fs2 = __toESM(require("fs"));
|
var fs2 = __toESM(require("fs"));
|
||||||
@@ -78426,7 +78496,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 +78557,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];
|
||||||
}
|
}
|
||||||
@@ -78496,6 +78566,11 @@ function isSupportedToolsFeature(versionInfo, feature) {
|
|||||||
var DEFAULT_VERSION_FEATURE_FLAG_PREFIX = "default_codeql_version_";
|
var DEFAULT_VERSION_FEATURE_FLAG_PREFIX = "default_codeql_version_";
|
||||||
var DEFAULT_VERSION_FEATURE_FLAG_SUFFIX = "_enabled";
|
var DEFAULT_VERSION_FEATURE_FLAG_SUFFIX = "_enabled";
|
||||||
var featureConfig = {
|
var featureConfig = {
|
||||||
|
["allow_toolcache_input" /* AllowToolcacheInput */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_ALLOW_TOOLCACHE_INPUT",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
||||||
@@ -78652,6 +78727,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 +78850,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 +79037,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");
|
||||||
}
|
}
|
||||||
@@ -79766,7 +79840,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
action_ref: actionRef,
|
action_ref: actionRef,
|
||||||
action_started_at: actionStartedAt.toISOString(),
|
action_started_at: actionStartedAt.toISOString(),
|
||||||
action_version: getActionVersion(),
|
action_version: getActionVersion(),
|
||||||
analysis_kinds: config?.analysisKinds.join(","),
|
analysis_kinds: config?.analysisKinds?.join(","),
|
||||||
analysis_key,
|
analysis_key,
|
||||||
build_mode: config?.buildMode,
|
build_mode: config?.buildMode,
|
||||||
commit_oid: commitOid,
|
commit_oid: commitOid,
|
||||||
@@ -79789,7 +79863,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
||||||
}
|
}
|
||||||
if (config) {
|
if (config) {
|
||||||
statusReport.languages = config.languages.join(",");
|
statusReport.languages = config.languages?.join(",");
|
||||||
}
|
}
|
||||||
if (diskInfo) {
|
if (diskInfo) {
|
||||||
statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes;
|
statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes;
|
||||||
@@ -79826,6 +79900,9 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
logger.warning(
|
logger.warning(
|
||||||
`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`
|
`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`
|
||||||
);
|
);
|
||||||
|
if (isInTestMode()) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"bundleVersion": "codeql-bundle-v2.23.0",
|
"bundleVersion": "codeql-bundle-v2.23.2",
|
||||||
"cliVersion": "2.23.0",
|
"cliVersion": "2.23.2",
|
||||||
"priorBundleVersion": "codeql-bundle-v2.22.4",
|
"priorBundleVersion": "codeql-bundle-v2.23.1",
|
||||||
"priorCliVersion": "2.22.4"
|
"priorCliVersion": "2.23.1"
|
||||||
}
|
}
|
||||||
|
|||||||
581
lib/init-action-post.js
generated
581
lib/init-action-post.js
generated
File diff suppressed because it is too large
Load Diff
1605
lib/init-action.js
generated
1605
lib/init-action.js
generated
File diff suppressed because it is too large
Load Diff
217
lib/resolve-environment-action.js
generated
217
lib/resolve-environment-action.js
generated
@@ -24680,6 +24680,9 @@ var require_identifiers = __commonJS({
|
|||||||
"use strict";
|
"use strict";
|
||||||
var numeric = /^[0-9]+$/;
|
var numeric = /^[0-9]+$/;
|
||||||
var compareIdentifiers = (a, b) => {
|
var compareIdentifiers = (a, b) => {
|
||||||
|
if (typeof a === "number" && typeof b === "number") {
|
||||||
|
return a === b ? 0 : a < b ? -1 : 1;
|
||||||
|
}
|
||||||
const anum = numeric.test(a);
|
const anum = numeric.test(a);
|
||||||
const bnum = numeric.test(b);
|
const bnum = numeric.test(b);
|
||||||
if (anum && bnum) {
|
if (anum && bnum) {
|
||||||
@@ -24786,7 +24789,25 @@ var require_semver = __commonJS({
|
|||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
other = new _SemVer(other, this.options);
|
other = new _SemVer(other, this.options);
|
||||||
}
|
}
|
||||||
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
if (this.major < other.major) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.major > other.major) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.minor < other.minor) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.minor > other.minor) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.patch < other.patch) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.patch > other.patch) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
comparePre(other) {
|
comparePre(other) {
|
||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
@@ -25121,8 +25142,8 @@ var require_compare = __commonJS({
|
|||||||
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var SemVer = require_semver();
|
var SemVer = require_semver();
|
||||||
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
module2.exports = compare;
|
module2.exports = compare2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -25130,8 +25151,8 @@ var require_compare = __commonJS({
|
|||||||
var require_rcompare = __commonJS({
|
var require_rcompare = __commonJS({
|
||||||
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = (a, b, loose) => compare(b, a, loose);
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
||||||
module2.exports = rcompare;
|
module2.exports = rcompare;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25140,8 +25161,8 @@ var require_rcompare = __commonJS({
|
|||||||
var require_compare_loose = __commonJS({
|
var require_compare_loose = __commonJS({
|
||||||
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var compareLoose = (a, b) => compare(a, b, true);
|
var compareLoose = (a, b) => compare2(a, b, true);
|
||||||
module2.exports = compareLoose;
|
module2.exports = compareLoose;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25184,8 +25205,8 @@ var require_rsort = __commonJS({
|
|||||||
var require_gt = __commonJS({
|
var require_gt = __commonJS({
|
||||||
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
||||||
module2.exports = gt;
|
module2.exports = gt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25194,8 +25215,8 @@ var require_gt = __commonJS({
|
|||||||
var require_lt = __commonJS({
|
var require_lt = __commonJS({
|
||||||
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
||||||
module2.exports = lt;
|
module2.exports = lt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25204,8 +25225,8 @@ var require_lt = __commonJS({
|
|||||||
var require_eq = __commonJS({
|
var require_eq = __commonJS({
|
||||||
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
||||||
module2.exports = eq;
|
module2.exports = eq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25214,8 +25235,8 @@ var require_eq = __commonJS({
|
|||||||
var require_neq = __commonJS({
|
var require_neq = __commonJS({
|
||||||
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
||||||
module2.exports = neq;
|
module2.exports = neq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25224,8 +25245,8 @@ var require_neq = __commonJS({
|
|||||||
var require_gte = __commonJS({
|
var require_gte = __commonJS({
|
||||||
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gte5 = (a, b, loose) => compare(a, b, loose) >= 0;
|
var gte5 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
||||||
module2.exports = gte5;
|
module2.exports = gte5;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25234,8 +25255,8 @@ var require_gte = __commonJS({
|
|||||||
var require_lte = __commonJS({
|
var require_lte = __commonJS({
|
||||||
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
||||||
module2.exports = lte;
|
module2.exports = lte;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25547,6 +25568,7 @@ var require_range = __commonJS({
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var parseComparator = (comp, options) => {
|
var parseComparator = (comp, options) => {
|
||||||
|
comp = comp.replace(re[t.BUILD], "");
|
||||||
debug3("comp", comp, options);
|
debug3("comp", comp, options);
|
||||||
comp = replaceCarets(comp, options);
|
comp = replaceCarets(comp, options);
|
||||||
debug3("caret", comp);
|
debug3("caret", comp);
|
||||||
@@ -26131,12 +26153,12 @@ var require_simplify = __commonJS({
|
|||||||
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
module2.exports = (versions, range, options) => {
|
module2.exports = (versions, range, options) => {
|
||||||
const set2 = [];
|
const set2 = [];
|
||||||
let first = null;
|
let first = null;
|
||||||
let prev = null;
|
let prev = null;
|
||||||
const v = versions.sort((a, b) => compare(a, b, options));
|
const v = versions.sort((a, b) => compare2(a, b, options));
|
||||||
for (const version of v) {
|
for (const version of v) {
|
||||||
const included = satisfies2(version, range, options);
|
const included = satisfies2(version, range, options);
|
||||||
if (included) {
|
if (included) {
|
||||||
@@ -26184,7 +26206,7 @@ var require_subset = __commonJS({
|
|||||||
var Comparator = require_comparator();
|
var Comparator = require_comparator();
|
||||||
var { ANY } = Comparator;
|
var { ANY } = Comparator;
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var subset = (sub, dom, options = {}) => {
|
var subset = (sub, dom, options = {}) => {
|
||||||
if (sub === dom) {
|
if (sub === dom) {
|
||||||
return true;
|
return true;
|
||||||
@@ -26244,7 +26266,7 @@ var require_subset = __commonJS({
|
|||||||
}
|
}
|
||||||
let gtltComp;
|
let gtltComp;
|
||||||
if (gt && lt) {
|
if (gt && lt) {
|
||||||
gtltComp = compare(gt.semver, lt.semver, options);
|
gtltComp = compare2(gt.semver, lt.semver, options);
|
||||||
if (gtltComp > 0) {
|
if (gtltComp > 0) {
|
||||||
return null;
|
return null;
|
||||||
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
||||||
@@ -26324,14 +26346,14 @@ var require_subset = __commonJS({
|
|||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
||||||
};
|
};
|
||||||
var lowerLT = (a, b, options) => {
|
var lowerLT = (a, b, options) => {
|
||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
||||||
};
|
};
|
||||||
module2.exports = subset;
|
module2.exports = subset;
|
||||||
@@ -26355,7 +26377,7 @@ var require_semver2 = __commonJS({
|
|||||||
var minor = require_minor();
|
var minor = require_minor();
|
||||||
var patch = require_patch();
|
var patch = require_patch();
|
||||||
var prerelease = require_prerelease();
|
var prerelease = require_prerelease();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = require_rcompare();
|
var rcompare = require_rcompare();
|
||||||
var compareLoose = require_compare_loose();
|
var compareLoose = require_compare_loose();
|
||||||
var compareBuild = require_compare_build();
|
var compareBuild = require_compare_build();
|
||||||
@@ -26393,7 +26415,7 @@ var require_semver2 = __commonJS({
|
|||||||
minor,
|
minor,
|
||||||
patch,
|
patch,
|
||||||
prerelease,
|
prerelease,
|
||||||
compare,
|
compare: compare2,
|
||||||
rcompare,
|
rcompare,
|
||||||
compareLoose,
|
compareLoose,
|
||||||
compareBuild,
|
compareBuild,
|
||||||
@@ -26438,16 +26460,17 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.4",
|
version: "4.30.9",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
||||||
build: "npm run transpile && node build.mjs",
|
build: "./scripts/check-node-modules.sh && npm run transpile && node build.mjs",
|
||||||
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",
|
ava: "npm run transpile && ava --serial --verbose",
|
||||||
|
test: "npm run ava -- src/",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26486,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",
|
||||||
@@ -26472,6 +26495,7 @@ var require_package = __commonJS({
|
|||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/plugin-retry": "^6.0.0",
|
"@octokit/plugin-retry": "^6.0.0",
|
||||||
|
"@octokit/request-error": "^7.0.1",
|
||||||
"@schemastore/package": "0.0.10",
|
"@schemastore/package": "0.0.10",
|
||||||
archiver: "^7.0.1",
|
archiver: "^7.0.1",
|
||||||
"check-disk-space": "^3.4.0",
|
"check-disk-space": "^3.4.0",
|
||||||
@@ -26485,16 +26509,16 @@ var require_package = __commonJS({
|
|||||||
long: "^5.3.2",
|
long: "^5.3.2",
|
||||||
"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.3",
|
||||||
uuid: "^13.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.37.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 +26527,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.46.0",
|
||||||
"@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",
|
||||||
@@ -26516,7 +26540,7 @@ var require_package = __commonJS({
|
|||||||
glob: "^11.0.3",
|
glob: "^11.0.3",
|
||||||
nock: "^14.0.10",
|
nock: "^14.0.10",
|
||||||
sinon: "^21.0.0",
|
sinon: "^21.0.0",
|
||||||
typescript: "^5.9.2"
|
typescript: "^5.9.3"
|
||||||
},
|
},
|
||||||
overrides: {
|
overrides: {
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
@@ -28541,7 +28565,7 @@ var require_brace_expansion = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -30260,13 +30284,13 @@ var require_semver3 = __commonJS({
|
|||||||
function patch(a, loose) {
|
function patch(a, loose) {
|
||||||
return new SemVer(a, loose).patch;
|
return new SemVer(a, loose).patch;
|
||||||
}
|
}
|
||||||
exports2.compare = compare;
|
exports2.compare = compare2;
|
||||||
function compare(a, b, loose) {
|
function compare2(a, b, loose) {
|
||||||
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
}
|
}
|
||||||
exports2.compareLoose = compareLoose;
|
exports2.compareLoose = compareLoose;
|
||||||
function compareLoose(a, b) {
|
function compareLoose(a, b) {
|
||||||
return compare(a, b, true);
|
return compare2(a, b, true);
|
||||||
}
|
}
|
||||||
exports2.compareBuild = compareBuild;
|
exports2.compareBuild = compareBuild;
|
||||||
function compareBuild(a, b, loose) {
|
function compareBuild(a, b, loose) {
|
||||||
@@ -30276,7 +30300,7 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.rcompare = rcompare;
|
exports2.rcompare = rcompare;
|
||||||
function rcompare(a, b, loose) {
|
function rcompare(a, b, loose) {
|
||||||
return compare(b, a, loose);
|
return compare2(b, a, loose);
|
||||||
}
|
}
|
||||||
exports2.sort = sort;
|
exports2.sort = sort;
|
||||||
function sort(list, loose) {
|
function sort(list, loose) {
|
||||||
@@ -30292,27 +30316,27 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.gt = gt;
|
exports2.gt = gt;
|
||||||
function gt(a, b, loose) {
|
function gt(a, b, loose) {
|
||||||
return compare(a, b, loose) > 0;
|
return compare2(a, b, loose) > 0;
|
||||||
}
|
}
|
||||||
exports2.lt = lt;
|
exports2.lt = lt;
|
||||||
function lt(a, b, loose) {
|
function lt(a, b, loose) {
|
||||||
return compare(a, b, loose) < 0;
|
return compare2(a, b, loose) < 0;
|
||||||
}
|
}
|
||||||
exports2.eq = eq;
|
exports2.eq = eq;
|
||||||
function eq(a, b, loose) {
|
function eq(a, b, loose) {
|
||||||
return compare(a, b, loose) === 0;
|
return compare2(a, b, loose) === 0;
|
||||||
}
|
}
|
||||||
exports2.neq = neq;
|
exports2.neq = neq;
|
||||||
function neq(a, b, loose) {
|
function neq(a, b, loose) {
|
||||||
return compare(a, b, loose) !== 0;
|
return compare2(a, b, loose) !== 0;
|
||||||
}
|
}
|
||||||
exports2.gte = gte5;
|
exports2.gte = gte5;
|
||||||
function gte5(a, b, loose) {
|
function gte5(a, b, loose) {
|
||||||
return compare(a, b, loose) >= 0;
|
return compare2(a, b, loose) >= 0;
|
||||||
}
|
}
|
||||||
exports2.lte = lte;
|
exports2.lte = lte;
|
||||||
function lte(a, b, loose) {
|
function lte(a, b, loose) {
|
||||||
return compare(a, b, loose) <= 0;
|
return compare2(a, b, loose) <= 0;
|
||||||
}
|
}
|
||||||
exports2.cmp = cmp;
|
exports2.cmp = cmp;
|
||||||
function cmp(a, op, b, loose) {
|
function cmp(a, op, b, loose) {
|
||||||
@@ -67282,7 +67306,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 +72115,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 +72145,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 +72165,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 +72272,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 +72302,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 +72322,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 +73087,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 +73095,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 +73112,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 +73391,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 +73402,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 +73422,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 +73434,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 +78290,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 +78302,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 +78489,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,13 +78550,18 @@ 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];
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/feature-flags.ts
|
// src/feature-flags.ts
|
||||||
var featureConfig = {
|
var featureConfig = {
|
||||||
|
["allow_toolcache_input" /* AllowToolcacheInput */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_ALLOW_TOOLCACHE_INPUT",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
||||||
@@ -78643,6 +78718,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 +78764,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");
|
||||||
}
|
}
|
||||||
@@ -79393,7 +79467,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
action_ref: actionRef,
|
action_ref: actionRef,
|
||||||
action_started_at: actionStartedAt.toISOString(),
|
action_started_at: actionStartedAt.toISOString(),
|
||||||
action_version: getActionVersion(),
|
action_version: getActionVersion(),
|
||||||
analysis_kinds: config?.analysisKinds.join(","),
|
analysis_kinds: config?.analysisKinds?.join(","),
|
||||||
analysis_key,
|
analysis_key,
|
||||||
build_mode: config?.buildMode,
|
build_mode: config?.buildMode,
|
||||||
commit_oid: commitOid,
|
commit_oid: commitOid,
|
||||||
@@ -79416,7 +79490,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
||||||
}
|
}
|
||||||
if (config) {
|
if (config) {
|
||||||
statusReport.languages = config.languages.join(",");
|
statusReport.languages = config.languages?.join(",");
|
||||||
}
|
}
|
||||||
if (diskInfo) {
|
if (diskInfo) {
|
||||||
statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes;
|
statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes;
|
||||||
@@ -79453,6 +79527,9 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||||||
logger.warning(
|
logger.warning(
|
||||||
`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`
|
`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`
|
||||||
);
|
);
|
||||||
|
if (isInTestMode()) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
return void 0;
|
return void 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
240
lib/start-proxy-action-post.js
generated
240
lib/start-proxy-action-post.js
generated
@@ -24680,6 +24680,9 @@ var require_identifiers = __commonJS({
|
|||||||
"use strict";
|
"use strict";
|
||||||
var numeric = /^[0-9]+$/;
|
var numeric = /^[0-9]+$/;
|
||||||
var compareIdentifiers = (a, b) => {
|
var compareIdentifiers = (a, b) => {
|
||||||
|
if (typeof a === "number" && typeof b === "number") {
|
||||||
|
return a === b ? 0 : a < b ? -1 : 1;
|
||||||
|
}
|
||||||
const anum = numeric.test(a);
|
const anum = numeric.test(a);
|
||||||
const bnum = numeric.test(b);
|
const bnum = numeric.test(b);
|
||||||
if (anum && bnum) {
|
if (anum && bnum) {
|
||||||
@@ -24786,7 +24789,25 @@ var require_semver = __commonJS({
|
|||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
other = new _SemVer(other, this.options);
|
other = new _SemVer(other, this.options);
|
||||||
}
|
}
|
||||||
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
if (this.major < other.major) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.major > other.major) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.minor < other.minor) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.minor > other.minor) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (this.patch < other.patch) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (this.patch > other.patch) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
comparePre(other) {
|
comparePre(other) {
|
||||||
if (!(other instanceof _SemVer)) {
|
if (!(other instanceof _SemVer)) {
|
||||||
@@ -25121,8 +25142,8 @@ var require_compare = __commonJS({
|
|||||||
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
"node_modules/semver/functions/compare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var SemVer = require_semver();
|
var SemVer = require_semver();
|
||||||
var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
module2.exports = compare;
|
module2.exports = compare2;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -25130,8 +25151,8 @@ var require_compare = __commonJS({
|
|||||||
var require_rcompare = __commonJS({
|
var require_rcompare = __commonJS({
|
||||||
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
"node_modules/semver/functions/rcompare.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = (a, b, loose) => compare(b, a, loose);
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
||||||
module2.exports = rcompare;
|
module2.exports = rcompare;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25140,8 +25161,8 @@ var require_rcompare = __commonJS({
|
|||||||
var require_compare_loose = __commonJS({
|
var require_compare_loose = __commonJS({
|
||||||
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
"node_modules/semver/functions/compare-loose.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var compareLoose = (a, b) => compare(a, b, true);
|
var compareLoose = (a, b) => compare2(a, b, true);
|
||||||
module2.exports = compareLoose;
|
module2.exports = compareLoose;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25184,8 +25205,8 @@ var require_rsort = __commonJS({
|
|||||||
var require_gt = __commonJS({
|
var require_gt = __commonJS({
|
||||||
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
"node_modules/semver/functions/gt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gt = (a, b, loose) => compare(a, b, loose) > 0;
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
||||||
module2.exports = gt;
|
module2.exports = gt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25194,8 +25215,8 @@ var require_gt = __commonJS({
|
|||||||
var require_lt = __commonJS({
|
var require_lt = __commonJS({
|
||||||
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
"node_modules/semver/functions/lt.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lt = (a, b, loose) => compare(a, b, loose) < 0;
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
||||||
module2.exports = lt;
|
module2.exports = lt;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25204,8 +25225,8 @@ var require_lt = __commonJS({
|
|||||||
var require_eq = __commonJS({
|
var require_eq = __commonJS({
|
||||||
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
"node_modules/semver/functions/eq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var eq = (a, b, loose) => compare(a, b, loose) === 0;
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
||||||
module2.exports = eq;
|
module2.exports = eq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25214,8 +25235,8 @@ var require_eq = __commonJS({
|
|||||||
var require_neq = __commonJS({
|
var require_neq = __commonJS({
|
||||||
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
"node_modules/semver/functions/neq.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
||||||
module2.exports = neq;
|
module2.exports = neq;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25224,8 +25245,8 @@ var require_neq = __commonJS({
|
|||||||
var require_gte = __commonJS({
|
var require_gte = __commonJS({
|
||||||
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
"node_modules/semver/functions/gte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var gte5 = (a, b, loose) => compare(a, b, loose) >= 0;
|
var gte5 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
||||||
module2.exports = gte5;
|
module2.exports = gte5;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25234,8 +25255,8 @@ var require_gte = __commonJS({
|
|||||||
var require_lte = __commonJS({
|
var require_lte = __commonJS({
|
||||||
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
"node_modules/semver/functions/lte.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
||||||
module2.exports = lte;
|
module2.exports = lte;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -25547,6 +25568,7 @@ var require_range = __commonJS({
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
var parseComparator = (comp, options) => {
|
var parseComparator = (comp, options) => {
|
||||||
|
comp = comp.replace(re[t.BUILD], "");
|
||||||
debug2("comp", comp, options);
|
debug2("comp", comp, options);
|
||||||
comp = replaceCarets(comp, options);
|
comp = replaceCarets(comp, options);
|
||||||
debug2("caret", comp);
|
debug2("caret", comp);
|
||||||
@@ -26131,12 +26153,12 @@ var require_simplify = __commonJS({
|
|||||||
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
"node_modules/semver/ranges/simplify.js"(exports2, module2) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
module2.exports = (versions, range, options) => {
|
module2.exports = (versions, range, options) => {
|
||||||
const set2 = [];
|
const set2 = [];
|
||||||
let first = null;
|
let first = null;
|
||||||
let prev = null;
|
let prev = null;
|
||||||
const v = versions.sort((a, b) => compare(a, b, options));
|
const v = versions.sort((a, b) => compare2(a, b, options));
|
||||||
for (const version of v) {
|
for (const version of v) {
|
||||||
const included = satisfies2(version, range, options);
|
const included = satisfies2(version, range, options);
|
||||||
if (included) {
|
if (included) {
|
||||||
@@ -26184,7 +26206,7 @@ var require_subset = __commonJS({
|
|||||||
var Comparator = require_comparator();
|
var Comparator = require_comparator();
|
||||||
var { ANY } = Comparator;
|
var { ANY } = Comparator;
|
||||||
var satisfies2 = require_satisfies();
|
var satisfies2 = require_satisfies();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var subset = (sub, dom, options = {}) => {
|
var subset = (sub, dom, options = {}) => {
|
||||||
if (sub === dom) {
|
if (sub === dom) {
|
||||||
return true;
|
return true;
|
||||||
@@ -26244,7 +26266,7 @@ var require_subset = __commonJS({
|
|||||||
}
|
}
|
||||||
let gtltComp;
|
let gtltComp;
|
||||||
if (gt && lt) {
|
if (gt && lt) {
|
||||||
gtltComp = compare(gt.semver, lt.semver, options);
|
gtltComp = compare2(gt.semver, lt.semver, options);
|
||||||
if (gtltComp > 0) {
|
if (gtltComp > 0) {
|
||||||
return null;
|
return null;
|
||||||
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
||||||
@@ -26324,14 +26346,14 @@ var require_subset = __commonJS({
|
|||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
||||||
};
|
};
|
||||||
var lowerLT = (a, b, options) => {
|
var lowerLT = (a, b, options) => {
|
||||||
if (!a) {
|
if (!a) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
const comp = compare(a.semver, b.semver, options);
|
const comp = compare2(a.semver, b.semver, options);
|
||||||
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
||||||
};
|
};
|
||||||
module2.exports = subset;
|
module2.exports = subset;
|
||||||
@@ -26355,7 +26377,7 @@ var require_semver2 = __commonJS({
|
|||||||
var minor = require_minor();
|
var minor = require_minor();
|
||||||
var patch = require_patch();
|
var patch = require_patch();
|
||||||
var prerelease = require_prerelease();
|
var prerelease = require_prerelease();
|
||||||
var compare = require_compare();
|
var compare2 = require_compare();
|
||||||
var rcompare = require_rcompare();
|
var rcompare = require_rcompare();
|
||||||
var compareLoose = require_compare_loose();
|
var compareLoose = require_compare_loose();
|
||||||
var compareBuild = require_compare_build();
|
var compareBuild = require_compare_build();
|
||||||
@@ -26393,7 +26415,7 @@ var require_semver2 = __commonJS({
|
|||||||
minor,
|
minor,
|
||||||
patch,
|
patch,
|
||||||
prerelease,
|
prerelease,
|
||||||
compare,
|
compare: compare2,
|
||||||
rcompare,
|
rcompare,
|
||||||
compareLoose,
|
compareLoose,
|
||||||
compareBuild,
|
compareBuild,
|
||||||
@@ -26438,16 +26460,17 @@ var require_package = __commonJS({
|
|||||||
"package.json"(exports2, module2) {
|
"package.json"(exports2, module2) {
|
||||||
module2.exports = {
|
module2.exports = {
|
||||||
name: "codeql",
|
name: "codeql",
|
||||||
version: "3.30.4",
|
version: "4.30.9",
|
||||||
private: true,
|
private: true,
|
||||||
description: "CodeQL action",
|
description: "CodeQL action",
|
||||||
scripts: {
|
scripts: {
|
||||||
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
|
||||||
build: "npm run transpile && node build.mjs",
|
build: "./scripts/check-node-modules.sh && npm run transpile && node build.mjs",
|
||||||
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",
|
ava: "npm run transpile && ava --serial --verbose",
|
||||||
|
test: "npm run ava -- src/",
|
||||||
"test-debug": "npm run test -- --timeout=20m",
|
"test-debug": "npm run test -- --timeout=20m",
|
||||||
transpile: "tsc --build --verbose"
|
transpile: "tsc --build --verbose"
|
||||||
},
|
},
|
||||||
@@ -26463,7 +26486,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",
|
||||||
@@ -26472,6 +26495,7 @@ var require_package = __commonJS({
|
|||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/plugin-retry": "^6.0.0",
|
"@octokit/plugin-retry": "^6.0.0",
|
||||||
|
"@octokit/request-error": "^7.0.1",
|
||||||
"@schemastore/package": "0.0.10",
|
"@schemastore/package": "0.0.10",
|
||||||
archiver: "^7.0.1",
|
archiver: "^7.0.1",
|
||||||
"check-disk-space": "^3.4.0",
|
"check-disk-space": "^3.4.0",
|
||||||
@@ -26485,16 +26509,16 @@ var require_package = __commonJS({
|
|||||||
long: "^5.3.2",
|
long: "^5.3.2",
|
||||||
"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.3",
|
||||||
uuid: "^13.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.37.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 +26527,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.46.0",
|
||||||
"@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",
|
||||||
@@ -26516,7 +26540,7 @@ var require_package = __commonJS({
|
|||||||
glob: "^11.0.3",
|
glob: "^11.0.3",
|
||||||
nock: "^14.0.10",
|
nock: "^14.0.10",
|
||||||
sinon: "^21.0.0",
|
sinon: "^21.0.0",
|
||||||
typescript: "^5.9.2"
|
typescript: "^5.9.3"
|
||||||
},
|
},
|
||||||
overrides: {
|
overrides: {
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
@@ -28541,7 +28565,7 @@ var require_brace_expansion = __commonJS({
|
|||||||
var isSequence = isNumericSequence || isAlphaSequence;
|
var isSequence = isNumericSequence || isAlphaSequence;
|
||||||
var isOptions = m.body.indexOf(",") >= 0;
|
var isOptions = m.body.indexOf(",") >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str2 = m.pre + "{" + m.body + escClose + m.post;
|
str2 = m.pre + "{" + m.body + escClose + m.post;
|
||||||
return expand(str2);
|
return expand(str2);
|
||||||
}
|
}
|
||||||
@@ -30260,13 +30284,13 @@ var require_semver3 = __commonJS({
|
|||||||
function patch(a, loose) {
|
function patch(a, loose) {
|
||||||
return new SemVer(a, loose).patch;
|
return new SemVer(a, loose).patch;
|
||||||
}
|
}
|
||||||
exports2.compare = compare;
|
exports2.compare = compare2;
|
||||||
function compare(a, b, loose) {
|
function compare2(a, b, loose) {
|
||||||
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
return new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||||
}
|
}
|
||||||
exports2.compareLoose = compareLoose;
|
exports2.compareLoose = compareLoose;
|
||||||
function compareLoose(a, b) {
|
function compareLoose(a, b) {
|
||||||
return compare(a, b, true);
|
return compare2(a, b, true);
|
||||||
}
|
}
|
||||||
exports2.compareBuild = compareBuild;
|
exports2.compareBuild = compareBuild;
|
||||||
function compareBuild(a, b, loose) {
|
function compareBuild(a, b, loose) {
|
||||||
@@ -30276,7 +30300,7 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.rcompare = rcompare;
|
exports2.rcompare = rcompare;
|
||||||
function rcompare(a, b, loose) {
|
function rcompare(a, b, loose) {
|
||||||
return compare(b, a, loose);
|
return compare2(b, a, loose);
|
||||||
}
|
}
|
||||||
exports2.sort = sort;
|
exports2.sort = sort;
|
||||||
function sort(list, loose) {
|
function sort(list, loose) {
|
||||||
@@ -30292,27 +30316,27 @@ var require_semver3 = __commonJS({
|
|||||||
}
|
}
|
||||||
exports2.gt = gt;
|
exports2.gt = gt;
|
||||||
function gt(a, b, loose) {
|
function gt(a, b, loose) {
|
||||||
return compare(a, b, loose) > 0;
|
return compare2(a, b, loose) > 0;
|
||||||
}
|
}
|
||||||
exports2.lt = lt;
|
exports2.lt = lt;
|
||||||
function lt(a, b, loose) {
|
function lt(a, b, loose) {
|
||||||
return compare(a, b, loose) < 0;
|
return compare2(a, b, loose) < 0;
|
||||||
}
|
}
|
||||||
exports2.eq = eq;
|
exports2.eq = eq;
|
||||||
function eq(a, b, loose) {
|
function eq(a, b, loose) {
|
||||||
return compare(a, b, loose) === 0;
|
return compare2(a, b, loose) === 0;
|
||||||
}
|
}
|
||||||
exports2.neq = neq;
|
exports2.neq = neq;
|
||||||
function neq(a, b, loose) {
|
function neq(a, b, loose) {
|
||||||
return compare(a, b, loose) !== 0;
|
return compare2(a, b, loose) !== 0;
|
||||||
}
|
}
|
||||||
exports2.gte = gte5;
|
exports2.gte = gte5;
|
||||||
function gte5(a, b, loose) {
|
function gte5(a, b, loose) {
|
||||||
return compare(a, b, loose) >= 0;
|
return compare2(a, b, loose) >= 0;
|
||||||
}
|
}
|
||||||
exports2.lte = lte;
|
exports2.lte = lte;
|
||||||
function lte(a, b, loose) {
|
function lte(a, b, loose) {
|
||||||
return compare(a, b, loose) <= 0;
|
return compare2(a, b, loose) <= 0;
|
||||||
}
|
}
|
||||||
exports2.cmp = cmp;
|
exports2.cmp = cmp;
|
||||||
function cmp(a, op, b, loose) {
|
function cmp(a, op, b, loose) {
|
||||||
@@ -67282,7 +67306,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 +72115,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 +72145,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 +72165,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 +72272,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 +72302,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 +72322,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 +73087,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 +73095,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 +73112,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 +73391,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 +73402,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 +73422,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 +73434,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 +93518,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 +93531,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 +93700,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 +93793,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 +94038,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 +94177,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;
|
||||||
}
|
}
|
||||||
@@ -94444,8 +94506,8 @@ var require_commonjs16 = __commonJS({
|
|||||||
if (rootPath === this.root.name) {
|
if (rootPath === this.root.name) {
|
||||||
return this.root;
|
return this.root;
|
||||||
}
|
}
|
||||||
for (const [compare, root] of Object.entries(this.roots)) {
|
for (const [compare2, root] of Object.entries(this.roots)) {
|
||||||
if (this.sameRoot(rootPath, compare)) {
|
if (this.sameRoot(rootPath, compare2)) {
|
||||||
return this.roots[rootPath] = root;
|
return this.roots[rootPath] = root;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94454,9 +94516,9 @@ var require_commonjs16 = __commonJS({
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
sameRoot(rootPath, compare = this.root.name) {
|
sameRoot(rootPath, compare2 = this.root.name) {
|
||||||
rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
|
rootPath = rootPath.toUpperCase().replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\");
|
||||||
return rootPath === compare;
|
return rootPath === compare2;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
exports2.PathWin32 = PathWin32;
|
exports2.PathWin32 = PathWin32;
|
||||||
@@ -98475,7 +98537,7 @@ var require_b4a = __commonJS({
|
|||||||
function byteLength(string, encoding) {
|
function byteLength(string, encoding) {
|
||||||
return Buffer.byteLength(string, encoding);
|
return Buffer.byteLength(string, encoding);
|
||||||
}
|
}
|
||||||
function compare(a, b) {
|
function compare2(a, b) {
|
||||||
return Buffer.compare(a, b);
|
return Buffer.compare(a, b);
|
||||||
}
|
}
|
||||||
function concat(buffers, totalLength) {
|
function concat(buffers, totalLength) {
|
||||||
@@ -98576,7 +98638,7 @@ var require_b4a = __commonJS({
|
|||||||
allocUnsafe,
|
allocUnsafe,
|
||||||
allocUnsafeSlow,
|
allocUnsafeSlow,
|
||||||
byteLength,
|
byteLength,
|
||||||
compare,
|
compare: compare2,
|
||||||
concat,
|
concat,
|
||||||
copy,
|
copy,
|
||||||
equals,
|
equals,
|
||||||
@@ -101946,7 +102008,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 +102088,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 +102106,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 +117189,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 +117201,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,15 +117228,20 @@ 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 = {
|
||||||
|
["allow_toolcache_input" /* AllowToolcacheInput */]: {
|
||||||
|
defaultValue: false,
|
||||||
|
envVar: "CODEQL_ACTION_ALLOW_TOOLCACHE_INPUT",
|
||||||
|
minimumVersion: void 0
|
||||||
|
},
|
||||||
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
["cleanup_trap_caches" /* CleanupTrapCaches */]: {
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
envVar: "CODEQL_ACTION_CLEANUP_TRAP_CACHES",
|
||||||
@@ -117323,6 +117398,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 +117444,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");
|
||||||
}
|
}
|
||||||
|
|||||||
47640
lib/start-proxy-action.js
generated
47640
lib/start-proxy-action.js
generated
File diff suppressed because it is too large
Load Diff
580
lib/upload-lib.js
generated
580
lib/upload-lib.js
generated
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user