Skip to content

Commit

Permalink
fixes #400: Change in cve_allowlist is not displayed
Browse files Browse the repository at this point in the history
Signed-off-by: flbla <[email protected]>
  • Loading branch information
flbla committed Dec 20, 2023
1 parent 3233577 commit 09964dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provider/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ func resourceProjectRead(d *schema.ResourceData, m interface{}) error {
d.Set("enable_content_trust", trust)
d.Set("enable_content_trust_cosign", trustCosign)

cveAllowlist := make([]string, len(jsonData.CveAllowlist.Items))
for i, item := range jsonData.CveAllowlist.Items {
cveAllowlist[i] = item.CveID
}
d.Set("cve_allowlist", cveAllowlist)

return nil
}

Expand Down

0 comments on commit 09964dc

Please sign in to comment.