naftiko: 1.0.0-alpha2 info: label: github-repo-actions-api — Get description: 'github-repo-actions-api — Get. 18 operations. Lead operation: GitHub Get an Artifact. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Get 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-get baseUri: '' description: github-repo-actions-api — Get business capability. Self-contained, no shared references. resources: - name: repos-owner-repo-actions-artifacts-artifact_id path: /repos/{owner}/{repo}/actions/artifacts/{artifact_id} operations: - name: getanartifact method: GET description: GitHub Get an Artifact 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: repos-owner-repo-actions-jobs-job_id path: /repos/{owner}/{repo}/actions/jobs/{job_id} operations: - name: getjobforworkflowrun method: GET description: GitHub Get Job 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-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: 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: 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: 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: 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: 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: repos-owner-repo-actions-runs-run_id path: /repos/{owner}/{repo}/actions/runs/{run_id} operations: - name: getworkflowrun method: GET description: GitHub 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: repos-owner-repo-actions-runs-run_id-approvals path: /repos/{owner}/{repo}/actions/runs/{run_id}/approvals operations: - name: getthereviewhistoryforworkflowrun method: GET description: GitHub 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-attempts-attempt_number path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number} operations: - name: getworkflowrunattempt method: GET description: GitHub 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-pending_deployments path: /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments operations: - name: getpendingdeploymentsforworkflowrun method: GET description: GitHub 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: 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: 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: repos-owner-repo-actions-workflows-workflow_id path: /repos/{owner}/{repo}/actions/workflows/{workflow_id} operations: - name: getworkflow method: GET description: GitHub 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 authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: repo-actions-get-rest port: 8080 description: REST adapter for github-repo-actions-api — Get. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repos/{owner}/{repo}/actions/artifacts/{artifact-id} name: repos-owner-repo-actions-artifacts-artifact-id description: REST surface for repos-owner-repo-actions-artifacts-artifact_id. operations: - method: GET name: getanartifact description: GitHub Get an Artifact call: repo-actions-get.getanartifact 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-get.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-get.getgithubactionscacheusagepolicyforrepository 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} name: repos-owner-repo-actions-jobs-job-id description: REST surface for repos-owner-repo-actions-jobs-job_id. operations: - method: GET name: getjobforworkflowrun description: GitHub Get Job for Workflow Run call: repo-actions-get.getjobforworkflowrun 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-get.getthecustomizationtemplateforanoidcsubjectclaimforrepository 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/permissions name: repos-owner-repo-actions-permissions description: REST surface for repos-owner-repo-actions-permissions. operations: - method: GET name: getgithubactionspermissionsforrepository description: GitHub Get Github Actions Permissions for Repository call: repo-actions-get.getgithubactionspermissionsforrepository 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/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: GitHub Get the Level of Access for Workflows Outside of the Repository call: repo-actions-get.getthelevelofaccessforworkflowsoutsideoftherepository 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/permissions/selected-actions name: repos-owner-repo-actions-permissions-selected-actions description: REST surface for repos-owner-repo-actions-permissions-selected-actions. operations: - method: GET name: getallowedactionsforrepository description: GitHub Get Allowed Actions for Repository call: repo-actions-get.getallowedactionsforrepository 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/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: GitHub Get Default Workflow Permissions for Repository call: repo-actions-get.getdefaultworkflowpermissionsforrepository 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/runners/{runner-id} name: repos-owner-repo-actions-runners-runner-id description: REST surface for repos-owner-repo-actions-runners-runner_id. operations: - method: GET name: getselfhostedrunnerforrepository description: GitHub Get Self-hosted Runner for Repository call: repo-actions-get.getselfhostedrunnerforrepository 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: GitHub Get Workflow Run call: repo-actions-get.getworkflowrun 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: GitHub Get the Review History for Workflow Run call: repo-actions-get.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}/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: GitHub Get Workflow Run Attempt call: repo-actions-get.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}/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: GitHub Get Pending Deployments for Workflow Run call: repo-actions-get.getpendingdeploymentsforworkflowrun 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/secrets/public-key name: repos-owner-repo-actions-secrets-public-key description: REST surface for repos-owner-repo-actions-secrets-public-key. operations: - method: GET name: getrepositorypublickey description: GitHub Get Repository Public Key call: repo-actions-get.getrepositorypublickey 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/secrets/{secret-name} name: repos-owner-repo-actions-secrets-secret-name description: REST surface for repos-owner-repo-actions-secrets-secret_name. operations: - method: GET name: getrepositorysecret description: GitHub Get Repository Secret call: repo-actions-get.getrepositorysecret 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/variables/{name} name: repos-owner-repo-actions-variables-name description: REST surface for repos-owner-repo-actions-variables-name. operations: - method: GET name: getrepositoryvariable description: GitHub Get Repository Variable call: repo-actions-get.getrepositoryvariable 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: GitHub Get Workflow call: repo-actions-get.getworkflow with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: repo-actions-get-mcp port: 9090 transport: http description: MCP adapter for github-repo-actions-api — Get. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-artifact description: GitHub Get an Artifact hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getanartifact with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-github-actions-cache description: GitHub Get Github Actions Cache Usage for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getgithubactionscacheusageforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-github-actions-cache-2 description: GitHub Get Github Actions Cache Usage Policy for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getgithubactionscacheusagepolicyforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-job-workflow-run description: GitHub Get Job for Workflow Run hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getjobforworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-customization-template-oidc description: GitHub Get the Customization Template for an Oidc Subject Claim for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getthecustomizationtemplateforanoidcsubjectclaimforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-github-actions-permissions description: GitHub Get Github Actions Permissions for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getgithubactionspermissionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-level-access-workflows description: GitHub Get the Level of Access for Workflows Outside of the Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getthelevelofaccessforworkflowsoutsideoftherepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-allowed-actions-repository description: GitHub Get Allowed Actions for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getallowedactionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-default-workflow-permissions description: GitHub Get Default Workflow Permissions for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getdefaultworkflowpermissionsforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-self-hosted-runner description: GitHub Get Self-hosted Runner for Repository hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getselfhostedrunnerforrepository with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-workflow-run description: GitHub Get Workflow Run hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-review-history-workflow description: GitHub Get the Review History for Workflow Run hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getthereviewhistoryforworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-workflow-run-attempt description: GitHub Get Workflow Run Attempt hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getworkflowrunattempt with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-pending-deployments-workflow description: GitHub Get Pending Deployments for Workflow Run hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getpendingdeploymentsforworkflowrun with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-repository-public-key description: GitHub Get Repository Public Key hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getrepositorypublickey with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-repository-secret description: GitHub Get Repository Secret hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getrepositorysecret with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-repository-variable description: GitHub Get Repository Variable hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getrepositoryvariable with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-get-workflow description: GitHub Get Workflow hints: readOnly: true destructive: false idempotent: true call: repo-actions-get.getworkflow with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.