Skip to content

Commit

Permalink
fix: Ensure valid JSON output for gitlab report (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
aikebah committed Apr 29, 2024
1 parent 4539a09 commit d464dee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/resources/templates/gitlabReport.vsl
Original file line number Diff line number Diff line change
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 d464dee

Please sign in to comment.