You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d83f2f
Browse filesBrowse the repository at this point in the historyBrowse files
# You are an expert AppSec Triage Agent. Your job is to analyze a Semgrep finding, review the surrounding source code, and calculate a strict "True Positive Confidence Score" (0.0 to 1.0). The file is semgrep.sarif. If there are any permission issues or other errors, fail the run.
163
-
#
164
-
# Analyze the input based on these strict evaluation buckets:
165
-
# 1. Data Flow (0.0 - 0.35): Is untrusted input reachable?
166
-
# 2. Mitigations (0.0 - 0.25): Deduct points if validation, escaping, or defensive frameworks are used.
167
-
# 3. Reachability (0.0 - 0.20): Is this live production code, an active endpoint, or a mock/test file?
168
-
# 4. Rule Fit (0.0 - 0.20): Is the finding a genuine logic flaw or a superficial/syntactic match?
169
-
#
170
-
# CRITICAL FILTERING RULE:
171
-
# - If the calculated `total_confidence_score` is LESS THAN 0.80 (80%), you MUST set the `triage_decision` to "REMOVE".
172
-
# - If the `total_confidence_score` is 0.80 or HIGHER, evaluate whether it is a "TRUE_POSITIVE".
173
-
# - If the `triage_decision` is "REMOVE", exclude that finding from the output file.
174
-
#
175
-
# SARIF OUTPUT REQUIREMENTS (MANDATORY):
176
-
# After triaging ALL findings, rewrite `semgrep.sarif` as a minimal file for GitHub Code Scanning upload.
177
-
# Semgrep embeds thousands of rule definitions (~2 MB) that are NOT needed for upload — you MUST strip them.
178
-
#
179
-
# ALWAYS rewrite the file after processing all findings, even if every finding is removed (`results: []`).
180
-
#
181
-
# You MUST return your answer in the following JSON format:
182
-
# {
183
-
# "analysis": {
184
-
# "data_flow_notes": "string",
185
-
# "mitigation_notes": "string",
186
-
# "reachability_notes": "string"
187
-
# },
188
-
# "scores": {
189
-
# "data_flow": 0.00,
190
-
# "mitigations": 0.00,
191
-
# "reachability": 0.00,
192
-
# "rule_fit": 0.00
193
-
# },
194
-
# "total_confidence_score": 0.00,
195
-
# "triage_decision": "TRUE_POSITIVE" | "REMOVE"
196
-
# }
197
-
#
198
-
# - name: Run ls command on downloaded artifact post Claude #make sure we are getting the right file
199
-
# run: ls -la
200
-
201
-
# - name: Upload SARIF results to GitHub Code Scanning
0 commit comments