@@ -34,7 +34,7 @@ const validityDisplayName: Record<Validity, string> = {
3434 */
3535function filterUriOccurrences ( occurrences : Occurrence [ ] ) : Occurrence [ ] {
3636 const uriOccurrence = occurrences . find (
37- ( { type } ) => type === "connection_uri"
37+ ( { type } ) => type === "connection_uri" ,
3838 ) ;
3939 return uriOccurrence ? [ uriOccurrence ] : occurrences ;
4040}
@@ -46,7 +46,7 @@ function filterUriOccurrences(occurrences: Occurrence[]): Occurrence[] {
4646 * @returns incidents diagnostics
4747 */
4848export function parseGGShieldResults (
49- results : GGShieldScanResults
49+ results : GGShieldScanResults ,
5050) : Diagnostic [ ] {
5151 let diagnostics : Diagnostic [ ] = [ ] ;
5252
@@ -61,7 +61,7 @@ export function parseGGShieldResults(
6161 ( occurrence : Occurrence ) => {
6262 let range = new Range (
6363 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 ) ,
6565 ) ;
6666 let diagnostic = new Diagnostic (
6767 range ,
@@ -72,16 +72,17 @@ Validity: ${validityDisplayName[incident.validity]}
7272Known by GitGuardian dashboard: ${ incident . known_secret ? "YES" : "NO" }
7373Total occurrences: ${ incident . total_occurrences }
7474Incident 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 ,
7778 ) ;
7879
7980 diagnostic . source = "gitguardian" ;
8081 diagnostics . push ( diagnostic ) ;
81- }
82+ } ,
8283 ) ;
8384 } ) ;
84- }
85+ } ,
8586 ) ;
8687 } catch ( e ) {
8788 console . error ( e ) ;
0 commit comments