diff --git a/src/it/sarif-2/verify.groovy b/src/it/sarif-2/verify.groovy index 7cc3c61ee..5679c2e13 100644 --- a/src/it/sarif-2/verify.groovy +++ b/src/it/sarif-2/verify.groovy @@ -1,5 +1,5 @@ /* - * Copyright 2005-2023 the original author or authors. + * Copyright 2005-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ def slurpedResult = new JsonSlurper().parse(spotbugSarifFile) def results = slurpedResult.runs.results[0] -for (result in slurpedResult.runs.results[0]) { +for (result in results) { for (loc in result.locations) { String location = normalizePath(loc.physicalLocation.artifactLocation.uri) //Making sure that the path was expanded