Repository navigation
Conversation
8ccd54e to
7decc69
Compare
| @@ -17,7 +17,6 @@ jobs: | |||
| runs-on: depot-ubuntu-24.04 | |||
| outputs: | |||
| test-code: ${{ steps.plan.outputs.test_code }} | |||
| review-security: ${{ steps.plan.outputs.review_security }} | |||
There was a problem hiding this comment.
Does this suggest we should allow dispatching on plan to get the outputs of it?
There was a problem hiding this comment.
See #365 and related stack.
Need to figure that out first.
7decc69 to
c570983
Compare
c570983 to
8287f1c
Compare
dda70af to
de9f8a8
Compare
e275071 to
abbce70
Compare
955479d to
7612a90
Compare
7612a90 to
456b837
Compare
2f11953 to
73bab51
Compare
| uses: astral-sh/github-actions/.github/workflows/pull-request-security-review.yml@3c57a5dba8ad854a97e8b9fbf454286a7574e677 | ||
| with: | ||
| pull-request: ${{ inputs.pull_request }} | ||
| head-sha: ${{ inputs.head_sha }} |
There was a problem hiding this comment.
[P1] Pin a reusable workflow that supports dispatch inputs
At the pinned 3c57a5d… revision, the reusable workflow declares neither pull-request nor head-sha; it still obtains PR metadata from github.event.pull_request. GitHub rejects these undeclared inputs, so removing the CI job leaves security reviews unable to run. Pin a dispatch-capable implementation that resolves and validates the PR metadata, and update the matching reusable_workflow SHA in the token-service policy.
| review: | ||
| needs: plan | ||
| if: ${{ github.event_name == 'pull_request' && github.repository == 'astral-sh/uv' && github.event.pull_request.head.repo.full_name == github.repository && needs.plan.outputs.review-security == 'true' }} |
There was a problem hiding this comment.
[P2] Retain the documentation-only review gate
This removes the only consumer of plan.outputs.review-security, which skips documentation-only changes. Neither the new dispatcher rule nor the pinned reusable workflow supplies an equivalent changed-path gate. Once the dispatch contract is fixed, a README-only PR will incur tool setup and a full security review on every update, contrary to the intended inexpensive documentation path. Add a trusted changed-path preflight and gate the reviewer on its result.
73bab51 to
267e82d
Compare
267e82d to
bb30963
Compare
bb30963 to
64dfe8a
Compare
64dfe8a to
db97081
Compare
db97081 to
1cbd496
Compare
1cbd496 to
d0e15c0
Compare
d0e15c0 to
e4baeed
Compare
e4baeed to
006af1f
Compare
006af1f to
23b654c
Compare
Pull-request-triggered CI currently invokes the security-review workflow from the pull-request revision, allowing repository-controlled setup and scripts to run around the automation environment and its publisher. Route eligible same-repository pull-request activity through the automations dispatcher and run the reviewer from trusted
main, preparing the plugin, prompt, schema, and threat model before checking out the verified head for sandboxed analysis.Keep documentation-only changes inexpensive, preserve the isolated
pull_requests: writepublisher and its freshness check, and remove the privileged reusable-workflow call from normal pull-request CI.