Skip to content

Commit

Permalink
Use repository NWO owner instead
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Jan 12, 2024
1 parent 4885993 commit a0afcce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/init-action-post-helper.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/init-action-post-helper.js.map

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

7 changes: 6 additions & 1 deletion src/init-action-post-helper.ts
Expand Up @@ -185,7 +185,12 @@ export async function run(
}

core.info(`GITHUB_ACTOR is ${process.env["GITHUB_ACTOR"]}`);
if (process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true") {
// We do not delete uploaded SARIFs if we're on a fork, as we're missing the
// appropriate permissions.
if (
process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true" &&
repositoryNwo.owner !== "github"
) {
await removeUploadedSarif(uploadFailedSarifResult, logger);
}

Expand Down

0 comments on commit a0afcce

Please sign in to comment.