-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
contribution requestedThis is a great feature idea, but we will need a contribution to get it added to Checkov.This is a great feature idea, but we will need a contribution to get it added to Checkov.
Description
Describe the feature
Bicep functions, like guid(), throw a parse error when split in multiple lines. Single line works well, but splitting the parameters in multiple lines improves readability.
Examples
This fails:
resource cognitiveServicesOpenAIUserForUser 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
scope: azureOpenAI
name: guid(
azureOpenAI.id,
principalId,
resourceId('Microsoft.Authorization/roleDefinitions', '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd')
)
properties: {
roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd')
principalId: principalId
principalType: principalType
}
}
While this works correctly:
resource cognitiveServicesOpenAIUserForUser 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
scope: azureOpenAI
name: guid(azureOpenAI.id, principalId,resourceId('Microsoft.Authorization/roleDefinitions', '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'))
properties: {
roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd')
principalId: principalId
principalType: principalType
}
}
Metadata
Metadata
Assignees
Labels
contribution requestedThis is a great feature idea, but we will need a contribution to get it added to Checkov.This is a great feature idea, but we will need a contribution to get it added to Checkov.