Public Access
generated from Philipp/template-git
feat: support graceful standalone fallback when baseline target image is missing
CI Tests / JS Unit Tests (push) Skipped
CI Tests / cross-check-mixed-sbom (sbom=false) (push) Skipped
CI Tests / cross-check-mixed-sbom (sbom=true) (push) Skipped
CI Tests / without-inbuild-sbom (sbom=false) (push) Skipped
CI Tests / without-inbuild-sbom (sbom=true) (push) Skipped
CI Tests / with-inbuild-sbom (sbom=false) (push) Skipped
CI Tests / with-inbuild-sbom (sbom=true) (push) Skipped
CI Tests / JS Unit Tests (pull_request) Successful in 3m47s
Philipp/Global-Workflows: Pre-commit Lint (Scoped) / pre-commit (pull_request) Successful in 6m8s
CI Tests / cross-check-mixed-sbom (sbom=false) (pull_request) Successful in 8m20s
CI Tests / cross-check-mixed-sbom (sbom=true) (pull_request) Successful in 8m20s
CI Tests / without-inbuild-sbom (sbom=false) (pull_request) Successful in 12m59s
CI Tests / without-inbuild-sbom (sbom=true) (pull_request) Successful in 7m35s
CI Tests / with-inbuild-sbom (sbom=false) (pull_request) Successful in 8m47s
CI Tests / with-inbuild-sbom (sbom=true) (pull_request) Successful in 3m28s
CI Tests / JS Unit Tests (push) Skipped
CI Tests / cross-check-mixed-sbom (sbom=false) (push) Skipped
CI Tests / cross-check-mixed-sbom (sbom=true) (push) Skipped
CI Tests / without-inbuild-sbom (sbom=false) (push) Skipped
CI Tests / without-inbuild-sbom (sbom=true) (push) Skipped
CI Tests / with-inbuild-sbom (sbom=false) (push) Skipped
CI Tests / with-inbuild-sbom (sbom=true) (push) Skipped
CI Tests / JS Unit Tests (pull_request) Successful in 3m47s
Philipp/Global-Workflows: Pre-commit Lint (Scoped) / pre-commit (pull_request) Successful in 6m8s
CI Tests / cross-check-mixed-sbom (sbom=false) (pull_request) Successful in 8m20s
CI Tests / cross-check-mixed-sbom (sbom=true) (pull_request) Successful in 8m20s
CI Tests / without-inbuild-sbom (sbom=false) (pull_request) Successful in 12m59s
CI Tests / without-inbuild-sbom (sbom=true) (pull_request) Successful in 7m35s
CI Tests / with-inbuild-sbom (sbom=false) (pull_request) Successful in 8m47s
CI Tests / with-inbuild-sbom (sbom=true) (pull_request) Successful in 3m28s
This commit is contained in:
3 files changed
+85
-35
No files matched your search
+18
-4
@@ -344,16 +344,30 @@ function main() {
|
||||
const baseName = args[2] || 'main';
|
||||
const summaryOutputPath = args[3];
|
||||
|
||||
const baseCves = loadReportsForArg(baseArg);
|
||||
const branchCves = loadReportsForArg(branchArg);
|
||||
|
||||
const output = renderMarkdownDiff(baseCves, branchCves, baseName);
|
||||
console.log(output);
|
||||
|
||||
if (summaryOutputPath) {
|
||||
const summaryOutput = renderFullSummary(branchCves);
|
||||
fs.writeFileSync(summaryOutputPath, summaryOutput, 'utf8');
|
||||
}
|
||||
|
||||
if (baseArg === '--none' || baseArg === 'none' || baseArg === '') {
|
||||
// No baseline provided: output full summary as diff report
|
||||
const lines = [
|
||||
`### 🛡️ Vulnerability Report (\`${baseName}\` baseline unavailable)`,
|
||||
'',
|
||||
`> [!NOTE]`,
|
||||
`> Baseline target image for \`${baseName}\` was not found in the registry. Showing all detected vulnerabilities.`,
|
||||
'',
|
||||
];
|
||||
lines.push(renderFullSummary(branchCves).replace(/^### 🛡️ Security Scan Report\n*/, ''));
|
||||
console.log(lines.join('\n'));
|
||||
return;
|
||||
}
|
||||
|
||||
const baseCves = loadReportsForArg(baseArg);
|
||||
const output = renderMarkdownDiff(baseCves, branchCves, baseName);
|
||||
console.log(output);
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
|
||||
Reference in new issue
Block a user