Add Pulumi program context to ResourceValidationArgs
and StackValidationArgs
#333
Labels
kind/enhancement
Improvements or new features
Hello!
Issue details
I'm trying to run the Snyk CLI in a resource validation policy to validate a
docker.Image
resource:I can get it working for basic scanning, but Snyk has an option to pass a
--file /path/to/Dockerfile
argument to provide additional suggestions for remediation. I can't seem to find a way get the directory of the Pulumi program. (process.cwd()
gives me the path to the policy instead of the path to the Pulumi program.)It would be useful if
ResourceValidationArgs
included something like astackContext
or similar object with things like the stack name, program name, full path to the Pulumi program, etc. Could also be helpful to know whether we're inpreview
orup
.UPDATE: StackValidation would likewise benefit from the same.
Affected area/feature
The text was updated successfully, but these errors were encountered: