Skip to content

Commit

Permalink
fix: do not panic on invalid arm input [IAC-2840] (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreeaneata authored Mar 20, 2024
1 parent eee162f commit 15e3016
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @snyk/cloud-engines
* @snyk/cloud-engines @snyk/cloud-dev-ex
3 changes: 3 additions & 0 deletions changes/unreleased/Fixed-20240320-152327.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: do not panic on invalid arm input
time: 2024-03-20T15:23:27.229324+02:00
2 changes: 1 addition & 1 deletion pkg/input/arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (c *ArmDetector) DetectFile(i *File, opts DetectOptions) (IACConfiguration,
return nil, fmt.Errorf("%w", UnableToReadFile)
}

template := &arm_Template{}
template := arm_Template{}
if err := json.Unmarshal(contents, &template); err != nil {
return nil, fmt.Errorf("%w: %v", FailedToParseInput, err)
}
Expand Down

0 comments on commit 15e3016

Please sign in to comment.