Skip to content

Commit b2d1d03

Browse files
committed
Minor changes to logging
1 parent 3bd2d15 commit b2d1d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sbomCollector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ export class SbomCollector {
546546
const status = (e as { status?: number })?.status;
547547
let reason = e instanceof Error ? e.message : String(e);
548548
if (status === 404) {
549-
reason = "Dependency review unavailable (missing snapshot or feature disabled)";
549+
reason = "Dependency review unavailable (missing snapshot, feature disabled, or repo not found)";
550550
// Optional retry path: submit snapshot then retry once
551551
if (this.opts.submitOnMissingSnapshot) {
552552
console.log(chalk.blue(`Attempting to submit component snapshot for ${org}/${repo} branch ${head} before retrying dependency review diff...`));
@@ -555,7 +555,7 @@ export class SbomCollector {
555555
if (ok) {
556556
// Delay after snapshot submission to allow GitHub to ingest and process the snapshot
557557
// before retrying the dependency review API. This helps avoid 404 errors on retry.
558-
console.log(chalk.blue(`Snapshot submission attempted; waiting ${this.opts.retryIngestionDelayMs / 1000} seconds before retrying dependency review diff for ${org}/${repo} ${base}...${head}...`));
558+
console.debug(chalk.blue(`Snapshot submission attempted; waiting ${this.opts.retryIngestionDelayMs / 1000} seconds before retrying dependency review diff for ${org}/${repo} ${base}...${head}...`));
559559
await new Promise(r => setTimeout(r, this.opts.retryIngestionDelayMs));
560560
return await this.fetchDependencyReviewDiff(org, repo, base, head, retries - 1, latestCommit);
561561
}

0 commit comments

Comments
 (0)