Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/golang.org/x/crypto-0.…
Browse files Browse the repository at this point in the history
…17.0
  • Loading branch information
flbla authored Dec 21, 2023
2 parents ae87892 + 1ea23c9 commit e536d65
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 e536d65

Please sign in to comment.