Skip to content

Commit

Permalink
Some debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
steviemul committed May 15, 2024
1 parent d0f7682 commit c03a2ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/checks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const github = require("@actions/github");
const core = require("@actions/core");
const buildReport = require("./report");
const { title, token } = require("./config");

Expand All @@ -12,6 +13,8 @@ async function startCheck() {
const pullRequest = github.context.payload.pull_request;
const sha = (pullRequest && pullRequest.head.sha) || github.context.sha;

core.info("About to create check");

const response = await octokit.rest.checks.create({
owner,
repo,
Expand All @@ -25,6 +28,8 @@ async function startCheck() {
},
});

core.info(response);

CHECK_ID = response.data.id;
}

Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ async function runScanWithChecks() {
let scanDetails;

try {
core.info("Calling start check");

await startCheck();

scanDetails = await runScan();
Expand Down

0 comments on commit c03a2ba

Please sign in to comment.