You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Scanning complete. ${scanResults.scannedFilesCount} file(s) scanned. Secrets scanning found ${scanResults.matches.length} instance(s) of secrets in build output or repo code.\n`,
135
137
)
136
138
137
-
Object.keys(groupedResults).forEach((key)=>{
139
+
// Explicit secret matches
140
+
Object.keys(secretMatches).forEach((key)=>{
138
141
logError(logs,`Secret env var "${key}"'s value detected:`)
139
142
140
-
groupedResults[key]
143
+
secretMatches[key]
144
+
.sort((a,b)=>{
145
+
returna.file>b.file ? 0 : 1
146
+
})
147
+
.forEach(({ lineNumber, file })=>{
148
+
logError(logs,`found value at line ${lineNumber} in ${file}`,{indent: true})
'Secrets scanning skipped because no env vars marked as secret are set to non-empty/non-trivial values or they are all omitted with SECRETS_SCAN_OMIT_KEYS env var setting.',
60
-
)
61
+
constmsg=enhancedSecretScan
62
+
? 'Secrets scanning skipped because no env vars are set to non-empty/non-trivial values or they are all omitted with SECRETS_SCAN_OMIT_KEYS env var setting.'
63
+
: 'Secrets scanning skipped because no env vars marked as secret are set to non-empty/non-trivial values or they are all omitted with SECRETS_SCAN_OMIT_KEYS env var setting.'
0 commit comments