Skip to content

Commit

Permalink
log digests no matter what (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemberTang authored Mar 4, 2024
1 parent eaf58d3 commit 37670c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/repocop/src/remediation/vuln-digest/vuln-digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ export async function createAndSendVulnerabilityDigests(
.map((t) => createDigest(t, repoOwners, evaluationResults))
.filter((d): d is VulnerabilityDigest => d !== undefined);

console.log('Logging vulnerability digests');
digests.forEach((digest) => console.log(JSON.stringify(digest)));

if (isFirstOrThirdTuesdayOfMonth(new Date()) && config.stage === 'PROD') {
await sendVulnerabilityDigests(digests, config);
} else {
console.log('Logging vulnerability digests');
digests.forEach((digest) => console.log(JSON.stringify(digest)));
console.log('Not sending vulnerability digests');
}
}

0 comments on commit 37670c0

Please sign in to comment.