Skip to content

feat(python-cli-parity): support authorized PR ignore commands - #1838

Open
John-David Dalton (jdalton) wants to merge 3 commits into
jdalton/surf-2213-port-pr-mr-workflowsfrom
jdalton/surf-2222-stack
Open

John-David Dalton (jdalton) wants to merge 3 commits into
jdalton/surf-2213-port-pr-mr-workflowsfrom
jdalton/surf-2222-stack

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

The Socket Python CLI now supports authorized @SocketSecurity ignore commands on GitHub pull requests and GitLab merge requests.

This PR adds socket ci support for ignore-all and package/version commands after provider permission checks. Use --disable-ignore to disable command processing and hide its guidance, or --ignore-authorization to select the enforce, strict, or off policy.

@cursor

cursor Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary

High Risk
Changes CI pass/fail and PR comment content based on third-party comments and provider permission checks; misconfiguration or authorization bypass could suppress blocking findings.

Overview
Adds PR/MR ignore commands to socket ci, aligned with the Python CLI: reviewers can post @SocketSecurity ignore pkg@version or @SocketSecurity ignore-all on the first line of a comment, and CI applies those exceptions to diff results and published security comments.

New flags: --disable-ignore turns off comment parsing and hides ignore guidance; --ignore-authorization chooses enforce (default), strict, or off for who may issue ignores. On GitHub, commands require verified write access (with a narrow OWNER fallback when permission checks fail in enforce mode); on GitLab, Developer+ membership is required and verification failures reject commands.

The CI flow reads matching comments when a PR baseline exists, strips ignored alerts from diff scan artifacts before output and blocking verdicts, filters rendered security comment sections, requests comment templates with bot_commands=true when ignores are enabled, and acknowledges applied commands via GitHub 👍 / GitLab thumbsup. GitLab API calls used only to read notes/members can use CI_JOB_TOKEN via a new readOnly mode on gitLabApiRequest.

Reviewed by Cursor Bugbot for commit c9f3d7f. Configure here.

@jdalton John-David Dalton (jdalton) changed the title jdalton/surf 2222 stack feat(python-cli-parity): support authorized PR ignore commands Dec 4, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the jdalton/surf-2222-stack branch 3 times, most recently from 6844404 to c9f3d7f Compare December 4, 2026 06:23

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c9f3d7f. Configure here.

Comment thread src/commands/ci/pr-ignore-commands.mts Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant