Skip to content

Commit 854109f

Browse files
author
Simon Engledew
committed
Report the path of CodeQL as an output
1 parent 0ed3207 commit 854109f

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

init/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ inputs:
2323
description: Try to auto-install your python dependencies
2424
required: true
2525
default: 'true'
26+
outputs:
27+
codeql-path:
28+
description: The path of the CodeQL binary used for analysis
2629
runs:
2730
using: 'node12'
2831
main: '../lib/init-action.js'

lib/init-action.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ async function run() {
191191
return;
192192
}
193193
await sendSuccessStatusReport(startedAt, config);
194+
195+
core.setOutput("codeql-path", config.codeQLCmd);
194196
}
195197

196198
run().catch((e) => {

0 commit comments

Comments
 (0)