Skip to content

Commit 09653b7

Browse files
authored
Merge pull request #2368 from mschwager/add-codeql-version
Add codeql-version to outputs
2 parents 857f661 + e6438b3 commit 09653b7

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ No user facing changes.
1111
## 3.25.12 - 12 Jul 2024
1212

1313
- Improve the reliability and performance of analyzing code when analyzing a compiled language with the `autobuild` [build mode](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#codeql-build-modes) on GitHub Enterprise Server. This feature is already available to GitHub.com users. [#2353](https://github.com/github/codeql-action/pull/2353)
14+
- Add `codeql-version` to outputs. [#2368](https://github.com/github/codeql-action/pull/2368)
1415
- Update default CodeQL bundle version to 2.18.0. [#2364](https://github.com/github/codeql-action/pull/2364)
1516

1617
## 3.25.11 - 28 Jun 2024

Diff for: init/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ inputs:
139139
outputs:
140140
codeql-path:
141141
description: The path of the CodeQL binary used for analysis
142+
codeql-version:
143+
description: The version of the CodeQL binary used for analysis
142144
runs:
143145
using: node20
144146
main: '../lib/init-action.js'

Diff for: lib/init-action.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: lib/init-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/init-action.ts

+1
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ async function run() {
554554
flushDiagnostics(config);
555555

556556
core.setOutput("codeql-path", config.codeQLCmd);
557+
core.setOutput("codeql-version", (await codeql.getVersion()).version);
557558
} catch (unwrappedError) {
558559
const error = wrapError(unwrappedError);
559560
core.setFailed(error.message);

0 commit comments

Comments
 (0)