Skip to content

switch to new pre hook route#60

Merged
guptaankit015 merged 3 commits intomainfrom
feat/pre-hook-v2
Jan 8, 2026
Merged

switch to new pre hook route#60
guptaankit015 merged 3 commits intomainfrom
feat/pre-hook-v2

Conversation

@guptaankit015
Copy link
Contributor

@guptaankit015 guptaankit015 commented Dec 22, 2025

Note

Switch prerun scripts to call api/v1/runners_instance/$RUNNER_NAME/pre_hook using Authorization: Bearer WARPBUILD_RUNNER_VERIFICATION_TOKEN and updated payload fields.

  • CI Hooks:
    • Update tools/github/hooks/prerun.sh and tools/github/hooks/prerun.ps1 to call api/v1/runners_instance/$RUNNER_NAME/pre_hook instead of api/v1/job.
    • Replace X-Warpbuild-Scope-Token with Authorization: Bearer WARPBUILD_RUNNER_VERIFICATION_TOKEN and validate RUNNER_NAME env var.
    • Revise request body: remove runner_id, runner_name, and orchestrator_* fields; add vcs_workflow_run_id and vcs_workflow_run_attempt.

Written by Cursor Bugbot for commit 9d0d7ab. Configure here.

@guptaankit015 guptaankit015 merged commit 2737d7e into main Jan 8, 2026
4 checks passed
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.

2 participants