Skip to content

Commit 1a48007

Browse files
authored
Merge pull request #1805 from jsoref/issue-1799
Add output for analyze action output path
2 parents c57b27e + 8ab72a0 commit 1a48007

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
@@ -5,6 +5,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
55
## [UNRELEASED]
66

77
- Improve the handling of fatal errors from the CodeQL CLI. [#1795](https://github.com/github/codeql-action/pull/1795)
8+
- Add the `sarif-output` output to the analyze action that contains the path to the directory of the generated SARIF. [#1799](https://github.com/github/codeql-action/pull/1799)
89

910
## 2.21.0 - 19 Jul 2023
1011

Diff for: analyze/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ inputs:
7979
outputs:
8080
db-locations:
8181
description: A map from language to absolute path for each database created by CodeQL.
82+
sarif-output:
83+
description: Absolute, local path to the directory containing the generated SARIF file.
8284
sarif-id:
8385
description: The ID of the uploaded SARIF file.
8486
runs:

Diff for: lib/analyze-action.js

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

Diff for: lib/analyze-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/analyze-action.ts

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ async function run() {
262262
dbLocations[language] = util.getCodeQLDatabasePath(config, language);
263263
}
264264
core.setOutput("db-locations", dbLocations);
265+
core.setOutput("sarif-output", path.resolve(outputDir));
265266
const uploadInput = actionsUtil.getOptionalInput("upload");
266267
if (runStats && actionsUtil.getUploadValue(uploadInput) === "always") {
267268
uploadResult = await uploadLib.uploadFromActions(

0 commit comments

Comments
 (0)