Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 136 additions & 13 deletions .github/workflows/daily-semgrep-scan.lock.yml

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

37 changes: 37 additions & 0 deletions .github/workflows/daily-semgrep-scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,45 @@ safe-outputs:
tools:
cli-proxy: true

experiments:
semgrep_output_format:
variants: [bullet_list, structured_sections, prose]
description: "Tests whether the structure of Semgrep findings output (bullet list vs. grouped sections vs. prose) affects code scanning alert creation rate and output completeness."
hypothesis: "H0: no change in alert creation rate across formats. H1: structured_sections produces ≥15% more alerts successfully created vs. baseline bullet_list."
metric: alert_creation_rate
secondary_metrics: [run_duration_ms, output_length_chars, findings_reported]
guardrail_metrics:
- name: run_success_rate
threshold: ">=0.85"
min_samples: 30
weight: [34, 33, 33]
start_date: "2026-05-17"
analysis_type: proportion_test
tags: [security, output-quality, semgrep]
issue: 32795

---

Scan the repository for SQL injection vulnerabilities using Semgrep.

{{#if experiments.semgrep_output_format == 'bullet_list' }}
Report each finding as a flat bullet point in this format:
- **[SEVERITY]** `<file>:<line>` — Rule: `<rule_id>` — <message>

Create one code scanning alert per finding.
{{/if}}
{{#if experiments.semgrep_output_format == 'structured_sections' }}
Structure your findings report with:
1. A summary table: | Severity | Count |
2. Sections grouped by severity (Critical, High, Medium, Low), then by rule ID
3. For each finding: file path, line number, rule, and recommended fix

Create one code scanning alert per finding.
{{/if}}
{{#if experiments.semgrep_output_format == 'prose' }}
Write a narrative security assessment describing the vulnerability patterns found. Embed specific findings (file, line, rule) within the prose. Conclude with a prioritized remediation list.

Create one code scanning alert per finding.
{{/if}}

{{#runtime-import shared/noop-reminder.md}}