Skip to content

Commit f2ff3e3

Browse files
committed
fix(actions): use repeated --format flag (argparse append mode)
--format uses action="append" in argparse, so multiple values must be passed as separate flags: --format sarif --format json --format markdown Not space-separated: --format sarif json markdown (breaks parsing, causes silent failure with no output files)
1 parent 68fb7d6 commit f2ff3e3

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/actions/scanner-bandit/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ runs:
7979
python -m argus scan bandit \
8080
--path "${SCAN_PATH}" \
8181
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
82-
--format sarif json markdown \
82+
--format sarif --format json --format markdown \
8383
--output-dir ./bandit-reports \
8484
--output-vars ./bandit-reports/counts.env \
8585
--no-timestamp \

.github/actions/scanner-checkov/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ runs:
137137
python -m argus scan checkov \
138138
--path "${IAC_PATH}" \
139139
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
140-
--format sarif json markdown \
140+
--format sarif --format json --format markdown \
141141
--output-dir ./checkov-reports \
142142
--output-vars ./checkov-reports/counts.env \
143143
--no-timestamp \

.github/actions/scanner-clamav/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ runs:
8282
python -m argus scan clamav \
8383
--path "${SCAN_PATH}" \
8484
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
85-
--format sarif json markdown \
85+
--format sarif --format json --format markdown \
8686
--output-dir ./clamav-reports \
8787
--output-vars ./clamav-reports/counts.env \
8888
--no-timestamp \

.github/actions/scanner-gitleaks/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ runs:
7878
python -m argus scan gitleaks \
7979
--path "${SCAN_PATH}" \
8080
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
81-
--format sarif json markdown \
81+
--format sarif --format json --format markdown \
8282
--output-dir ./gitleaks-reports \
8383
--output-vars ./gitleaks-reports/counts.env \
8484
--no-timestamp \

.github/actions/scanner-opengrep/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ runs:
9292
python -m argus scan opengrep \
9393
--path "${PATHS_INPUT}" \
9494
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
95-
--format sarif json markdown \
95+
--format sarif --format json --format markdown \
9696
--output-dir ./opengrep-reports \
9797
--output-vars ./opengrep-reports/counts.env \
9898
--no-timestamp \

.github/actions/scanner-osv/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ runs:
113113
python -m argus scan osv \
114114
--path "${SCAN_PATH}" \
115115
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
116-
--format sarif json markdown \
116+
--format sarif --format json --format markdown \
117117
--output-dir ./osv-reports \
118118
--output-vars ./osv-reports/counts.env \
119119
--no-timestamp \

.github/actions/scanner-supply-chain/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ runs:
112112
python -m argus scan supply-chain \
113113
--path "${SCAN_PATH}" \
114114
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
115-
--format sarif json markdown \
115+
--format sarif --format json --format markdown \
116116
--output-dir ./supply-chain-reports \
117117
--output-vars ./supply-chain-reports/counts.env \
118118
--no-timestamp \

.github/actions/scanner-trivy-iac/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ runs:
114114
python -m argus scan trivy-iac \
115115
--path "${IAC_PATH}" \
116116
--severity-threshold "${FAIL_ON_SEVERITY:-none}" \
117-
--format sarif json markdown \
117+
--format sarif --format json --format markdown \
118118
--output-dir ./trivy-iac-reports \
119119
--output-vars ./trivy-iac-reports/counts.env \
120120
--no-timestamp \

0 commit comments

Comments
 (0)