Skip to content

Commit

Permalink
fix CWE-118
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 27, 2023
1 parent f33a8ad commit 7f915aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray/utils/resultstable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,12 @@ func TestShouldDisqualifyEvidence(t *testing.T) {
disqualify: false,
},
}
for _, tc := range testCases {
for i, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
locationObject := &sarif.Location{
PhysicalLocation: &sarif.PhysicalLocation{
ArtifactLocation: &sarif.ArtifactLocation{
URI: &tc.filePath,
URI: &testCases[i].filePath,
},
},
}
Expand Down

0 comments on commit 7f915aa

Please sign in to comment.