Skip to content

Commit 2f11c17

Browse files
authored
Merge pull request #3175 from github/mbg/setup/toolcache
Support requesting latest version from toolcache with `tools: toolcache`
2 parents 5431b6a + 0ba4970 commit 2f11c17

16 files changed

+955
-412
lines changed

.github/actions/prepare-test/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Prepare test"
22
description: Performs some preparation to run tests
33
inputs:
44
version:
5-
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
5+
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'toolcache', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
66
required: true
77
use-all-platform-bundle:
88
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
@@ -41,6 +41,9 @@ runs:
4141
elif [[ "$VERSION" == "linked" ]]; then
4242
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
4343
exit 0
44+
elif [[ "$VERSION" == "toolcache" ]]; then
45+
echo "tools-url=toolcache" >> "$GITHUB_OUTPUT"
46+
exit 0
4447
elif [[ "$VERSION" == "default" ]]; then
4548
echo "tools-url=" >> "$GITHUB_OUTPUT"
4649
exit 0

.github/workflows/__bundle-from-toolcache.yml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action-post.js

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)