This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
Use PSRule security audit tool and only test new bicep #5
Annotations
3 errors and 1 warning
build
Failed to expand bicep source '/home/runner/work/cosmosdb-chatgpt/cosmosdb-chatgpt/infra/main.test.bicep'. Exception calling "GetBicepResources" with "2" argument(s): "Unable to expand resources because the source file '/home/runner/work/cosmosdb-chatgpt/cosmosdb-chatgpt/infra/main.test.bicep' was not valid. An error occurred evaluating expression '[union(if(not(empty(parameters('appPrincipalId'))), createArray(reference(resourceId('Microsoft.Resources/deployments', 'nosql-role-assignment-app'), '2022-09-01').outputs.id.value, reference(resourceId('Microsoft.Resources/deployments', 'openai-role-assignment-read-app'), '2022-09-01').outputs), createArray()), if(not(empty(parameters('userPrincipalId'))), createArray(reference(resourceId('Microsoft.Resources/deployments', 'nosql-role-assignment-user'), '2022-09-01').outputs.id.value, reference(resourceId('Microsoft.Resources/deployments', 'container-registry-role-assignment-push-user'), '2022-09-01').outputs.id.value, reference(resourceId('Microsoft.Resources/deployments', 'openai-role-assignment-read-user'), '2022-09-01').outputs), createArray()))]' line 2397. Could not determine JSON object type for type PSRule.Rules.Azure.Data.Template.DeploymentValue+DeploymentOutputs."
|
build
One or more assertions failed. One or more errors occured.
|
build
Process completed with exit code 1.
|
build
Target object 'infra/main.test.bicep' has not been processed because no matching rules were found.
|