Skip to content

Commit df04ddd

Browse files
committed
Add debug input
1 parent 5197764 commit df04ddd

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/test-create-bundle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
workspace: "${{ github.workspace }}/tests/codeql-workspace.yml"
2222
default-code-scanning-config: "${{ github.workspace }}/tests/code-scanning-config.yml"
2323
platforms: "osx64,linux64,win64"
24+
debug: "true"
2425
- uses: actions/upload-artifact@v3
2526
with:
2627
name: codeql-bundles

create-bundle/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ inputs:
1919
description: A comma-separated list of platforms to build the bundle for, if supported by the bundle. Typically used with the generic bundle to build a specific platform bundle on a different runner architecture.
2020
required: false
2121
default: ""
22+
debug:
23+
description: Enable debug logging, by setting this value to "true"
24+
required: false
25+
default: "false"
2226
outputs:
2327
output-path:
2428
description: Path to the created bundle or directory if multiple platforms are specified
@@ -44,4 +48,5 @@ runs:
4448
DEFAULT_CODE_SCANNING_CONFIG: ${{ inputs.default-code-scanning-config }}
4549
PLATFORMS: ${{ inputs.platforms }}
4650
RUNNER_TEMP: ${{ runner.temp }}
51+
DEBUG: ${{ inputs.debug }}
4752
shell: bash

create-bundle/create-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ if [[ -n ${DEFAULT_CODE_SCANNING_CONFIG} ]]; then
2424
opts+=("--code-scanning-config" "${DEFAULT_CODE_SCANNING_CONFIG}")
2525
fi
2626

27+
if [[ ${DEBUG} -eq "true" ]]; then
28+
opts+=("--log DEBUG")
29+
fi
30+
2731

2832
codeql-bundle ${opts[@]} $(echo ${PACKS} | tr ',' ' ')
2933
echo "::endgroup::"

0 commit comments

Comments
 (0)