fix cfn-nag report path
@@ -125,7 +125,9 @@ pipeline {
stage ("SAST: Scan AWS Cloud report") {
steps {
- sh "cfn_nag --output-format=json cia-dist-cloudformation/src/main/resources/cia-dist-cloudformation.yml > target/cia-dist-cloudformation.yml.nagscan || true"
+ dir("${env.WORKSPACE}/cia-dist-cloudformation") {
+ sh "cfn_nag --output-format=json src/main/resources/cia-dist-cloudformation.yml > target/cia-dist-cloudformation.yml.nagscan || true"
+ }
}
}
