Skip to content

Commit

Permalink
CR Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Aug 8, 2023
1 parent 892a5b6 commit 608319e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xray/audit/jas/jasmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,22 @@ func setIacOrSecretsScanResults(resultsFileName string, isSecret bool) ([]utils.
return nil, err
}

var finalSecretsList []utils.IacOrSecretResult
var iacOrSecretResults []utils.IacOrSecretResult
for _, result := range results {
text := *result.Message.Text
if isSecret {
text = hideSecret(*result.Locations[0].PhysicalLocation.Region.Snippet.Text)
}
newSecret := utils.IacOrSecretResult{
newResult := utils.IacOrSecretResult{
Severity: utils.GetResultSeverity(result),
File: utils.ExtractRelativePath(utils.GetResultFileName(result), currWd),
LineColumn: utils.GetResultLocationInFile(result),
Text: text,
Type: *result.RuleID,
}
finalSecretsList = append(finalSecretsList, newSecret)
iacOrSecretResults = append(iacOrSecretResults, newResult)
}
return finalSecretsList, nil
return iacOrSecretResults, nil
}

func createScannersConfigFile(fileName string, fileContent interface{}) error {
Expand Down

0 comments on commit 608319e

Please sign in to comment.