Skip to content

Commit fa94140

Browse files
Merge pull request #23 from comma-compliance/chore/oneleet-ignore-rules-v2
chore: add .oneleetignore.json for false-positive SAST suppression
2 parents 4f41d38 + fe0102d commit fa94140

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.oneleetignore.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://docs.oneleet.com/code-security/oneleetignore.schema.json",
3+
"version": 1,
4+
"ignores": [
5+
{
6+
"pathPatterns": ["/cmd/arc-sync/main.go"],
7+
"$comment": "False positive: file paths come from validated config structs at startup. TODO: narrow to specific ruleIds once Oneleet SARIF rule identifier for file-inclusion (G304) is available.",
8+
"reason": "False positive (file inclusion). File paths at lines 392 and 644 are read from validated configuration structs set at application startup — no user-supplied input reaches these call sites. #nosec G304 annotations are present but Oneleet SAST does not honour go-sec suppression comments."
9+
},
10+
{
11+
"pathPatterns": ["/cmd/arc-sync/main.go"],
12+
"$comment": "False positive: URLs are device-auth endpoints from validated config. TODO: narrow to specific ruleIds once Oneleet SARIF rule identifier for HTTP variable URL (G107) is available.",
13+
"reason": "False positive (HTTP variable URL). URLs at lines 1193 and 1237 are device-auth endpoints constructed from validated application config, not from user input. #nosec G107 annotations are present but Oneleet SAST does not honour go-sec suppression comments."
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)