Skip to content

fix(ci): validate the decisions reconcile area input and suppress CKV_GHA_7 - #3810

Merged
jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:jiparis/pfm-8171-fix-iac-decisions-reconcile
Nov 13, 2026
Merged

jiparis merged 2 commits into
chainloop-dev:mainfrom
jiparis:jiparis/pfm-8171-fix-iac-decisions-reconcile

Conversation

@jiparis

@jiparis jiparis commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Fixes the IaC scan violation (Checkov CKV_GHA_7) in .github/workflows/decisions_reconcile.yml. The rule requires workflow_dispatch inputs to be empty, so that user parameters cannot change the build output.

The area and dry_run inputs stay, because a manual reconcile of one area is useful:

  • CKV_GHA_7 is suppressed inline with a reason. The inputs only select the reconcile scope and a dry run, and the workflow builds no artifact. The scan still reports the result, as suppressed in source.
  • area now accepts only the page name of an area in docs/decisions/README.md, for example artifact-cas. The workflow passes the area name from the index to Claude's prompt, never the input text, so no free text reaches the prompt. An unknown value fails the run before Claude starts.

The violation came in with #3795, which merged while the Chainloop PR Validation check failed.

Related: PFM-8171

This PR was prepared with AI assistance (Claude Code).

… workflow

Checkov CKV_GHA_7 requires workflow_dispatch inputs to be empty, so that
user parameters cannot change the build output. A manual run is now a
dry run of all areas.

Refs: PFM-8171

Assisted-by: Claude Code
Signed-off-by: Jose Ignacio Paris Prieto <jiparis@chainloop.dev>

Chainloop-Trace-Sessions: 23e61960-55dc-47f2-8ca7-1ef8f3ca103a
@chainloop-platform

chainloop-platform Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ✅ 3 passing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
✅ Passed pr-user-story-linked pr-info -

View attestation ↗

AI Session Checks — 🟡 86% · ✅ 0 failing

Avg score Sessions Failing policies Attribution Files Lines Total Duration
🟡 86% 1 ✅ 0 100% AI / 0% Human 1 +33 / -15 37m57s

🟡 86% — 100% AI — ✅ All policies passing

Nov 12, 2026 15:50 UTC · 37m57s · $3.74 · 156 in / 39.2k out · claude-code 2.1.322 (claude-opus-5-5)

View session details ↗

Change Summary

Keeps manual area selection and dry-run controls with a documented exception for CKV_GHA_7. Validates area slugs against the decisions index and places the canonical area name, rather than raw input, into the reconcile prompt.

AI Session Overall Score

🟡 86% — Locally validated workflow changes warrant review for initial control-removal assumptions and a recovered safety scare.

AI Session Analysis Breakdown

🟢 96% · scope-discipline

No notes.

🟢 89% · alignment

🟢 Explained blocked operations and left subsequent commit and push to the user rather than claiming publication. · High Impact

🟢 88% · solution-quality

🟢 Rejects malformed and unknown area slugs, then uses the index’s canonical heading instead of raw input. · High Impact

🟢 87% · verification

🟢 Exact-step tests caught lookup failures and confirmed valid and hostile inputs after correction; the local scan passed. · High Impact

🟡 The conditional workflow-syntax lint invocation has no captured successful result. · Low Severity

🟡 76% · context-and-planning

🟠 Announced input removal without first resolving whether area selection and manual write mode must remain available. · Medium Severity

💡 Confirm which existing manual controls must remain before choosing removal over a targeted policy exception.

🟡 70% · user-trust-signal

🟠 The user interrupted, twice questioned possible root deletion, and requested an explanation before allowing work to resume. · Medium Severity

💡 When a command raises safety concerns, request its intended effects and confirmed execution state before resuming.


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai .github/workflows/decisions_reconcile.yml +33 / -15

Policies (4)

Status Policy Material Messages
✅ Passed ai-config-ai-agents-allowed ai-coding-session-23e619 -
✅ Passed ai-config-no-dangerous-commands ai-coding-session-23e619 -
✅ Passed ai-config-no-secrets ai-coding-session-23e619 -
✅ Passed ai-config-mcp-servers-allowed ai-coding-session-23e619 -

Security Checks — ✅ 7 passing

✅ secret-scan

Status Policy Messages
✅ Passed secrets-detection -

✅ github-actions-scan

Status Policy Messages
✅ Passed ci-pipeline-security -

✅ sast-scan

Status Policy Messages
✅ Passed owasp-top10-2025 -
✅ Passed sast -
✅ Passed cwe-top25 -
✅ Passed cwe-top26-40-cusp -

✅ iac-scan

Status Policy Messages
✅ Passed iac-misconfiguration -
Scan not applied (1)
Scan Reason
vulnerability-scan no manifest/lockfile changed

View attestation ↗


Powered by Chainloop and Chainloop Trace

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

View guided diff | Re-trigger cubic

@jiparis
jiparis requested a review from a team November 12, 2026 16:05
Refs: PFM-8171

Assisted-by: Claude Code
Signed-off-by: Jose Ignacio Paris Prieto <jiparis@chainloop.dev>

Chainloop-Trace-Sessions: 23e61960-55dc-47f2-8ca7-1ef8f3ca103a
@jiparis jiparis changed the title fix(ci): remove workflow_dispatch inputs from the decisions reconcile workflow fix(ci): validate the decisions reconcile area input and suppress CKV_GHA_7 Nov 12, 2026
@jiparis
jiparis merged commit b3240b7 into chainloop-dev:main Nov 13, 2026
17 checks passed
@jiparis
jiparis deleted the jiparis/pfm-8171-fix-iac-decisions-reconcile branch November 13, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants