Skip to content

Trying to use inputPath for ps-rule-assert@2, can't find a part of the path #1095

Discussion options

You must be logged in to vote

@bengeset96 There is a few things going on here from what I can tell:

  1. You are running on a Linux node so /out/deployments/*.bicep specifically the / actually means find this path from the root file system, what doesn't exist. This is what the error is about. Writing it like out/deployments/*.bicep is one way to address this. Also you can use the predefined variables available in Azure Pipelines.
  2. The rules in PSRule for Azure only ever trigger off the inputType: repository configuration. This is just how it currently works. So using inputType: inputPath will not work. We have other work that may change this in the medium term around October but it is something that is early in our dev cyc…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BenjaminEngeset
Comment options

@BernieWhite
Comment options

Answer selected by BenjaminEngeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1094 on May 27, 2022 13:21.