File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async function main() {
5858 if ( ! args . enterprise && ! args . org && ! args . repo ) throw new Error ( "Provide --enterprise, --org or --repo with --sync-sboms" ) ;
5959 if ( args . enterprise && args . org ) throw new Error ( "Specify only one of --enterprise or --org" ) ;
6060 if ( args . repo && ( args . enterprise || args . org ) ) throw new Error ( "Specify only one of --enterprise, --org, or --repo" ) ;
61- if ( ! args . sbomCache ) throw new Error ( "--sync-sboms requires --sbom-cache to write updated SBOMs to disk" ) ;
61+ if ( syncing && ! args . sbomCache ) throw new Error ( "--sync-sboms requires --sbom-cache to write updated SBOMs to disk" ) ;
6262 } else {
6363 const malwareOnly = ! ! args [ "sync-malware" ] && ! args . sbomCache && ! args . purl && ! args [ "purl-file" ] && ! args [ "match-malware" ] && ! args . uploadSarif && ! args . interactive ;
6464 if ( ! malwareOnly && ! args . sbomCache ) throw new Error ( "Offline mode requires --sbom-cache unless running --sync-malware by itself" ) ;
You can’t perform that action at this time.
0 commit comments