Skip to content

Commit

Permalink
Address code scanning advisory (#247)
Browse files Browse the repository at this point in the history
* Address code scanning advisory

* changelog
  • Loading branch information
patrickcping authored Dec 29, 2023
1 parent d55eec6 commit e2e9bdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/247.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
`resource/davinci_flow`: Address code scanning advisories.
```
3 changes: 2 additions & 1 deletion internal/service/davinci/resource_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,8 @@ func mapSubFlows(d *schema.ResourceData, flowJson string) (*string, error) {
// sfProp.SubFlowVersionID.Value = sfValues["subflow_version"].(string)
}
}
err = mapstructure.Decode(sfProp, &v.Data.Properties)
properties := v.Data.Properties // G601 (CWE-118)
err = mapstructure.Decode(sfProp, &properties)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e2e9bdd

Please sign in to comment.