GitHub · Capability

github-repo-actions-api — Repositories

github-repo-actions-api — Repositories. 42 operations. Lead operation: GitHub List Artifacts for Repository. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubRepositories

What You Can Do

GET
Listartifactsforrepository — GitHub List Artifacts for Repository
/v1/repos/{owner}/{repo}/actions/artifacts
GET
Getgithubactionscacheusageforrepository — GitHub Get Github Actions Cache Usage for Repository
/v1/repos/{owner}/{repo}/actions/cache/usage
GET
Getgithubactionscacheusagepolicyforrepository — GitHub Get Github Actions Cache Usage Policy for Repository
/v1/repos/{owner}/{repo}/actions/cache/usage-policy
PATCH
Setgithubactionscacheusagepolicyforrepository — GitHub Set Github Actions Cache Usage Policy for Repository
/v1/repos/{owner}/{repo}/actions/cache/usage-policy
GET
Listgithubactionscachesforrepository — GitHub List Github Actions Caches for Repository
/v1/repos/{owner}/{repo}/actions/caches
DELETE
Deletegithubactionscachesforrepositoryusingcachekey — GitHub Delete Github Actions Caches for Repository (using Cache Key)
/v1/repos/{owner}/{repo}/actions/caches
DELETE
Deletegithubactionscacheforrepositoryusingcacheid — GitHub Delete Github Actions Cache for Repository (using Cache Id)
/v1/repos/{owner}/{repo}/actions/caches/{cache-id}
GET
Getthecustomizationtemplateforanoidcsubjectclaimforrepository — GitHub Get the Customization Template for an Oidc Subject Claim for Repository
/v1/repos/{owner}/{repo}/actions/oidc/customization/sub
PUT
Setthecustomizationtemplateforanoidcsubjectclaimforrepository — GitHub Set the Customization Template for an Oidc Subject Claim for Repository
/v1/repos/{owner}/{repo}/actions/oidc/customization/sub
GET
Listrepositoryorganizationsecrets — GitHub List Repository Organization Secrets
/v1/repos/{owner}/{repo}/actions/organization-secrets
GET
Listrepositoryorganizationvariables — GitHub List Repository Organization Variables
/v1/repos/{owner}/{repo}/actions/organization-variables
GET
Getgithubactionspermissionsforrepository — GitHub Get Github Actions Permissions for Repository
/v1/repos/{owner}/{repo}/actions/permissions
PUT
Setgithubactionspermissionsforrepository — GitHub Set Github Actions Permissions for Repository
/v1/repos/{owner}/{repo}/actions/permissions
GET
Getthelevelofaccessforworkflowsoutsideoftherepository — GitHub Get the Level of Access for Workflows Outside of the Repository
/v1/repos/{owner}/{repo}/actions/permissions/access
PUT
Setthelevelofaccessforworkflowsoutsideoftherepository — GitHub Set the Level of Access for Workflows Outside of the Repository
/v1/repos/{owner}/{repo}/actions/permissions/access
GET
Getallowedactionsforrepository — GitHub Get Allowed Actions for Repository
/v1/repos/{owner}/{repo}/actions/permissions/selected-actions
PUT
Setallowedactionsforrepository — GitHub Set Allowed Actions for Repository
/v1/repos/{owner}/{repo}/actions/permissions/selected-actions
GET
Getdefaultworkflowpermissionsforrepository — GitHub Get Default Workflow Permissions for Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
PUT
Setdefaultworkflowpermissionsforrepository — GitHub Set Default Workflow Permissions for Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
GET
Listselfhostedrunnersforrepository — GitHub List Self-hosted Runners for Repository
/v1/repos/{owner}/{repo}/actions/runners
GET
Listrunnerapplicationsforrepository — GitHub List Runner Applications for Repository
/v1/repos/{owner}/{repo}/actions/runners/downloads
POST
Createregistrationtokenforrepository — GitHub Create Registration Token for Repository
/v1/repos/{owner}/{repo}/actions/runners/registration-token
POST
Createremovetokenforrepository — GitHub Create Remove Token for Repository
/v1/repos/{owner}/{repo}/actions/runners/remove-token
GET
Getselfhostedrunnerforrepository — GitHub Get Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}
DELETE
Deleteselfhostedrunnerfromrepository — GitHub Delete Self-hosted Runner from Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}
GET
Listlabelsforselfhostedrunnerforrepository — GitHub List Labels for Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
POST
Addcustomlabelstoselfhostedrunnerforrepository — GitHub Add Custom Labels to Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
PUT
Setcustomlabelsforselfhostedrunnerforrepository — GitHub Set Custom Labels for Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
DELETE
Removeallcustomlabelsfromselfhostedrunnerforrepository — GitHub Remove All Custom Labels from Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels
DELETE
Removecustomlabelfromselfhostedrunnerforrepository — GitHub Remove Custom Label from Self-hosted Runner for Repository
/v1/repos/{owner}/{repo}/actions/runners/{runner-id}/labels/{name}
GET
Listworkflowrunsforrepository — GitHub List Workflow Runs for Repository
/v1/repos/{owner}/{repo}/actions/runs
GET
Listrepositorysecrets — GitHub List Repository Secrets
/v1/repos/{owner}/{repo}/actions/secrets
GET
Getrepositorypublickey — GitHub Get Repository Public Key
/v1/repos/{owner}/{repo}/actions/secrets/public-key
GET
Getrepositorysecret — GitHub Get Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
PUT
Createorupdaterepositorysecret — GitHub Create or Update Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
DELETE
Deleterepositorysecret — GitHub Delete Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
GET
Listrepositoryvariables — GitHub List Repository Variables
/v1/repos/{owner}/{repo}/actions/variables
POST
Createrepositoryvariable — GitHub Create Repository Variable
/v1/repos/{owner}/{repo}/actions/variables
GET
Getrepositoryvariable — GitHub Get Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
PATCH
Updaterepositoryvariable — GitHub Update Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
DELETE
Deleterepositoryvariable — GitHub Delete Repository Variable
/v1/repos/{owner}/{repo}/actions/variables/{name}
GET
Listrepositoryworkflows — GitHub List Repository Workflows
/v1/repos/{owner}/{repo}/actions/workflows

MCP Tools

github-list-artifacts-repository

GitHub List Artifacts for Repository

read-only idempotent
github-get-github-actions-cache

GitHub Get Github Actions Cache Usage for Repository

read-only idempotent
github-get-github-actions-cache-2

GitHub Get Github Actions Cache Usage Policy for Repository

read-only idempotent
github-set-github-actions-cache

GitHub Set Github Actions Cache Usage Policy for Repository

idempotent
github-list-github-actions-caches

GitHub List Github Actions Caches for Repository

read-only idempotent
github-delete-github-actions-caches

GitHub Delete Github Actions Caches for Repository (using Cache Key)

idempotent
github-delete-github-actions-cache

GitHub Delete Github Actions Cache for Repository (using Cache Id)

idempotent
github-get-customization-template-oidc

GitHub Get the Customization Template for an Oidc Subject Claim for Repository

read-only idempotent
github-set-customization-template-oidc

GitHub Set the Customization Template for an Oidc Subject Claim for Repository

idempotent
github-list-repository-organization-secrets

GitHub List Repository Organization Secrets

read-only idempotent
github-list-repository-organization-variables

GitHub List Repository Organization Variables

read-only idempotent
github-get-github-actions-permissions

GitHub Get Github Actions Permissions for Repository

read-only idempotent
github-set-github-actions-permissions

GitHub Set Github Actions Permissions for Repository

idempotent
github-get-level-access-workflows

GitHub Get the Level of Access for Workflows Outside of the Repository

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

GitHub Set the Level of Access for Workflows Outside of the Repository

idempotent
github-get-allowed-actions-repository

GitHub Get Allowed Actions for Repository

read-only idempotent
github-set-allowed-actions-repository

GitHub Set Allowed Actions for Repository

idempotent
github-get-default-workflow-permissions

GitHub Get Default Workflow Permissions for Repository

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

GitHub Set Default Workflow Permissions for Repository

idempotent
github-list-self-hosted-runners

GitHub List Self-hosted Runners for Repository

read-only idempotent
github-list-runner-applications-repository

GitHub List Runner Applications for Repository

read-only idempotent
github-create-registration-token-repository

GitHub Create Registration Token for Repository

github-create-remove-token-repository

GitHub Create Remove Token for Repository

github-get-self-hosted-runner

GitHub Get Self-hosted Runner for Repository

read-only idempotent
github-delete-self-hosted-runner

GitHub Delete Self-hosted Runner from Repository

idempotent
github-list-labels-self-hosted

GitHub List Labels for Self-hosted Runner for Repository

read-only idempotent
github-add-custom-labels-self

GitHub Add Custom Labels to Self-hosted Runner for Repository

github-set-custom-labels-self

GitHub Set Custom Labels for Self-hosted Runner for Repository

idempotent
github-remove-all-custom-labels

GitHub Remove All Custom Labels from Self-hosted Runner for Repository

idempotent
github-remove-custom-label-self

GitHub Remove Custom Label from Self-hosted Runner for Repository

idempotent
github-list-workflow-runs-repository

GitHub List Workflow Runs for Repository

read-only idempotent
github-list-repository-secrets

GitHub List Repository Secrets

read-only idempotent
github-get-repository-public-key

GitHub Get Repository Public Key

read-only idempotent
github-get-repository-secret

GitHub Get Repository Secret

read-only idempotent
github-create-update-repository-secret

GitHub Create or Update Repository Secret

idempotent
github-delete-repository-secret

GitHub Delete Repository Secret

idempotent
github-list-repository-variables

GitHub List Repository Variables

read-only idempotent
github-create-repository-variable

GitHub Create Repository Variable

github-get-repository-variable

GitHub Get Repository Variable

read-only idempotent
github-update-repository-variable

GitHub Update Repository Variable

idempotent
github-delete-repository-variable

GitHub Delete Repository Variable

idempotent
github-list-repository-workflows

GitHub List Repository Workflows

read-only idempotent

Capability Spec

repo-actions-repositories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repo-actions-api — Repositories
  description: 'github-repo-actions-api — Repositories. 42 operations. Lead operation: GitHub List Artifacts for Repository.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Repositories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: repo-actions-repositories
    baseUri: ''
    description: github-repo-actions-api — Repositories business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-artifacts
      path: /repos/{owner}/{repo}/actions/artifacts
      operations:
      - name: listartifactsforrepository
        method: GET
        description: GitHub List Artifacts 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-cache-usage
      path: /repos/{owner}/{repo}/actions/cache/usage
      operations:
      - name: getgithubactionscacheusageforrepository
        method: GET
        description: GitHub Get Github Actions Cache Usage 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-cache-usage-policy
      path: /repos/{owner}/{repo}/actions/cache/usage-policy
      operations:
      - name: getgithubactionscacheusagepolicyforrepository
        method: GET
        description: GitHub Get Github Actions Cache Usage Policy 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: setgithubactionscacheusagepolicyforrepository
        method: PATCH
        description: GitHub Set Github Actions Cache Usage Policy 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-caches
      path: /repos/{owner}/{repo}/actions/caches
      operations:
      - name: listgithubactionscachesforrepository
        method: GET
        description: GitHub List Github Actions Caches 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: deletegithubactionscachesforrepositoryusingcachekey
        method: DELETE
        description: GitHub Delete Github Actions Caches for Repository (using Cache Key)
        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-caches-cache_id
      path: /repos/{owner}/{repo}/actions/caches/{cache_id}
      operations:
      - name: deletegithubactionscacheforrepositoryusingcacheid
        method: DELETE
        description: GitHub Delete Github Actions Cache for Repository (using Cache Id)
        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-oidc-customization-sub
      path: /repos/{owner}/{repo}/actions/oidc/customization/sub
      operations:
      - name: getthecustomizationtemplateforanoidcsubjectclaimforrepository
        method: GET
        description: GitHub Get the Customization Template for an Oidc Subject Claim 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: setthecustomizationtemplateforanoidcsubjectclaimforrepository
        method: PUT
        description: GitHub Set the Customization Template for an Oidc Subject Claim 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-organization-secrets
      path: /repos/{owner}/{repo}/actions/organization-secrets
      operations:
      - name: listrepositoryorganizationsecrets
        method: GET
        description: GitHub List Repository Organization Secrets
        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-organization-variables
      path: /repos/{owner}/{repo}/actions/organization-variables
      operations:
      - name: listrepositoryorganizationvariables
        method: GET
        description: GitHub List Repository Organization Variables
        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-permissions
      path: /repos/{owner}/{repo}/actions/permissions
      operations:
      - name: getgithubactionspermissionsforrepository
        method: GET
        description: GitHub Get Github Actions 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: setgithubactionspermissionsforrepository
        method: PUT
        description: GitHub Set Github Actions 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-permissions-access
      path: /repos/{owner}/{repo}/actions/permissions/access
      operations:
      - name: getthelevelofaccessforworkflowsoutsideoftherepository
        method: GET
        description: GitHub 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: GitHub 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-selected-actions
      path: /repos/{owner}/{repo}/actions/permissions/selected-actions
      operations:
      - name: getallowedactionsforrepository
        method: GET
        description: GitHub Get Allowed Actions 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: setallowedactionsforrepository
        method: PUT
        description: GitHub Set Allowed Actions 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: false
    - name: repos-owner-repo-actions-permissions-workflow
      path: /repos/{owner}/{repo}/actions/permissions/workflow
      operations:
      - name: getdefaultworkflowpermissionsforrepository
        method: GET
        description: GitHub 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: GitHub 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-runners
      path: /repos/{owner}/{repo}/actions/runners
      operations:
      - name: listselfhostedrunnersforrepository
        method: GET
        description: GitHub List Self-hosted Runners 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-runners-downloads
      path: /repos/{owner}/{repo}/actions/runners/downloads
      operations:
      - name: listrunnerapplicationsforrepository
        method: GET
        description: GitHub List Runner Applications 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-runners-registration-token
      path: /repos/{owner}/{repo}/actions/runners/registration-token
      operations:
      - name: createregistrationtokenforrepository
        method: POST
        description: GitHub Create Registration Token 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-runners-remove-token
      path: /repos/{owner}/{repo}/actions/runners/remove-token
      operations:
      - name: createremovetokenforrepository
        method: POST
        description: GitHub Create Remove Token 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-runners-runner_id
      path: /repos/{owner}/{repo}/actions/runners/{runner_id}
      operations:
      - name: getselfhostedrunnerforrepository
        method: GET
        description: GitHub Get Self-hosted Runner 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: deleteselfhostedrunnerfromrepository
        method: DELETE
        description: GitHub Delete Self-hosted Runner from 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-runners-runner_id-labels
      path: /repos/{owner}/{repo}/actions/runners/{runner_id}/labels
      operations:
      - name: listlabelsforselfhostedrunnerforrepository
        method: GET
        description: GitHub List Labels for Self-hosted Runner 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: addcustomlabelstoselfhostedrunnerforrepository
        method: POST
        description: GitHub Add Custom Labels to Self-hosted Runner 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: setcustomlabelsforselfhostedrunnerforrepository
        method: PUT
        description: GitHub Set Custom Labels for Self-hosted Runner 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: removeallcustomlabelsfromselfhostedrunnerforrepository
        method: DELETE
        description: GitHub Remove All Custom Labels from Self-hosted Runner 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-runners-runner_id-labels-name
      path: /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}
      operations:
      - name: removecustomlabelfromselfhostedrunnerforrepository
        method: DELETE
        description: GitHub Remove Custom Label from Self-hosted Runner 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
      path: /repos/{owner}/{repo}/actions/runs
      operations:
      - name: listworkflowrunsforrepository
        method: GET
        description: GitHub 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-secrets
      path: /repos/{owner}/{repo}/actions/secrets
      operations:
      - name: listrepositorysecrets
        method: GET
        description: GitHub List Repository Secrets
        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-secrets-public-key
      path: /repos/{owner}/{repo}/actions/secrets/public-key
      operations:
      - name: getrepositorypublickey
        method: GET
        description: GitHub Get Repository Public Key
        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-secrets-secret_name
      path: /repos/{owner}/{repo}/actions/secrets/{secret_name}
      operations:
      - name: getrepositorysecret
        method: GET
        description: GitHub Get Repository Secret
        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: createorupdaterepositorysecret
        method: PUT
        description: GitHub Create or Update Repository Secret
        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: deleterepositorysecret
        method: DELETE
        description: GitHub Delete Repository Secret
        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-variables
      path: /repos/{owner}/{repo}/actions/variables
      operations:
      - name: listrepositoryvariables
        method: GET
        description: GitHub List Repository Variables
        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: createrepositoryvariable
        method: POST
        description: GitHub Create Repository Variable
        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-variables-name
      path: /repos/{owner}/{repo}/actions/variables/{name}
      operations:
      - name: getrepositoryvariable
        method: GET
        description: GitHub Get Repository Variable
        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: updaterepositoryvariable
        method: PATCH
        description: GitHub Update Repository Variable
        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: deleterepositoryvariable
        method: DELETE
        description: GitHub Delete Repository Variable
        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
      path: /repos/{owner}/{repo}/actions/workflows
      operations:
      - name: listrepositoryworkflows
        method: GET
        description: GitHub 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
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: repo-actions-repositories-rest
    port: 8080
    description: REST adapter for github-repo-actions-api — Repositories. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/artifacts
      name: repos-owner-repo-actions-artifacts
      description: REST surface for repos-owner-repo-actions-artifacts.
      operations:
      - method: GET
        name: listartifactsforrepository
        description: GitHub List Artifacts for Repository
        call: repo-actions-repositories.listartifactsforrepository
        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/cache/usage
      name: repos-owner-repo-actions-cache-usage
      description: REST surface for repos-owner-repo-actions-cache-usage.
      operations:
      - method: GET
        name: getgithubactionscacheusageforrepository
        description: GitHub Get Github Actions Cache Usage for Repository
        call: repo-actions-repositories.getgithubactionscacheusageforrepository
        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/cache/usage-policy
      name: repos-owner-repo-actions-cache-usage-policy
      description: REST surface for repos-owner-repo-actions-cache-usage-policy.
      operations:
      - method: GET
        name: getgithubactionscacheusagepolicyforrepository
        description: GitHub Get Github Actions Cache Usage Policy for Repository
        call: repo-actions-repositories.getgithubactionscacheusagepolicyforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: setgithubactionscacheusagepolicyforrepository
        description: GitHub Set Github Actions Cache Usage Policy for Repository
        call: repo-actions-repositories.setgithubactionscacheusagepolicyforrepository
        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/caches
      name: repos-owner-repo-actions-caches
      description: REST surface for repos-owner-repo-actions-caches.
      operations:
      - method: GET
        name: listgithubactionscachesforrepository
        description: GitHub List Github Actions Caches for Repository
        call: repo-actions-repositories.listgithubactionscachesforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletegithubactionscachesforrepositoryusingcachekey
        description: GitHub Delete Github Actions Caches for Repository (using Cache Key)
        call: repo-actions-repositories.deletegithubactionscachesforrepositoryusingcachekey
        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/caches/{cache-id}
      name: repos-owner-repo-actions-caches-cache-id
      description: REST surface for repos-owner-repo-actions-caches-cache_id.
      operations:
      - method: DELETE
        name: deletegithubactionscacheforrepositoryusingcacheid
        description: GitHub Delete Github Actions Cache for Repository (using Cache Id)
        call: repo-actions-repositories.deletegithubactionscacheforrepositoryusingcacheid
        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/oidc/customization/sub
      name: repos-owner-repo-actions-oidc-customization-sub
      description: REST surface for repos-owner-repo-actions-oidc-customization-sub.
      operations:
      - method: GET
        name: getthecustomizationtemplateforanoidcsubjectclaimforrepository
        description: GitHub Get the Customization Template for an Oidc Subject Claim for Repository
        call: repo-actions-repositories.getthecustomizationtemplateforanoidcsubjectclaimforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setthecustomizationtemplateforanoidcsubjectclaimforrepository
        description: GitHub Set the Customization Template for an Oidc Subject Claim for Repository
        call: repo-actions-repositories.setthecustomizationtemplateforanoidcsubjectclaimforrepository
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Acc

# --- truncated at 32 KB (70 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/repo-actions-repositories.yaml