Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bicep: Implement User Data Types and Safe Access #6771

Open
drokzi opened this issue Oct 13, 2024 · 0 comments
Open

Bicep: Implement User Data Types and Safe Access #6771

drokzi opened this issue Oct 13, 2024 · 0 comments
Labels
contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov.

Comments

@drokzi
Copy link

drokzi commented Oct 13, 2024

Describe the feature

Bicep has been introducing User Data Types and Safe Access (formerly contains) for some time now. In order for new Bicep files to be written more efficiently, both functions should work in CheckOV. Otherwise, I'll have to switch to another code security solution.

Examples

//Data Types
type siteConfigCustom = {
numberOfWorkers: int
}
param siteConfig siteConfigCustom

//Safe Access
old:
contains(domain, 'keyVaultId')? domain.keyVaultId : null

new:
domain.?keyVaultId ?? null

When will it work in CheckOV?

@drokzi drokzi added the contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov. label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution requested This is a great feature idea, but we will need a contribution to get it added to Checkov.
Projects
None yet
Development

No branches or pull requests

1 participant