Repository navigation
Conversation
Remove the workflow_dispatch trigger from the PR preview workflow. A dispatch runs from the default branch, so the build job ran pull request code with write access to the default branch's Actions cache. Label events run in the pull request's own cache scope and stay as the only way to publish previews. Drive the FOSSA CVSS metric lookup from a table of prop keys. CodeQL treated the literal "confidentialityImpact" lookup as secret data and flagged the JSON report written to the console; the value is a public CVSS metric. Bump the version to 2.15.11.
PR SummaryMedium Risk Overview The In Reviewed by Cursor Bugbot for commit 0d0e97f. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ 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 0d0e97f. Configure here.
| - Removed the manual dispatch trigger from the pull request preview workflow. A | ||
| dispatch ran pull request code with write access to the default branch's | ||
| GitHub Actions cache. Previews are now published only from the | ||
| `publish-preview` and `publish-docker-preview` labels. |
There was a problem hiding this comment.
Changelog narrates workflow incident
Low Severity
The 2.15.11 notes violate the user-facing changelog rule. They recount how manual dispatch ran pull request code against the default branch Actions cache, which is incident and workflow rationale rather than product, dashboard, or CI-log behavior. The published CLI is unchanged, so the Security heading overstates what this release does.
Triggered by learned rule: CHANGELOG is user-facing — short bullets only
Reviewed by Cursor Bugbot for commit 0d0e97f. Configure here.


Resolves the five open code scanning alerts.
Cache poisoning in
pr-preview.yml(alerts 3–6)A
workflow_dispatchrun executes from the default branch, so thebuildjob checked out and ran pull request code (sync_version.py,hatch version,hatch build, the wheel smoke test) with write access to the default branch's GitHub Actions cache. CodeQL has no access check that mitigates this forworkflow_dispatch, and the run-from-default-branch guard is what put the job in that scope.This removes the manual dispatch trigger and its inputs. The
publish-previewandpublish-docker-previewlabel triggers are unchanged; they run onpull_request, in the pull request's own cache scope. Nothing in the repository restores an Actions cache today, so this closes a latent path rather than an exploitable one.What goes away:
sdk_preview_versioninput for Docker previews.Dockerfile.previewstill accepts--build-arg SDK_PREVIEW_VERSION=...for local builds.CONTRIBUTING.mdis updated to match.Clear-text logging in
output.py(alert 7)False positive. CodeQL's sensitive-data heuristic matches "confidential", so
props.get("confidentialityImpact")in the FOSSA CVSS metric builder was treated as secret data. That taint followed the FOSSA payload into the JSON report written byoutput_console_json. The value is a public CVSS base metric._build_metricsnow reads the prop keys from a module-level_CVSS_METRIC_FIELDStable instead of eight inlineprops.get("...")literals. The output is unchanged. CodeQL only treats a lookup key as sensitive when a string literal reaches it through local flow, so this clears the alert. If you'd rather not change code for a heuristic, dismissing alert 7 as a false positive also works.Version
Bumped to 2.15.11 (2.15.10 is on PyPI), with a changelog entry.
Testing
uv run --extra test pytest tests/unit: 730 passedactionlint: no new findings (it still reports the existing$/self-repouses:syntax)zizmor --offline .github/workflows/pr-preview.yml: no findings