Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into angelapwen/post-init-…
Browse files Browse the repository at this point in the history
…cleanup
  • Loading branch information
Angela P Wen committed Aug 11, 2022
2 parents 6fdaff6 + a6d0901 commit 15608ce
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
6 changes: 1 addition & 5 deletions lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/upload-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/upload-lib.js.map

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions src/actions-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,7 @@ export async function createStatusReportBase(
}
const runnerOs = getRequiredEnvParam("RUNNER_OS");
const codeQlCliVersion = getCachedCodeQlVersion();

// If running locally then the GITHUB_ACTION_REF cannot be trusted as it may be for the previous action
// See https://github.com/actions/runner/issues/803
const actionRef = isRunningLocalAction()
? undefined
: process.env["GITHUB_ACTION_REF"];
const actionRef = process.env["GITHUB_ACTION_REF"];

const statusReport: StatusReportBase = {
workflow_run_id: workflowRunID,
Expand Down
3 changes: 2 additions & 1 deletion src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ export function validateUniqueCategory(sarif: SarifFile): void {
if (process.env[sentinelEnvVar]) {
throw new Error(
"Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per tool/category. " +
"The easiest fix is to specify a unique value for the `category` input. " +
"The easiest fix is to specify a unique value for the `category` input. If .runs[].automationDetails.id is specified " +
"in the sarif file, that will take precedence over your configured `category`. " +
`Category: (${id ? id : "none"}) Tool: (${tool ? tool : "none"})`
);
}
Expand Down

0 comments on commit 15608ce

Please sign in to comment.