Skip to content

Commit 89e3fb4

Browse files
authored
Wrap CodeQL version summary in collapsible details (#249)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 8ae3773 commit 89e3fb4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/scripts/build-codeql-lib-versions-table.sh‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ is_lib_language() {
138138
return 1
139139
}
140140

141-
echo "## CodeQL standard library & query pack versions"
141+
echo "<details>"
142+
echo "<summary>CodeQL standard library & query pack versions</summary>"
143+
echo "<p>"
142144
echo
143145
echo "Pinned CodeQL CLI/library version ([\`.codeqlversion\`](https://github.com/${REPO}/blob/${REPO_SHA}/.codeqlversion)): [\`v${CODEQL_VERSION}\`](https://github.com/github/codeql-cli-binaries/releases/tag/v${CODEQL_VERSION})"
144146
echo
@@ -209,6 +211,9 @@ for lang in "${LANGUAGES[@]}"; do
209211
done
210212
done
211213

214+
echo "</p>"
215+
echo "</details>"
216+
212217
if [ "$MISMATCH" -eq 1 ]; then
213218
echo "::warning::One or more CodeQL standard library/query pack versions are out of sync with CLI v${CODEQL_VERSION}. Run 'codeql pack upgrade <lang>/<pack>' for the affected language/pack directory(ies)." >&2
214219
fi

0 commit comments

Comments
 (0)