@@ -34,7 +34,7 @@ const validityDisplayName: Record<Validity, string> = {
34
34
*/
35
35
function filterUriOccurrences ( occurrences : Occurrence [ ] ) : Occurrence [ ] {
36
36
const uriOccurrence = occurrences . find (
37
- ( { type } ) => type === "connection_uri"
37
+ ( { type } ) => type === "connection_uri" ,
38
38
) ;
39
39
return uriOccurrence ? [ uriOccurrence ] : occurrences ;
40
40
}
@@ -46,7 +46,7 @@ function filterUriOccurrences(occurrences: Occurrence[]): Occurrence[] {
46
46
* @returns incidents diagnostics
47
47
*/
48
48
export function parseGGShieldResults (
49
- results : GGShieldScanResults
49
+ results : GGShieldScanResults ,
50
50
) : Diagnostic [ ] {
51
51
let diagnostics : Diagnostic [ ] = [ ] ;
52
52
@@ -61,7 +61,7 @@ export function parseGGShieldResults(
61
61
( occurrence : Occurrence ) => {
62
62
let range = new Range (
63
63
new Position ( occurrence . line_start - 1 , occurrence . index_start ) ,
64
- new Position ( occurrence . line_end - 1 , occurrence . index_end )
64
+ new Position ( occurrence . line_end - 1 , occurrence . index_end ) ,
65
65
) ;
66
66
let diagnostic = new Diagnostic (
67
67
range ,
@@ -72,16 +72,17 @@ Validity: ${validityDisplayName[incident.validity]}
72
72
Known by GitGuardian dashboard: ${ incident . known_secret ? "YES" : "NO" }
73
73
Total occurrences: ${ incident . total_occurrences }
74
74
Incident URL: ${ incident . incident_url || "N/A" }
75
- Secret SHA: ${ incident . ignore_sha } ` ,
76
- DiagnosticSeverity . Warning
75
+ Secret SHA: ${ incident . ignore_sha }
76
+ Secret in Secrets Manager: ${ incident . secret_vaulted ? "YES" : "NO" } ` ,
77
+ DiagnosticSeverity . Warning ,
77
78
) ;
78
79
79
80
diagnostic . source = "gitguardian" ;
80
81
diagnostics . push ( diagnostic ) ;
81
- }
82
+ } ,
82
83
) ;
83
84
} ) ;
84
- }
85
+ } ,
85
86
) ;
86
87
} catch ( e ) {
87
88
console . error ( e ) ;
0 commit comments