---
title: "TerminateGithubActionsJob"
method: POST
path: "/depot.core.v1.GithubActionsService/TerminateGithubActionsJob"
tags: ["GithubActionsService"]
---

# TerminateGithubActionsJob

`POST /depot.core.v1.GithubActionsService/TerminateGithubActionsJob`

## Request

- Base URL: `https://api.depot.dev`
- URL: `https://api.depot.dev/depot.core.v1.GithubActionsService/TerminateGithubActionsJob`
- Auth: HTTP bearer

Terminate the compute resource for a queued or running GitHub Actions job.

## Headers

- `Connect-Protocol-Version` 1, required: Define the version of the Connect protocol
- `Connect-Timeout-Ms` number: Define the timeout, in ms

## Request body

- DepotCoreV1TerminateGithubActionsJobRequest
  - `repository` string: Connected GitHub repository containing the job, in `owner/name` format.
  - `jobId` string: Unique GitHub identifier for the job. Returned by `ListGithubActionsJobs`.

## Response `200`

Success

- DepotCoreV1TerminateGithubActionsJobResponse
  - `jobId` string: Unique GitHub identifier for the job.
  - `outcome` 'GITHUB_ACTIONS_TERMINATION_OUTCOME_UNSPECIFIED' | 'GITHUB_ACTIONS_TERMINATION_OUTCOME_REQUESTED' | 'GITHUB_ACTIONS_TERMINATION_OUTCOME_ALREADY_REQUESTED' | 'GITHUB_ACTIONS_TERMINATION_OUTCOME_ALREADY_TERMINAL' | 'GITHUB_ACTIONS_TERMINATION_OUTCOME_NO_ACTIVE_COMPUTE'
  - `status` 'GITHUB_ACTIONS_JOB_STATUS_UNSPECIFIED' | 'GITHUB_ACTIONS_JOB_STATUS_QUEUED' | 'GITHUB_ACTIONS_JOB_STATUS_WAITING' | 'GITHUB_ACTIONS_JOB_STATUS_RUNNING' | 'GITHUB_ACTIONS_JOB_STATUS_FINISHED'

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/depot/apis/depot-github-actions-api.md) - [All operations](https://skmtc.dev/depot/apis/depot-github-actions-api/llms.txt) - [OpenAPI document](https://skmtc.dev/depot/apis/depot-github-actions-api/revisions/b1d46aeb0f7c?raw)
