Skip to content

Commit 5197764

Browse files
committed
Add minimal logging
1 parent 2c9f102 commit 5197764

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

create-bundle/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ runs:
2929
- uses: actions/setup-python@v4
3030
with:
3131
python-version: "3.11"
32-
- run: python -m pip install https://github.com/rvermeulen/codeql-bundle/releases/download/v0.2.0/codeql_bundle-0.2.0-py3-none-any.whl
32+
- run: |
33+
echo "::group::Installing dependencies"
34+
echo "Installing codeql-bundle v0.2.0"
35+
python -m pip install https://github.com/rvermeulen/codeql-bundle/releases/download/v0.2.0/codeql_bundle-0.2.0-py3-none-any.whl
36+
echo "::endgroup::"
3337
shell: bash
3438
- run: create-bundle/create-bundle.sh
3539
id: create-bundle

create-bundle/create-bundle.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
set -e
44

5+
echo "::group::Creating CodeQL bundle."
6+
echo "Using bundle at ${BUNDLE_PATH}."
7+
echo "Using workspace at ${WORKSPACE}."
58
output_path=${RUNNER_TEMP}/codeql-bundle.tar.gz
69
opts=()
710
opts+=("--bundle" "${BUNDLE_PATH}")
811
opts+=("--workspace" "${WORKSPACE}")
912
if [[ -n ${PLATFORMS} ]]; then
13+
echo "Targetting the platforms ${PLATFORMS}."
1014
for platform in $(echo $PLATFORMS | tr ',' ' '); do
1115
opts+=("--platform" "${platform}")
1216
done
@@ -16,9 +20,12 @@ if [[ -n ${PLATFORMS} ]]; then
1620
fi
1721
opts+=("--output" "${output_path}")
1822
if [[ -n ${DEFAULT_CODE_SCANNING_CONFIG} ]]; then
23+
echo "Using code scanning config at ${DEFAULT_CODE_SCANNING_CONFIG} as the default config."
1924
opts+=("--code-scanning-config" "${DEFAULT_CODE_SCANNING_CONFIG}")
2025
fi
2126

27+
2228
codeql-bundle ${opts[@]} $(echo ${PACKS} | tr ',' ' ')
29+
echo "::endgroup::"
2330

2431
echo "output-path=${output_path}" >> $GITHUB_OUTPUT

download-bundle/download-bundle.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ fi
2222

2323
opts+=("--output ${output_path}")
2424

25-
echo gh release download --repo github/codeql-action ${opts[@]}
25+
echo "::group::Downloading CodeQL bundle"
2626
gh release download --repo github/codeql-action ${opts[@]}
27+
echo "::endgroup::"
2728

2829
echo "bundle-path=${output_path}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)