Read CODE_SCANNING_REF
This commit is contained in:
parent
43f9bd3e4f
commit
2bca6af0e5
3 changed files with 10 additions and 3 deletions
|
|
@ -520,7 +520,11 @@ export async function getRef(): Promise<string> {
|
|||
);
|
||||
}
|
||||
|
||||
const ref = refInput || getRequiredEnvParam("GITHUB_REF");
|
||||
// Workaround for a limitation of Actions dynamic workflows not setting
|
||||
// the GITHUB_REF in some cases
|
||||
const maybeCSRef = process.env["CODE_SCANNING_REF"];
|
||||
|
||||
const ref = refInput || maybeCSRef || getRequiredEnvParam("GITHUB_REF");
|
||||
const sha = shaInput || getRequiredEnvParam("GITHUB_SHA");
|
||||
|
||||
// If the ref is a user-provided input, we have to skip logic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue