Skip to content

feat: Add finding dismissal flow#19

Merged
homanp merged 2 commits into
mainfrom
feature/finding-dismissals
May 20, 2026
Merged

feat: Add finding dismissal flow#19
homanp merged 2 commits into
mainfrom
feature/finding-dismissals

Conversation

@superagent-security

@superagent-security superagent-security Bot commented May 20, 2026

Copy link
Copy Markdown

What does this PR do?

Adds a finding dismissal flow for Superagent PR scans. Trusted contributors can dismiss findings by replying with sufficient context on the inline finding thread or by resolving the GitHub review conversation, and the Security scan is cleared once every finding has been addressed.

Also updates finding display from severity labels to P0-P3 across PR comments, inline review comments, check summaries, and scanner guidance.

Fixes #

Checklist

  • I tested my changes
  • I reviewed my own code

Test plan

  • npm test -- src/lib/__tests__/findingPriority.test.ts src/services/__tests__/findingDismissal.test.ts src/services/__tests__/prFindings.test.ts src/services/__tests__/trustedContributor.test.ts src/services/__tests__/comments.test.ts src/services/__tests__/prScan.test.ts
  • npm run typecheck
  • Verified locally against superagent-ai/argus-hacker PR #33: resolving the single Superagent finding thread emitted Dismissed finding from resolved thread and changed Security scan to success.

Support dismissing Superagent findings from trusted review-thread replies and resolved conversations, using P0-P3 labels consistently across comments and checks.
@homanp homanp marked this pull request as ready for review May 20, 2026 20:49
@open-cla

open-cla Bot commented May 20, 2026

Copy link
Copy Markdown

Contributor License Agreement

The following contributors need CLA coverage:

  • @superagent-security[bot]

Review and sign the CLA

@superagent-security superagent-security Bot added the contributor:verified Contributor passed trust analysis. label May 20, 2026
@homanp homanp changed the title Add finding dismissal flow feat: Add finding dismissal flow May 20, 2026
@homanp homanp self-assigned this May 20, 2026
@superagent-security superagent-security Bot marked this pull request as draft May 20, 2026 20:49
@homanp homanp marked this pull request as ready for review May 20, 2026 20:49
@superagent-security superagent-security Bot added the pr:flagged PR flagged for review by security analysis. label May 20, 2026

@superagent-security superagent-security Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superagent found 1 security concern(s).

@superagent-security superagent-security Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superagent found 3 security concern(s).

Only prior contributors or users with write-level access can dismiss findings; PR authorship alone no longer grants dismissal trust.

@superagent-security superagent-security Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superagent found 3 security concern(s).

Comment thread src/services/findingDismissal.ts
Comment thread src/services/trustedContributor.ts
Comment thread src/services/findingDismissal.ts
@homanp homanp merged commit 73247b1 into main May 20, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:verified Contributor passed trust analysis. pr:flagged PR flagged for review by security analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant