GitHub Actions integration
GitHub Actions REST API for managing CI/CD workflows, runs, jobs, artifacts, and secrets. Trigger workflows, monitor run status, download artifacts, manage repository secrets, and control self-hosted runners.
Say what should happen.
The workflow builds itself.
Common GitHub Actions use cases
- freeing storage
- rotating credentials
- automate workflow management
- automate workflow run management
- capacity planning
- cleanup automation
- setting API keys
- security auditing
- custom CI/CD gates
- compliance auditing
What you can do with GitHub Actions
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Workflow run, 9 operations
approve_workflow_runApprove workflow runPOSTAgents: ask firstApprove a workflow run that requires approval (e.g., from first-time contributors)cancel_workflow_runCancel workflow runPOSTAgents: ask firstCancels an in-progress workflow run. Sends a cancellation signal to all running jobs.delete_workflow_runDelete workflow runDELETEAgents: ask firstDeletes a specific workflow run by ID. Removes the run, its logs, and associated check suites.force_cancel_workflow_runForce cancel workflow runPOSTAgents: ask firstForce-cancels a workflow run, bypassing conditions that would normally prevent cancellation (e.g., concurrency groups, post-job tasks).get_workflow_runGet workflow runGETAgents: ask firstGets detailed information about a specific workflow run including status, conclusion, timing, and triggering commit.get_workflow_run_attemptGet workflow run attemptGETAgents: ask firstGets a specific attempt of a workflow run including its status, conclusion, and timing for that attempt only.list_workflow_runsList workflow runsGETAgents: ask firstLists all workflow runs for a repository with optional filters for status, branch, and trigger event.list_workflow_runs_for_workflowList workflow runs for workflowGETAgents: ask firstList all runs for a specific workflow with optional status and branch filtersrerun_workflowRerun workflowPOSTAgents: ask firstRe-runs a completed workflow run. Creates a new run attempt using the same commit and workflow configuration.
Runner, 6 operations
create_runner_registration_tokenCreate runner registration tokenPOSTAgents: ask firstReturns a token (valid 1 hour) that the runner config script uses to register a new self-hosted runner with the repository.create_runner_remove_tokenCreate runner remove tokenPOSTAgents: ask firstReturns a token (valid 1 hour) used by the runner uninstall script to deregister a runner from the repository.delete_self_hosted_runnerDelete self hosted runnerDELETEAgents: ask firstForces removal of a self-hosted runner from the repository. Runner will appear offline immediately.get_self_hosted_runnerGet self hosted runnerGETAgents: ask firstGets details for a specific self-hosted runner: id, name, os, status, busy flag, and labels.list_runner_application_downloadsList runner application downloadsGETAgents: ask firstLists download URLs for self-hosted runner binaries across supported OS and architectures.list_self_hosted_runnersList self hosted runnersGETAgents: ask firstLists all self-hosted runners registered for a repository including their status, OS, and labels.
Secret, 5 operations
create_or_update_repo_secretCreate or update repo secretPUTAgents: ask firstCreates or updates a repository secret. The value must be encrypted with the repository's public key before sending.delete_repo_secretDelete repo secretDELETEAgents: ask firstDeletes a repository secret by name. Workflows can no longer access this secret after deletion.get_repo_public_keyGet repo public keyGETAgents: ask firstGets the repository's public key for encrypting secrets before creating or updating them via the API.get_repo_secretGet repo secretGETAgents: ask firstGets metadata for a specific repository secret. Returns name and timestamps but never the secret value.list_repo_secretsList repo secretsGETAgents: ask firstLists all secrets available to GitHub Actions workflows in a repository. Returns secret names and creation dates (not values).
Workflow, 5 operations
create_workflow_dispatchCreate workflow dispatchPOSTAgents: ask firstTriggers a workflow_dispatch event to manually start a workflow run. Requires the workflow to have a workflow_dispatch trigger configured.disable_workflowDisable workflowPUTAgents: ask firstDisable a workflow, preventing future runs from being triggeredenable_workflowEnable workflowPUTAgents: ask firstEnable a workflow that was previously disabledget_workflowGet workflowGETAgents: ask firstGets a specific workflow definition by its numeric ID or filename. Returns workflow metadata including state, path, and badge URL.list_workflowsList workflowsGETAgents: ask firstLists all workflows configured in a repository. Returns workflow id, name, path, state, and URLs for each workflow definition file.
Actions cache, 4 operations
delete_actions_cache_by_idDelete actions cache by idDELETEAgents: ask firstDeletes a single GitHub Actions cache by its numeric ID.delete_actions_cache_by_keyDelete actions cache by keyDELETEAgents: ask firstDeletes one or more caches matching the supplied key (and optionally ref).get_actions_cache_usageGet actions cache usageGETAgents: ask firstReturns total cache storage used by the repository and the count of full cache entries.list_actions_cachesList actions cachesGETAgents: ask firstLists all GitHub Actions caches for a repository with filtering by ref, key, and sorting options.
Artifact, 4 operations
delete_artifactDelete artifactDELETEAgents: ask firstDeletes a workflow artifact by ID. Permanently removes the artifact and its associated storage.download_artifactDownload artifactGETAgents: ask firstDownloads an artifact archive as a zip file; the tool follows GitHub's redirect (302) to the temporary download URL.get_artifactGet artifactGETAgents: ask firstGets metadata for a specific artifact by ID including name, size, expiration, and download URL.list_run_artifactsList run artifactsGETAgents: ask firstLists all artifacts produced by a workflow run. Returns artifact names, sizes, and download URLs.
Job, 4 operations
download_job_logsDownload job logsGETAgents: ask firstDownloads the raw log file for a workflow job; the tool follows GitHub's redirect (302) to the temporary log URL.get_jobGet jobGETAgents: ask firstGets detailed information about a specific job including all steps, timing, and runner details.list_workflow_run_jobsList workflow run jobsGETAgents: ask firstLists all jobs within a specific workflow run. Returns job names, status, conclusion, and step details.rerun_jobRerun jobPOSTAgents: ask firstRe-runs a specific job and any jobs that depend on it. Other jobs in the run are unaffected.
Variable, 4 operations
create_repo_variableCreate repo variablePOSTAgents: ask firstCreates a new repository variable for GitHub Actions. Variables store non-sensitive configuration accessible in workflows.delete_repo_variableDelete repo variableDELETEAgents: ask firstDeletes a repository variable by name. Workflows referencing this variable will receive an empty value.list_repo_variablesList repo variablesGETAgents: ask firstLists all repository-level variables available to GitHub Actions workflows. Unlike secrets, variable values are returned.update_repo_variableUpdate repo variablePATCHAgents: ask firstUpdates the value of an existing repository variable.
Workflow run log, 3 operations
delete_workflow_run_logsDelete workflow run logsDELETEAgents: ask firstPermanently deletes all logs for a workflow run. Useful for removing logs containing sensitive data before they reach retention expiry.download_workflow_run_logsDownload workflow run logsGETAgents: ask firstDownload the logs archive (ZIP) for a workflow runlist_workflow_run_attempts_logsList workflow run attempts logsGETAgents: ask firstDownloads the logs archive (ZIP) for a specific attempt of a workflow run. The tool follows GitHub's redirect (302) to a short-lived URL.
Actions permissions, 2 operations
get_actions_permissionsGet actions permissionsGETAgents: ask firstReturns whether GitHub Actions is enabled for the repository and which actions/workflows are allowed.set_actions_permissionsSet actions permissionsPUTAgents: ask firstEnables or disables GitHub Actions for the repository and configures which actions are permitted.
Deployment, 2 operations
list_pending_deploymentsList pending deploymentsGETAgents: ask firstLists all deployment environments awaiting approval (required-reviewer or wait-timer protection rules) for a workflow run.review_pending_deploymentsReview pending deploymentsPOSTAgents: ask firstApproves or rejects pending deployments waiting on protection rules. Used by required reviewers to gate production releases.
Oidc, 2 operations
get_oidc_subject_claim_templateGet oidc subject claim templateGETAgents: ask firstReturns the customization template used when generating the OIDC subject claim (sub) for the repository's workflows.set_oidc_subject_claim_templateSet oidc subject claim templatePUTAgents: ask firstCustomizes the OIDC subject claim template used in tokens issued to workflows in this repository, enabling fine-grained trust with cloud providers.
Workflow permissions, 2 operations
get_default_workflow_permissionsGet default workflow permissionsGETAgents: ask firstReturns the default GITHUB_TOKEN permissions (read or write) and whether Actions can approve pull requests.set_default_workflow_permissionsSet default workflow permissionsPUTAgents: ask firstSets the default GITHUB_TOKEN scope (read or write) and whether Actions can approve pull request reviews.
Deployment protection rule, 1 operation
review_custom_deployment_protection_ruleReview custom deployment protection rulePOSTAgents: ask firstSubmits a review for a custom deployment protection rule. Called by GitHub Apps that implement custom approval gates.
Environment secret, 1 operation
list_environment_secretsList environment secretsGETAgents: ask firstList all secrets configured for a deployment environment
Org secret, 1 operation
list_org_secretsList org secretsGETAgents: ask firstList all GitHub Actions secrets configured at the organization level
Rerun failed job, 1 operation
rerun_failed_jobsRerun failed jobsPOSTAgents: ask firstRe-run only the failed jobs of a workflow run
Runner label, 1 operation
list_runner_labelsList runner labelsGETAgents: ask firstLists all labels (read-only and custom) attached to a self-hosted runner. Labels are used to target jobs via runs-on.
Workflow run approval, 1 operation
list_workflow_run_approvalsList workflow run approvalsGETAgents: ask firstReturns the audit trail of approvals and rejections for a workflow run, including reviewer, environment, state, and comment.
Workflow run usage, 1 operation
get_workflow_run_usageGet workflow run usageGETAgents: ask firstGet billable execution time and timing details for a workflow run
Use GitHub Actions from Claude Code, Cursor or Codex
Connect GitHub Actions in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its GitHub Actions operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect GitHub Actions
- Create your workspace
Sign up free. Nothing to install.
- Connect GitHub Actions once
Add your GitHub Actions connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
GitHub Actions integration FAQ
What can you do with the GitHub Actions integration?
LiveContext exposes 59 operations on GitHub Actions, covering workflow run, runner, secret and workflow. Common uses include freeing storage, rotating credentials and automate workflow management.
