mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Touch a file required to indicate to the toolcache that CodeQL is fully set up.
This commit is contained in:
@@ -21,5 +21,8 @@ tar -xzf "/tmp/codeql-bundle.tar.gz" -C "$extraction_directory"
|
|||||||
# Touch a special file that indicates to the CodeQL Action that this bundle was baked-in to the hosted runner images.
|
# Touch a special file that indicates to the CodeQL Action that this bundle was baked-in to the hosted runner images.
|
||||||
touch "$extraction_directory/pinned-version"
|
touch "$extraction_directory/pinned-version"
|
||||||
|
|
||||||
|
# Touch a file to indicate to the toolcache that setting up CodeQL is complete.
|
||||||
|
touch "$extraction_directory.complete"
|
||||||
|
|
||||||
# Test that the tool has been extracted successfully.
|
# Test that the tool has been extracted successfully.
|
||||||
"$AGENT_TOOLSDIRECTORY/CodeQL/$codeql_bundle_version/x64/codeql/codeql" version
|
"$AGENT_TOOLSDIRECTORY/CodeQL/$codeql_bundle_version/x64/codeql/codeql" version
|
||||||
|
|||||||
@@ -21,5 +21,8 @@ Extract-7Zip -Path $UnGzipedCodeQLBundlePath -DestinationPath $ExtractionDirecto
|
|||||||
# Touch a special file that indicates to the CodeQL Action that this bundle was baked-in to the hosted runner images.
|
# Touch a special file that indicates to the CodeQL Action that this bundle was baked-in to the hosted runner images.
|
||||||
New-Item -ItemType file (Join-Path $ExtractionDirectory -ChildPath "pinned-version")
|
New-Item -ItemType file (Join-Path $ExtractionDirectory -ChildPath "pinned-version")
|
||||||
|
|
||||||
|
# Touch a file to indicate to the toolcache that setting up CodeQL is complete.
|
||||||
|
New-Item -ItemType file "$ExtractionDirectory.complete"
|
||||||
|
|
||||||
# Test that the tool has been extracted successfully.
|
# Test that the tool has been extracted successfully.
|
||||||
Invoke-PesterTests -TestFile "Tools" -TestName "CodeQLBundle"
|
Invoke-PesterTests -TestFile "Tools" -TestName "CodeQLBundle"
|
||||||
|
|||||||
Reference in New Issue
Block a user