Skip to content

Commit

Permalink
fix: Ensure valid JSON output for gitlab report
Browse files Browse the repository at this point in the history
Fixes issue #6593
  • Loading branch information
aikebah committed Apr 28, 2024
1 parent a5ae11b commit 1487be5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/resources/templates/gitlabReport.vsl
Expand Up @@ -139,8 +139,10 @@
"path": "pom.xml",
"package_manager": "maven",
"dependencies": [
#set($addComma=0)
#foreach( $dependency in $dependencies )
#if( $dependency.name )
#if( $addComma>0 ),#end
{
"package": {
"name": "$enc.json($dependency.name)"
Expand All @@ -152,7 +154,7 @@
##"direct": false, --> not implemeten
##"dependency_path": [] --> not implemented
}
#if( $foreach.hasNext ),#end
#set($addComma=1)
#end
#end
]
Expand Down

0 comments on commit 1487be5

Please sign in to comment.