Skip to content

fix: harden Action resolve against consumer source builds - #54

Merged
afelin merged 1 commit into
mainfrom
cursor/action-execution-harden
Sep 6, 2026
Merged

afelin merged 1 commit into
mainfrom
cursor/action-execution-harden

Conversation

@afelin

@afelin afelin commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Consumer Action path never go builds from a matching go.mod; it downloads the checksum-verified pin (v0.5.2 default).
  • All Action inputs / step outputs reach shell and JS via environment variables; version/boolean validated as data.
  • Dogfood source build remains explicit: CURBPACK_ACTION_ALLOW_SOURCE_BUILD=1 and GITHUB_REPOSITORY=RI-SE/curbpack only.
  • Regression scripts/action-resolve-test.sh exercises the real resolver (scripts/action-resolve-bin.sh), not a stub. Pin stays @v0.5.2.

Test plan

  • bash scripts/action-resolve-test.sh
  • go test ./...
  • ./scripts/redteam-pilot.sh
  • ./scripts/claim-safety.sh
  • go run ./cmd/curbpack check
  • CI green on this PR
  • Merge with --match-head-commit (no --admin, no pin-bump)

Made with Cursor

Stop selecting go build from a matching go.mod alone; consumer path
always checksum-verifies the pinned release. Pass Action inputs via
env and validate version/boolean as data. Dogfood source remains
explicit RI-SE workflow only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Curbpack check

✅ Gates green — readiness 100%

Prepares evidence for human review — not a conformity assessment or certification.

@afelin
afelin merged commit bb757ce into main Sep 6, 2026
9 checks passed
@afelin
afelin deleted the cursor/action-execution-harden branch September 6, 2026 01:55
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