Skip to content

Remove the manual dispatch trigger from the PR preview workflow - #140

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

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

Conversation

@lelia

@lelia lelia commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

PR preview workflow

Removes the manual workflow_dispatch trigger and its pr_number input from Publish PR Preview. The publish-preview label is now the only way to publish a preview. To retry a failed publication or publish a new head, remove the label and apply it again.

The dispatch path ran in the default branch's context and checked out the pull request head, which CodeQL flags as actions/cache-poisoning/poisonable-step. This should close all six open code scanning alerts (#2, #3, #4, #5, #6, #9). Alert #9 points at .github/actions/setup-hatch/action.yml, which is unchanged; it is flagged only because this workflow calls it after the checkout.

The context job keeps its open-state and same-repository checks on the pull request. The concurrency group is keyed on the pull request number alone, since every run now comes from a pull request event.

CONTRIBUTING.md is updated to match.

Version

No version bump: nothing under socketdev/, pyproject.toml or uv.lock changes, so Version Check does not run.

Testing

  • actionlint .github/workflows/pr-preview.yml: no findings
  • zizmor --offline .github/workflows/pr-preview.yml .github/actions/setup-hatch/action.yml: no new findings (it still reports the existing low-severity self-repository suggestion for the setup-hatch step)

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.

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