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

Failing to parse bicep for loops with new formating #6351

Open
tomaxsas opened this issue May 24, 2024 · 0 comments
Open

Failing to parse bicep for loops with new formating #6351

tomaxsas opened this issue May 24, 2024 · 0 comments

Comments

@tomaxsas
Copy link

Recently bicep changed its for loops formating. I always run az bicep format -f main.bicep

Previous formating which parses

resource vaultSecrets 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = [for entry in keyVaultEntriesArray: {
  name: entry.name
  parent: keyVault
  properties: {
    attributes: {
      enabled: true
      // expires in 2024-11-24
      exp: 1732433200
    }
    contentType: 'Credentials'
    value: entry.secret
  }
}]

new formating which checkov fails to parse

resource vaultSecrets 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = [
  for entry in keyVaultEntriesArray: {
    name: entry.name
    parent: keyVault
    properties: {
      attributes: {
        enabled: true
        // expires in 2024-11-24
        exp: 1732433200
      }
      contentType: 'Credentials'
      value: entry.secret
    }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant