Skip to content

Commit fdbde65

Browse files
committed
build: fail on poutine violation
Signed-off-by: Mikaël Barbero <mikael.barbero@eclipse-foundation.org>
1 parent bc6ed16 commit fdbde65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-guardrails.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: |
8484
# poutine emits an all-zero GUID that fails GitHub's UUID validation;
8585
# pipe through jq to replace it with a valid RFC-4122 nil-equivalent.
86-
poutine analyze_local "${GITHUB_WORKSPACE}" -f sarif \
86+
poutine analyze_local "${GITHUB_WORKSPACE}" -f sarif --fail-on-violation \
8787
| jq '(.runs[].tool.driver.supportedTaxonomies[] | select(.guid == "00000000-0000-0000-0000-000000000000")).guid = "00000000-0000-1000-8000-000000000000"' \
8888
> poutine_results.sarif
8989
@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Fail if poutine reported findings
9696
if: steps.poutine.outcome == 'failure'
97-
run: poutine analyze_local "${GITHUB_WORKSPACE}"
97+
run: poutine analyze_local "${GITHUB_WORKSPACE}" --fail-on-violation
9898

9999
trufflehog:
100100
name: Analyze (TruffleHog)

prek.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ hooks = [
108108
name = "Analyze workflows (Poutine)",
109109
language = "system",
110110
entry = "poutine",
111-
args = ["analyze_local", ".", "--format", "pretty"],
111+
args = ["analyze_local", ".", "--format", "pretty", "--fail-on-violation"],
112112
files = '^\.github/workflows/.*\.ya?ml$|^\.github/actions/.*\.ya?ml$',
113113
pass_filenames = false,
114114
},

0 commit comments

Comments
 (0)