Skip to content

Commit 6a6a320

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/ava/typescript-3.0.1
2 parents e9aa623 + 942b34d commit 6a6a320

22 files changed

+338
-24
lines changed

.github/workflows/__analyze-ref-input.yml

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

.github/workflows/__remote-config.yml

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

.github/workflows/__upload-ref-sha-input.yml

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

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## [UNRELEASED]
44

5-
No user facing changes.
5+
- Add `sarif-id` as an output for the `upload-sarif` and `analyze` actions. [#889](https://github.com/github/codeql-action/pull/889)
6+
- Add `ref` and `sha` inputs to the `analyze` action, which override the defaults provided by the GitHub Action context. [#889](https://github.com/github/codeql-action/pull/889)
67

78
## 1.0.31 - 31 Jan 2022
89

analyze/action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ inputs:
4545
description: "The path at which the analyzed repository was checked out. Used to relativize any absolute paths in the uploaded SARIF file."
4646
required: false
4747
default: ${{ github.workspace }}
48+
ref:
49+
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is not available in pull requests from forks."
50+
required: false
51+
sha:
52+
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is not available in pull requests from forks."
53+
required: false
4854
category:
4955
description: String used by Code Scanning for matching the analyses
5056
required: false
@@ -63,6 +69,8 @@ inputs:
6369
outputs:
6470
db-locations:
6571
description: A map from language to absolute path for each database created by CodeQL.
72+
sarif-id:
73+
description: The ID of the uploaded SARIF file.
6674
runs:
6775
using: "node12"
6876
main: "../lib/analyze-action.js"

lib/actions-util.js

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

0 commit comments

Comments
 (0)