Skip to content

Commit 08f5c4c

Browse files
feat(gitlab): expose automatic_security_review input (A1, per-MR scope)
Wires the automatic_security_review toggle through the GitLab CI/CD Component. When set to "true", the security-reviewer subagent already bundled in .factory/droids/security-reviewer.md is spawned in parallel with the code-review subagents during Pass 1 (the conditional block in src/gitlab/prompts/candidates.ts already handles this via the securityReviewEnabled flag). Security findings are prefixed with [security] and flow through the same Pass-2 validator path as code-review findings, ultimately posted via a single batched submit_review call. No plugin install is required: the security-review skill that the subagent invokes as its first action is built into the Droid CLI binary. Mirrors the GitHub action's automatic_security_review input for the per-MR flow only; the scheduled full-repo scan (which additionally uses threat-model-generation / commit-security-scan / vulnerability-validation skills from the security-engineer plugin) is a separate feature. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
1 parent c71725e commit 08f5c4c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

gitlab/templates/review.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ spec:
1818
high-confidence. Set to "false" to disable suggestion blocks
1919
entirely. Mirrors the GitHub action's `include_suggestions` input.
2020
default: "true"
21+
automatic_security_review:
22+
description: |
23+
Automatically run a security-focused review subagent in parallel
24+
with the regular code review on every MR pipeline. Findings are
25+
prefixed with `[security]` and posted alongside code-review
26+
comments. Mirrors the GitHub action's `automatic_security_review`
27+
input. The security-review skill is built into the Droid CLI; no
28+
plugin install is required.
29+
default: "false"
2130
settings:
2231
description: |
2332
Droid Exec settings as a JSON string or a path to a JSON file.
@@ -57,6 +66,7 @@ droid-review:
5766
REVIEW_MODEL: "$[[ inputs.review_model ]]"
5867
REASONING_EFFORT: "$[[ inputs.reasoning_effort ]]"
5968
INCLUDE_SUGGESTIONS: "$[[ inputs.include_suggestions ]]"
69+
AUTOMATIC_SECURITY_REVIEW: "$[[ inputs.automatic_security_review ]]"
6070
DROID_SETTINGS: "$[[ inputs.settings ]]"
6171
DROID_SUCCESS: "true"
6272
before_script:

0 commit comments

Comments
 (0)