Skip to content

Require the publish-preview label for PR previews - #140

Open
lelia wants to merge 3 commits into
mainfrom
lelia/fix-code-scanning
Open

lelia wants to merge 3 commits into
mainfrom
lelia/fix-code-scanning

Conversation

@lelia

@lelia lelia commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

PR previews

Adding publish-preview to an open pull request from this repository starts the preview build and publication to TestPyPI. This removes manual dispatch from the workflow and addresses the related CodeQL findings.

To publish the latest head or retry a failed run, remove and reapply the label. Resolve any merge conflicts first, because GitHub skips the workflow while the pull request has conflicts.

The unit suite checks the workflow trigger and the job conditions that limit previews to the designated label and same-repository pull requests. SDK code and package metadata are unchanged.

Verification

  • Unit suite passed with 206 tests, 1 skip, and 97 passing subtests.
  • actionlint passed for the preview workflow.
  • zizmor --offline reported the existing low-severity suggestion about the local setup action.

Previews are published only from the publish-preview label. The manual
dispatch path checked out the pull request head in the default branch's
context, which CodeQL reports as potential cache poisoning.
@lelia
lelia requested a review from a team as a code owner December 5, 2026 04:33
@cursor

cursor Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
CI and docs only; preview publishing remains opt-in via label with the same open/same-repo checks.

Overview
Publish PR Preview is now triggered only when the publish-preview label is added on a same-repo pull request. The workflow_dispatch entry point (with PR number input) and its supporting logic—default-branch guard, input-driven PR resolution, and concurrency fallback to run_id—are removed from .github/workflows/pr-preview.yml.

CONTRIBUTING.md drops maintainer instructions for Actions > Run workflow and states that retries and new heads are done by removing and re-applying the label.

Reviewed by Cursor Bugbot for commit ea384d6. Configure here.

@lelia

lelia commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

@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.

✅ Bugbot reviewed your changes and found no new issues!

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

Reviewed by Cursor Bugbot for commit ea384d6. Configure here.

@lelia lelia changed the title Remove the manual dispatch trigger from the PR preview workflow Require the publish-preview label for PR previews Dec 5, 2026

This branch was successfully deployed

No deployments
socket-firewall — ac838d7d Deployed Dec 5, 2026 by lelia via python-sfw-smoke-enterprise #166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant