GitHub · Capability

GitHub Repos API — Workflows

GitHub Repos API — Workflows. 28 operations. Lead operation: Download Job Logs For Workflow Run. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubWorkflows

What You Can Do

GET
Downloadjoblogsforworkflowrun — Download Job Logs For Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}/logs
POST
Rerunjobfromworkflowrun — Re-run Job From Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
GET
Getthelevelofaccessforworkflowsoutsideoftherepository — Get The Level Of Access For Workflows Outside Of The Repository
/v1/repos/{owner}/{repo}/actions/permissions/access
PUT
Setthelevelofaccessforworkflowsoutsideoftherepository — Set The Level Of Access For Workflows Outside Of The Repository
/v1/repos/{owner}/{repo}/actions/permissions/access
GET
Getdefaultworkflowpermissionsforrepository — Get Default Workflow Permissions For Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
PUT
Setdefaultworkflowpermissionsforrepository — Set Default Workflow Permissions For Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
GET
Listworkflowrunsforrepository — List Workflow Runs For Repository
/v1/repos/{owner}/{repo}/actions/runs
GET
Getworkflowrun — Get Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}
DELETE
Deleteworkflowrun — Delete Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}
GET
Getthereviewhistoryforworkflowrun — Get The Review History For Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/approvals
GET
Listworkflowrunartifacts — List Workflow Run Artifacts
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/artifacts
GET
Getworkflowrunattempt — Get Workflow Run Attempt
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}
GET
Listjobsforworkflowrunattempt — List Jobs For Workflow Run Attempt
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs
GET
Downloadworkflowrunattemptlogs — Download Workflow Run Attempt Logs
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/logs
POST
Cancelworkflowrun — Cancel Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/cancel
GET
Listjobsforworkflowrun — List Jobs For Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/jobs
GET
Downloadworkflowrunlogs — Download Workflow Run Logs
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/logs
DELETE
Deleteworkflowrunlogs — Delete Workflow Run Logs
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/logs
GET
Getpendingdeploymentsforworkflowrun — Get Pending Deployments For Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/pending-deployments
POST
Reviewpendingdeploymentsforworkflowrun — Review Pending Deployments For Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/pending-deployments
POST
Rerunworkflow — Re-run Workflow
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun
POST
Rerunfailedjobsfromworkflowrun — Re-run Failed Jobs From Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun-failed-jobs
GET
Listrepositoryworkflows — List Repository Workflows
/v1/repos/{owner}/{repo}/actions/workflows
GET
Getworkflow — Get Workflow
/v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}
PUT
Disableworkflow — Disable Workflow
/v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}/disable
POST
Createworkflowdispatchevent — Create Workflow Dispatch Event
/v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}/dispatches
PUT
Enableworkflow — Enable Workflow
/v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}/enable
GET
Listworkflowrunsforworkflow — List Workflow Runs For Workflow
/v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}/runs

MCP Tools

download-job-logs-workflow-run

Download Job Logs For Workflow Run

read-only idempotent
re-run-job-workflow-run

Re-run Job From Workflow Run

get-level-access-workflows-outside

Get The Level Of Access For Workflows Outside Of The Repository

read-only idempotent
set-level-access-workflows-outside

Set The Level Of Access For Workflows Outside Of The Repository

idempotent
get-default-workflow-permissions-repository

Get Default Workflow Permissions For Repository

read-only idempotent
set-default-workflow-permissions-repository

Set Default Workflow Permissions For Repository

idempotent
list-workflow-runs-repository

List Workflow Runs For Repository

read-only idempotent
get-workflow-run

Get Workflow Run

read-only idempotent
delete-workflow-run

Delete Workflow Run

idempotent
get-review-history-workflow-run

Get The Review History For Workflow Run

read-only idempotent
list-workflow-run-artifacts

List Workflow Run Artifacts

read-only idempotent
get-workflow-run-attempt

Get Workflow Run Attempt

read-only idempotent
list-jobs-workflow-run-attempt

List Jobs For Workflow Run Attempt

read-only idempotent
download-workflow-run-attempt-logs

Download Workflow Run Attempt Logs

read-only idempotent
cancel-workflow-run

Cancel Workflow Run

list-jobs-workflow-run

List Jobs For Workflow Run

read-only idempotent
download-workflow-run-logs

Download Workflow Run Logs

read-only idempotent
delete-workflow-run-logs

Delete Workflow Run Logs

idempotent
get-pending-deployments-workflow-run

Get Pending Deployments For Workflow Run

read-only idempotent
review-pending-deployments-workflow-run

Review Pending Deployments For Workflow Run

re-run-workflow

Re-run Workflow

re-run-failed-jobs-workflow

Re-run Failed Jobs From Workflow Run

list-repository-workflows

List Repository Workflows

read-only idempotent
get-workflow

Get Workflow

read-only idempotent
disable-workflow

Disable Workflow

idempotent
create-workflow-dispatch-event

Create Workflow Dispatch Event

enable-workflow

Enable Workflow

idempotent
list-workflow-runs-workflow

List Workflow Runs For Workflow

read-only idempotent

Capability Spec

temp-workflows.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Workflows
  description: 'GitHub Repos API — Workflows. 28 operations. Lead operation: Download Job Logs For Workflow Run. Self-contained
    Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Workflows
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-workflows
    baseUri: ''
    description: GitHub Repos API — Workflows business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-jobs-job_id-logs
      path: /repos/{owner}/{repo}/actions/jobs/{job_id}/logs
      operations:
      - name: downloadjoblogsforworkflowrun
        method: GET
        description: Download Job Logs For Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-jobs-job_id-rerun
      path: /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
      operations:
      - name: rerunjobfromworkflowrun
        method: POST
        description: Re-run Job From Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-actions-permissions-access
      path: /repos/{owner}/{repo}/actions/permissions/access
      operations:
      - name: getthelevelofaccessforworkflowsoutsideoftherepository
        method: GET
        description: Get The Level Of Access For Workflows Outside Of The Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: setthelevelofaccessforworkflowsoutsideoftherepository
        method: PUT
        description: Set The Level Of Access For Workflows Outside Of The Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-permissions-workflow
      path: /repos/{owner}/{repo}/actions/permissions/workflow
      operations:
      - name: getdefaultworkflowpermissionsforrepository
        method: GET
        description: Get Default Workflow Permissions For Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: setdefaultworkflowpermissionsforrepository
        method: PUT
        description: Set Default Workflow Permissions For Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-runs
      path: /repos/{owner}/{repo}/actions/runs
      operations:
      - name: listworkflowrunsforrepository
        method: GET
        description: List Workflow Runs For Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id
      path: /repos/{owner}/{repo}/actions/runs/{run_id}
      operations:
      - name: getworkflowrun
        method: GET
        description: Get Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deleteworkflowrun
        method: DELETE
        description: Delete Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-approvals
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/approvals
      operations:
      - name: getthereviewhistoryforworkflowrun
        method: GET
        description: Get The Review History For Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-artifacts
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
      operations:
      - name: listworkflowrunartifacts
        method: GET
        description: List Workflow Run Artifacts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-attempts-attempt_number
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}
      operations:
      - name: getworkflowrunattempt
        method: GET
        description: Get Workflow Run Attempt
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs
      operations:
      - name: listjobsforworkflowrunattempt
        method: GET
        description: List Jobs For Workflow Run Attempt
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-attempts-attempt_number-logs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs
      operations:
      - name: downloadworkflowrunattemptlogs
        method: GET
        description: Download Workflow Run Attempt Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-cancel
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/cancel
      operations:
      - name: cancelworkflowrun
        method: POST
        description: Cancel Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-jobs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
      operations:
      - name: listjobsforworkflowrun
        method: GET
        description: List Jobs For Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution
            of the workflow run. `all` returns all jobs for workflow ru
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-logs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/logs
      operations:
      - name: downloadworkflowrunlogs
        method: GET
        description: Download Workflow Run Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: deleteworkflowrunlogs
        method: DELETE
        description: Delete Workflow Run Logs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-runs-run_id-pending_deployments
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments
      operations:
      - name: getpendingdeploymentsforworkflowrun
        method: GET
        description: Get Pending Deployments For Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: reviewpendingdeploymentsforworkflowrun
        method: POST
        description: Review Pending Deployments For Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-runs-run_id-rerun
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun
      operations:
      - name: rerunworkflow
        method: POST
        description: Re-run Workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-actions-runs-run_id-rerun-failed-jobs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs
      operations:
      - name: rerunfailedjobsfromworkflowrun
        method: POST
        description: Re-run Failed Jobs From Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-actions-workflows
      path: /repos/{owner}/{repo}/actions/workflows
      operations:
      - name: listrepositoryworkflows
        method: GET
        description: List Repository Workflows
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-workflows-workflow_id
      path: /repos/{owner}/{repo}/actions/workflows/{workflow_id}
      operations:
      - name: getworkflow
        method: GET
        description: Get Workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-workflows-workflow_id-disable
      path: /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable
      operations:
      - name: disableworkflow
        method: PUT
        description: Disable Workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-workflows-workflow_id-dispatches
      path: /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
      operations:
      - name: createworkflowdispatchevent
        method: POST
        description: Create Workflow Dispatch Event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-workflows-workflow_id-enable
      path: /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable
      operations:
      - name: enableworkflow
        method: PUT
        description: Enable Workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: repos-owner-repo-actions-workflows-workflow_id-runs
      path: /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs
      operations:
      - name: listworkflowrunsforworkflow
        method: GET
        description: List Workflow Runs For Workflow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: temp-workflows-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Workflows. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}/logs
      name: repos-owner-repo-actions-jobs-job-id-logs
      description: REST surface for repos-owner-repo-actions-jobs-job_id-logs.
      operations:
      - method: GET
        name: downloadjoblogsforworkflowrun
        description: Download Job Logs For Workflow Run
        call: temp-workflows.downloadjoblogsforworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
      name: repos-owner-repo-actions-jobs-job-id-rerun
      description: REST surface for repos-owner-repo-actions-jobs-job_id-rerun.
      operations:
      - method: POST
        name: rerunjobfromworkflowrun
        description: Re-run Job From Workflow Run
        call: temp-workflows.rerunjobfromworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/permissions/access
      name: repos-owner-repo-actions-permissions-access
      description: REST surface for repos-owner-repo-actions-permissions-access.
      operations:
      - method: GET
        name: getthelevelofaccessforworkflowsoutsideoftherepository
        description: Get The Level Of Access For Workflows Outside Of The Repository
        call: temp-workflows.getthelevelofaccessforworkflowsoutsideoftherepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setthelevelofaccessforworkflowsoutsideoftherepository
        description: Set The Level Of Access For Workflows Outside Of The Repository
        call: temp-workflows.setthelevelofaccessforworkflowsoutsideoftherepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/permissions/workflow
      name: repos-owner-repo-actions-permissions-workflow
      description: REST surface for repos-owner-repo-actions-permissions-workflow.
      operations:
      - method: GET
        name: getdefaultworkflowpermissionsforrepository
        description: Get Default Workflow Permissions For Repository
        call: temp-workflows.getdefaultworkflowpermissionsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setdefaultworkflowpermissionsforrepository
        description: Set Default Workflow Permissions For Repository
        call: temp-workflows.setdefaultworkflowpermissionsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs
      name: repos-owner-repo-actions-runs
      description: REST surface for repos-owner-repo-actions-runs.
      operations:
      - method: GET
        name: listworkflowrunsforrepository
        description: List Workflow Runs For Repository
        call: temp-workflows.listworkflowrunsforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}
      name: repos-owner-repo-actions-runs-run-id
      description: REST surface for repos-owner-repo-actions-runs-run_id.
      operations:
      - method: GET
        name: getworkflowrun
        description: Get Workflow Run
        call: temp-workflows.getworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteworkflowrun
        description: Delete Workflow Run
        call: temp-workflows.deleteworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/approvals
      name: repos-owner-repo-actions-runs-run-id-approvals
      description: REST surface for repos-owner-repo-actions-runs-run_id-approvals.
      operations:
      - method: GET
        name: getthereviewhistoryforworkflowrun
        description: Get The Review History For Workflow Run
        call: temp-workflows.getthereviewhistoryforworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/artifacts
      name: repos-owner-repo-actions-runs-run-id-artifacts
      description: REST surface for repos-owner-repo-actions-runs-run_id-artifacts.
      operations:
      - method: GET
        name: listworkflowrunartifacts
        description: List Workflow Run Artifacts
        call: temp-workflows.listworkflowrunartifacts
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}
      name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number
      description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number.
      operations:
      - method: GET
        name: getworkflowrunattempt
        description: Get Workflow Run Attempt
        call: temp-workflows.getworkflowrunattempt
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs
      name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number-jobs
      description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs.
      operations:
      - method: GET
        name: listjobsforworkflowrunattempt
        description: List Jobs For Workflow Run Attempt
        call: temp-workflows.listjobsforworkflowrunattempt
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/logs
      name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number-logs
      description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number-logs.
      operations:
      - method: GET
        name: downloadworkflowrunattemptlogs
        description: Download Workflow Run Attempt Logs
        call: temp-workflows.downloadworkflowrunattemptlogs
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/cancel
      name: repos-owner-repo-actions-runs-run-id-cancel
      description: REST surface for repos-owner-repo-actions-runs-run_id-cancel.
      operations:
      - method: POST
        name: cancelworkflowrun
        description: Cancel Workflow Run
        call: temp-workflows.cancelworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/jobs
      name: repos-owner-repo-actions-runs-run-id-jobs
      description: REST surface for repos-owner-repo-actions-runs-run_id-jobs.
      operations:
      - method: GET
        name: listjobsforworkflowrun
        description: List Jobs For Workflow Run
        call: temp-workflows.listjobsforworkflowrun
        with:
          filter: rest.filter
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/logs
      name: repos-owner-repo-actions-runs-run-id-logs
      description: REST surface for repos-owner-repo-actions-runs-run_id-logs.
      operations:
      - method: GET
        name: downloadworkflowrunlogs
        description: Download Workflow Run Logs
        call: temp-workflows.downloadworkflowrunlogs
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteworkflowrunlogs
        description: Delete Workflow Run Logs
        call: temp-workflows.deleteworkflowrunlogs
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/pending-deployments
      name: repos-owner-repo-actions-runs-run-id-pending-deployments
      description: REST surface for repos-owner-repo-actions-runs-run_id-pending_deployments.
      operations:
      - method: GET
        name: getpendingdeploymentsforworkflowrun
        description: Get Pending Deployments For Workflow Run
        call: temp-workflows.getpendingdeploymentsforworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: reviewpendingdeploymentsforworkflowrun
        description: Review Pending Deployments For Workflow Run
        call: temp-workflows.reviewpendingdeploymentsforworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun
      name: repos-owner-repo-actions-runs-run-id-rerun
      description: REST surface for repos-owner-repo-actions-runs-run_id-rerun.
      operations:
      - method: POST
        name: rerunworkflow
        description: Re-run Workflow
        call: temp-workflows.rerunworkflow
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun-failed-jobs
      name: repos-owner-repo-actions-runs-run-id-rerun-failed-jobs
      description: REST surface for repos-owner-repo-actions-runs-run_id-rerun-failed-jobs.
      operations:
      - method: POST
        name: rerunfailedjobsfromworkflowrun
        description: Re-run Failed Jobs From Workflow Run
        call: temp-workflows.rerunfailedjobsfromworkflowrun
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/workflows
      name: repos-owner-repo-actions-workflows
      description: REST surface for repos-owner-repo-actions-workflows.
      operations:
      - method: GET
        name: listrepositoryworkflows
        description: List Repository Workflows
        call: temp-workflows.listrepositoryworkflows
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/workflows/{workflow-id}
      name: repos-owner-repo-actions-workflows-workflow-id
      description: REST surface for repos-owner-repo-actions-workflows-workflow_id.
      operations:
      - method: GET
        name: getworkflow
        description: Get Workflow
        call

# --- truncated at 32 KB (47 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/temp-workflows.yaml