Skip to content

Commit

Permalink
fix: add validation for iacParameters so they are only used within th…
Browse files Browse the repository at this point in the history
…is mode. (#46)
  • Loading branch information
IgorEulalio authored Apr 16, 2024
1 parent 7cf9053 commit 36d9a45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ function composeFlags(opts) {
flags += ` --iac`;
}

if (opts.recursive) {
if (opts.recursive && opts.mode == iacMode) {
flags += ` -r`;
}

if (opts.minimumSeverity) {
if (opts.minimumSeverity && opts.mode == iacMode) {
flags += ` -f=${opts.minimumSeverity}`;
}

Expand Down

0 comments on commit 36d9a45

Please sign in to comment.