Content-Length: 290461 | pFad | http://github.com/github/codeql-action/commit/664ad1aa6a3f3a934d612cd3e0e5ea8950072b22

1B Do not attempt to upload `undefined` status reports · github/codeql-action@664ad1a · GitHub
Skip to content

Commit 664ad1a

Browse files
committed
Do not attempt to upload undefined status reports
1 parent 0d17ea4 commit 664ad1a

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/status-report.js

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

lib/status-report.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/status-report.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,13 @@ const INCOMPATIBLE_MSG =
392392
export async function sendStatusReport<S extends StatusReportBase>(
393393
statusReport: S,
394394
): Promise<void> {
395+
if (statusReport === undefined) {
396+
core.warning(
397+
`Not uploading a status report, because of an internal problem.`,
398+
);
399+
return;
400+
}
401+
395402
setJobStatusIfUnsuccessful(statusReport.status);
396403

397404
const statusReportJSON = JSON.stringify(statusReport);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql-action/commit/664ad1aa6a3f3a934d612cd3e0e5ea8950072b22

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy