Merge branch 'main' into henrymercer/delete-runner-part-2
This commit is contained in:
commit
0dea34e91c
70 changed files with 743 additions and 4870 deletions
5
lib/actions-util.js
generated
5
lib/actions-util.js
generated
|
|
@ -426,7 +426,10 @@ async function getRef() {
|
|||
if ((hasRefInput || hasShaInput) && !(hasRefInput && hasShaInput)) {
|
||||
throw new Error("Both 'ref' and 'sha' are required if one of them is provided.");
|
||||
}
|
||||
const ref = refInput || (0, util_1.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 || (0, util_1.getRequiredEnvParam)("GITHUB_REF");
|
||||
const sha = shaInput || (0, util_1.getRequiredEnvParam)("GITHUB_SHA");
|
||||
// If the ref is a user-provided input, we have to skip logic
|
||||
// and assume that it is really where they want to upload the results.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue