File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { promises as fs } from 'node:fs'
22import os from 'node:os'
33import path from 'node:path'
44
5+ import { DOT_SOCKET_DOT_FACTS_JSON } from '../../constants.mts'
56import { joinAnd } from '@socketsecurity/registry/lib/arrays'
67import { debugDir , debugFn } from '@socketsecurity/registry/lib/debug'
78import { readJsonSync } from '@socketsecurity/registry/lib/fs'
@@ -88,8 +89,13 @@ export async function coanaFix(
8889 const scanFilepaths = await getPackageFilesForScan ( [ '.' ] , supportedFiles , {
8990 cwd,
9091 } )
92+ // Exclude any .socket.facts.json files that happen to be in the scan
93+ // folder before the analysis was run.
94+ const filepathsToUpload = scanFilepaths . filter (
95+ p => path . basename ( p ) . toLowerCase ( ) !== DOT_SOCKET_DOT_FACTS_JSON ,
96+ )
9197 const uploadCResult = await handleApiCall (
92- sockSdk . uploadManifestFiles ( orgSlug , scanFilepaths ) ,
98+ sockSdk . uploadManifestFiles ( orgSlug , filepathsToUpload ) ,
9399 {
94100 description : 'upload manifests' ,
95101 spinner,
You can’t perform that action at this time.
0 commit comments