Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6283b8

Browse files
committed
Debug: print github.context.payload
1 parent 93b17c6 commit a6283b8

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

lib/init-action-post-helper.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post-helper.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action-post-helper.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as core from "@actions/core";
2+
import * as github from "@actions/github";
23

34
import * as actionsUtil from "./actions-util";
45
import { getApiClient } from "./api-client";
@@ -186,12 +187,10 @@ export async function run(
186187

187188
// We do not delete uploaded SARIFs if we're on a fork, as we're missing the
188189
// appropriate permissions.
189-
core.info(`GITHUB_ACTOR is ${process.env["GITHUB_ACTOR"]}`);
190-
core.info(`repositoryNwo.owner is ${repositoryNwo.owner}`);
191-
if (
192-
process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true" &&
193-
repositoryNwo.owner === "github"
194-
) {
190+
core.info(
191+
`github.context.payload is ${JSON.stringify(github.context.payload)}`,
192+
);
193+
if (process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true") {
195194
await removeUploadedSarif(uploadFailedSarifResult, logger);
196195
}
197196

0 commit comments

Comments
 (0)