Skip to content

Commit

Permalink
fix(misconf): continue file traversal on ARM template parsing errors
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Mar 6, 2025
1 parent 1d3f180 commit 5179837
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/iac/scanners/azure/arm/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ func (p *Parser) ParseFS(ctx context.Context, dir string) ([]azure.Deployment, e

deployment, err := p.parseFile(f, path)
if err != nil {
return err
p.logger.Error("Failed to parse file", log.FilePath(path), log.Err(err))
return nil
}

deployments = append(deployments, *deployment)
return nil
}); err != nil {
Expand Down

0 comments on commit 5179837

Please sign in to comment.