Your agent can prepare the pipeline change. A workspace admin provides the deployment key through your CI secret store. Review the change before it is deployed.
Use this when your deploy pipeline does not create GitHub Deployment records. If it does, Struct picks up deploys automatically. See Deploys.By default the action reports the workflow run’s commit (A fixed key such as
github.sha) and repository. Pass sha: when the run was not started by the deployed commit, for example with repository_dispatch, workflow_run or a schedule, where github.sha is the tip of the default branch. Pass repository: when the deploy runs from a different repository than the code, such as a separate GitOps repository. The action never fails your deploy if Struct is unreachable; its README lists every input, including how to report failed deploys.If one run deploys several services from the same commit, give each deploy its own idempotency-key built from the service, environment, commit and run, using the same environment value you pass to environment::api records only the service’s first deploy, and a key without the environment drops the production deploy that follows a canary in the same run.Authentication
Create a deployment key in Settings → API Keys (admins only), leaving Record deployments ticked. The key starts withsk- and is shown once. Send it as a bearer token.Request
Behavior
- Post once the SHA has reached, or failed to reach, the environment. There is no “in progress” status.
- Canary then production is two posts: same SHA, two environment names, two idempotency keys.
- The Struct GitHub App still needs access to the repository so Struct can read the diff and open fixes.
- Do not point a GitHub repository webhook at this endpoint. GitHub cannot send the bearer token, so every delivery is rejected. Use the GitHub Workflow option instead.