Skip to content

fix: resolve semgrep blocking findings on full-repo scan - #280

Merged
harshtandiya merged 1 commit into
developfrom
fix/semgrep-blocking-findings
Jul 23, 2026
Merged

fix: resolve semgrep blocking findings on full-repo scan#280
harshtandiya merged 1 commit into
developfrom
fix/semgrep-blocking-findings

Conversation

@harshtandiya

Copy link
Copy Markdown
Collaborator

What

PR #278/#279 added push triggers for develop/main to the Linters workflow. On push, semgrep ci runs a full-repo scan (no PR diff baseline), which surfaced 13 pre-existing blocking findings and broke CI on both branches. This resolves all of them:

  • frappe-missing-translate-function (6): wrap user-facing frappe.throw messages in _()
  • frappe-manual-commit (4): # nosemgrep on the three intentional commits (booking persistence before payment-link generation, payment-received persistence in gateway callback, CSRF token session persistence); removed the redundant commit in the daily scheduler task (scheduler commits on success)
  • frappe-ssti (1): # nosemgrep — static, repo-controlled ICS template path
  • guest-whitelisted-method (1): # nosemgrep — hard-gated behind developer_mode
  • relaxed-permissions (1): .semgrepignore for buzz_event.json; role "All" read access on events is intentional (public event info)

Verification

Local run of the exact CI config (frappe-semgrep-rules + r/python.lang.correctness): 0 findings, 73 rules, 367 files. pre-commit passes on all changed files.

🤖 Generated with Claude Code

- wrap user-facing frappe.throw messages in _()
- mark intentional manual commits with nosemgrep
- drop redundant commit in daily scheduler task
- nosemgrep static-path ICS template render and dev-mode guest method
- semgrepignore Buzz Event doctype JSON (role "All" read is intentional)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@harshtandiyaharshtandiya added the backport main backport to main branch label Jul 23, 2026

@greptile-appsgreptile-appsBot 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.

harshtandiya has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@harshtandiya
harshtandiya merged commit f598351 into developJul 23, 2026
8 checks passed
@harshtandiya
harshtandiya deleted the fix/semgrep-blocking-findings branch July 23, 2026 13:44
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR for main:

samkit5495 pushed a commit to Klaimify/buzz that referenced this pull request Jul 28, 2026
fix: resolve semgrep blocking findings on full-repo scan (bwhtech#280)
- wrap user-facing frappe.throw messages in _()
- mark intentional manual commits with nosemgrep
- drop redundant commit in daily scheduler task
- nosemgrep static-path ICS template render and dev-mode guest method
- semgrepignore Buzz Event doctype JSON (role "All" read is intentional)
(cherry picked from commit f598351)
Co-authored-by: Harsh Tandiya <harsh.tandiya@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport mainbackport to main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@harshtandiya