Using separate parameter files (.json or .bicepparam) breaks the BICEP scanning #2288
-
Hi everyone, Hope someone can help me with this. I also did read discussion #1256, but nothing seems to get my pipeline scanning my BICEP files. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @xyl-jc, the instructions included in https://azure.github.io/PSRule.Rules.Azure/using-bicep/#testing-bicep-modules should help. In short:
I hope this helps. |
Beta Was this translation helpful? Give feedback.
@xyl-jc The problem is with the
inputPath
parameter for the pipeline.This code is asking PSRule to scan
deployment/main.bicep
when it should be excluded/ ignored.You can just set
inputPath
todeployment/
if you want to scan any files indeployment/
.I would recommend just not setting
inputPath
at all. Then yourinput.pathIgnore