Use new approach for documenting CodeQL on Ubuntu.

This commit is contained in:
Chris Gavin
2020-09-20 09:29:43 +01:00
parent 3243c81039
commit 49dc2ce2fd
4 changed files with 10 additions and 6 deletions

View File

@@ -5,7 +5,6 @@
################################################################################
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/document.sh
# Retrieve the name of the CodeQL bundle preferred by the Action (in the format codeql-bundle-YYYYMMDD).
codeql_bundle_name="$(curl -sSL https://raw.githubusercontent.com/github/codeql-action/main/src/defaults.json | jq -r .bundleVersion)"
@@ -24,7 +23,3 @@ touch "$extraction_directory/pinned-version"
# Test that the tool has been extracted successfully.
"$AGENT_TOOLSDIRECTORY/CodeQL/$codeql_bundle_version/x64/codeql/codeql" version
# Document the version installed.
version="$("$AGENT_TOOLSDIRECTORY/CodeQL/$codeql_bundle_version/x64/codeql/codeql" version --quiet)"
DocumentInstalledItem "CodeQL Action Bundle ($version)"