Skip to content

Commit

Permalink
Report the path of CodeQL as an output
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Engledew committed Nov 4, 2020
1 parent 0ed3207 commit 854109f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ inputs:
description: Try to auto-install your python dependencies
required: true
default: 'true'
outputs:
codeql-path:
description: The path of the CodeQL binary used for analysis
runs:
using: 'node12'
main: '../lib/init-action.js'
1 change: 1 addition & 0 deletions lib/init-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ async function run() {
return;
}
await sendSuccessStatusReport(startedAt, config);

core.setOutput("codeql-path", config.codeQLCmd);
}

run().catch((e) => {
Expand Down

0 comments on commit 854109f

Please sign in to comment.