GitHub · Capability

GitHub Repos API — Secrets

GitHub Repos API — Secrets. 25 operations. Lead operation: List Selected Repositories For An Organization Secret. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSecrets

What You Can Do

GET
Listselectedrepositoriesforanorganizationsecret — List Selected Repositories For An Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — Set Selected Repositories For An Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — Add Selected Repository To An Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — Remove Selected Repository From An Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
GET
Listselectedrepositoriesforanorganizationsecret — List Selected Repositories For An Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Setselectedrepositoriesforanorganizationsecret — Set Selected Repositories For An Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
PUT
Addselectedrepositorytoanorganizationsecret — Add Selected Repository To An Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
DELETE
Removeselectedrepositoryfromanorganizationsecret — Remove Selected Repository From An Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
GET
Listrepositoryorganizationsecrets — List Repository Organization Secrets
/v1/repos/{owner}/{repo}/actions/organization-secrets
GET
Listrepositorysecrets — List Repository Secrets
/v1/repos/{owner}/{repo}/actions/secrets
GET
Getrepositorysecret — Get Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
PUT
Createorupdaterepositorysecret — Create Or Update Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
DELETE
Deleterepositorysecret — Delete Repository Secret
/v1/repos/{owner}/{repo}/actions/secrets/{secret-name}
GET
Listrepositorysecrets — List Repository Secrets
/v1/repos/{owner}/{repo}/dependabot/secrets
GET
Getrepositorysecret — Get Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
PUT
Createorupdaterepositorysecret — Create Or Update Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
DELETE
Deleterepositorysecret — Delete Repository Secret
/v1/repos/{owner}/{repo}/dependabot/secrets/{secret-name}
GET
Listenvironmentsecrets — List Environment Secrets
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets
GET
Getanenvironmentsecret — Get An Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
PUT
Createorupdateanenvironmentsecret — Create Or Update An Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
DELETE
Deleteanenvironmentsecret — Delete An Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
GET
Listsecretscanningalertsforrepository — List Secret Scanning Alerts For Repository
/v1/repos/{owner}/{repo}/secret-scanning/alerts
GET
Getsecretscanningalert — Get Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
PATCH
Updatesecretscanningalert — Update Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
GET
Listlocationsforsecretscanningalert — List Locations For Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}/locations

MCP Tools

list-selected-repositories-organization-secret

List Selected Repositories For An Organization Secret

read-only idempotent
set-selected-repositories-organization-secret

Set Selected Repositories For An Organization Secret

idempotent
add-selected-repository-organization-secret

Add Selected Repository To An Organization Secret

idempotent
remove-selected-repository-organization-secret

Remove Selected Repository From An Organization Secret

idempotent
list-selected-repositories-organization-secret-2

List Selected Repositories For An Organization Secret

read-only idempotent
set-selected-repositories-organization-secret-2

Set Selected Repositories For An Organization Secret

idempotent
add-selected-repository-organization-secret-2

Add Selected Repository To An Organization Secret

idempotent
remove-selected-repository-organization-secret-2

Remove Selected Repository From An Organization Secret

idempotent
list-repository-organization-secrets

List Repository Organization Secrets

read-only idempotent
list-repository-secrets

List Repository Secrets

read-only idempotent
get-repository-secret

Get Repository Secret

read-only idempotent
create-update-repository-secret

Create Or Update Repository Secret

idempotent
delete-repository-secret

Delete Repository Secret

idempotent
list-repository-secrets-2

List Repository Secrets

read-only idempotent
get-repository-secret-2

Get Repository Secret

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

Create Or Update Repository Secret

idempotent
delete-repository-secret-2

Delete Repository Secret

idempotent
list-environment-secrets

List Environment Secrets

read-only idempotent
get-environment-secret

Get An Environment Secret

read-only idempotent
create-update-environment-secret

Create Or Update An Environment Secret

idempotent
delete-environment-secret

Delete An Environment Secret

idempotent
list-secret-scanning-alerts-repository

List Secret Scanning Alerts For Repository

read-only idempotent
get-secret-scanning-alert

Get Secret Scanning Alert

read-only idempotent
update-secret-scanning-alert

Update Secret Scanning Alert

idempotent
list-locations-secret-scanning-alert

List Locations For Secret Scanning Alert

read-only idempotent

Capability Spec

temp-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Repos API — Secrets
  description: 'GitHub Repos API — Secrets. 25 operations. Lead operation: List Selected Repositories For An Organization
    Secret. Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Secrets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: temp-secrets
    baseUri: ''
    description: GitHub Repos API — Secrets business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-secrets-secret_name-repositories
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: List Selected Repositories For An Organization 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: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: Set Selected Repositories For An Organization 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: orgs-org-actions-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: Add Selected Repository To An Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: Remove Selected Repository From An Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
    - name: orgs-org-dependabot-secrets-secret_name-repositories
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: List Selected Repositories For An Organization 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: setselectedrepositoriesforanorganizationsecret
        method: PUT
        description: Set Selected Repositories For An Organization 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: orgs-org-dependabot-secrets-secret_name-repositories-repository_id
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}
      operations:
      - name: addselectedrepositorytoanorganizationsecret
        method: PUT
        description: Add Selected Repository To An Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
        - name: X-GitHub-Api-Version
          in: header
          type: string
        - name: Accept
          in: header
          type: string
      - name: removeselectedrepositoryfromanorganizationsecret
        method: DELETE
        description: Remove Selected Repository From An Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository_id
          in: path
          type: integer
          required: true
        - 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-secrets
      path: /repos/{owner}/{repo}/actions/organization-secrets
      operations:
      - name: listrepositoryorganizationsecrets
        method: GET
        description: 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-secrets
      path: /repos/{owner}/{repo}/actions/secrets
      operations:
      - name: listrepositorysecrets
        method: GET
        description: 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-secret_name
      path: /repos/{owner}/{repo}/actions/secrets/{secret_name}
      operations:
      - name: getrepositorysecret
        method: GET
        description: 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: 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: 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-dependabot-secrets
      path: /repos/{owner}/{repo}/dependabot/secrets
      operations:
      - name: listrepositorysecrets
        method: GET
        description: 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-dependabot-secrets-secret_name
      path: /repos/{owner}/{repo}/dependabot/secrets/{secret_name}
      operations:
      - name: getrepositorysecret
        method: GET
        description: 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: 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: 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-environments-environment_name-secrets
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets
      operations:
      - name: listenvironmentsecrets
        method: GET
        description: List Environment 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-environments-environment_name-secrets-secret_name
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
      operations:
      - name: getanenvironmentsecret
        method: GET
        description: Get An Environment 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: createorupdateanenvironmentsecret
        method: PUT
        description: Create Or Update An Environment 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: deleteanenvironmentsecret
        method: DELETE
        description: Delete An Environment 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-secret-scanning-alerts
      path: /repos/{owner}/{repo}/secret-scanning/alerts
      operations:
      - name: listsecretscanningalertsforrepository
        method: GET
        description: List Secret Scanning Alerts 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-secret-scanning-alerts-alert_number
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
      operations:
      - name: getsecretscanningalert
        method: GET
        description: Get Secret Scanning Alert
        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: updatesecretscanningalert
        method: PATCH
        description: Update Secret Scanning Alert
        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-secret-scanning-alerts-alert_number-locations
      path: /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations
      operations:
      - name: listlocationsforsecretscanningalert
        method: GET
        description: List Locations For Secret Scanning Alert
        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-secrets-rest
    port: 8080
    description: REST adapter for GitHub Repos API — Secrets. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories
      name: orgs-org-actions-secrets-secret-name-repositories
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: List Selected Repositories For An Organization Secret
        call: temp-secrets.listselectedrepositoriesforanorganizationsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: Set Selected Repositories For An Organization Secret
        call: temp-secrets.setselectedrepositoriesforanorganizationsecret
        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/orgs/{org}/actions/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-actions-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: Add Selected Repository To An Organization Secret
        call: temp-secrets.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: Remove Selected Repository From An Organization Secret
        call: temp-secrets.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
      name: orgs-org-dependabot-secrets-secret-name-repositories
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: List Selected Repositories For An Organization Secret
        call: temp-secrets.listselectedrepositoriesforanorganizationsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setselectedrepositoriesforanorganizationsecret
        description: Set Selected Repositories For An Organization Secret
        call: temp-secrets.setselectedrepositoriesforanorganizationsecret
        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/orgs/{org}/dependabot/secrets/{secret-name}/repositories/{repository-id}
      name: orgs-org-dependabot-secrets-secret-name-repositories-repository-id
      description: REST surface for orgs-org-dependabot-secrets-secret_name-repositories-repository_id.
      operations:
      - method: PUT
        name: addselectedrepositorytoanorganizationsecret
        description: Add Selected Repository To An Organization Secret
        call: temp-secrets.addselectedrepositorytoanorganizationsecret
        with:
          repository_id: rest.repository_id
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeselectedrepositoryfromanorganizationsecret
        description: Remove Selected Repository From An Organization Secret
        call: temp-secrets.removeselectedrepositoryfromanorganizationsecret
        with:
          repository_id: rest.repository_id
          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/organization-secrets
      name: repos-owner-repo-actions-organization-secrets
      description: REST surface for repos-owner-repo-actions-organization-secrets.
      operations:
      - method: GET
        name: listrepositoryorganizationsecrets
        description: List Repository Organization Secrets
        call: temp-secrets.listrepositoryorganizationsecrets
        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
      name: repos-owner-repo-actions-secrets
      description: REST surface for repos-owner-repo-actions-secrets.
      operations:
      - method: GET
        name: listrepositorysecrets
        description: List Repository Secrets
        call: temp-secrets.listrepositorysecrets
        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: Get Repository Secret
        call: temp-secrets.getrepositorysecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdaterepositorysecret
        description: Create Or Update Repository Secret
        call: temp-secrets.createorupdaterepositorysecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterepositorysecret
        description: Delete Repository Secret
        call: temp-secrets.deleterepositorysecret
        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}/dependabot/secrets
      name: repos-owner-repo-dependabot-secrets
      description: REST surface for repos-owner-repo-dependabot-secrets.
      operations:
      - method: GET
        name: listrepositorysecrets
        description: List Repository Secrets
        call: temp-secrets.listrepositorysecrets
        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}/dependabot/secrets/{secret-name}
      name: repos-owner-repo-dependabot-secrets-secret-name
      description: REST surface for repos-owner-repo-dependabot-secrets-secret_name.
      operations:
      - method: GET
        name: getrepositorysecret
        description: Get Repository Secret
        call: temp-secrets.getrepositorysecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdaterepositorysecret
        description: Create Or Update Repository Secret
        call: temp-secrets.createorupdaterepositorysecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterepositorysecret
        description: Delete Repository Secret
        call: temp-secrets.deleterepositorysecret
        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}/environments/{environment-name}/secrets
      name: repos-owner-repo-environments-environment-name-secrets
      description: REST surface for repos-owner-repo-environments-environment_name-secrets.
      operations:
      - method: GET
        name: listenvironmentsecrets
        description: List Environment Secrets
        call: temp-secrets.listenvironmentsecrets
        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}/environments/{environment-name}/secrets/{secret-name}
      name: repos-owner-repo-environments-environment-name-secrets-secret-name
      description: REST surface for repos-owner-repo-environments-environment_name-secrets-secret_name.
      operations:
      - method: GET
        name: getanenvironmentsecret
        description: Get An Environment Secret
        call: temp-secrets.getanenvironmentsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createorupdateanenvironmentsecret
        description: Create Or Update An Environment Secret
        call: temp-secrets.createorupdateanenvironmentsecret
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteanenvironmentsecret
        description: Delete An Environment Secret
        call: temp-secrets.deleteanenvironmentsecret
        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}/secret-scanning/alerts
      name: repos-owner-repo-secret-scanning-alerts
      description: REST surface for repos-owner-repo-secret-scanning-alerts.
      operations:
      - method: GET
        name: listsecretscanningalertsforrepository
        description: List Secret Scanning Alerts For Repository
        call: temp-secrets.listsecretscanningalertsforrepository
        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}/secret-scanning/alerts/{alert-number}
      name: repos-owner-repo-secret-scanning-alerts-alert-number
      description: REST surface for repos-owner-repo-secret-scanning-alerts-alert_number.
      operations:
      - method: GET
        name: getsecretscanningalert
        description: Get Secret Scanning Alert
        call: temp-secrets.getsecretscanningalert
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatesecretscanningalert
        description: Update Secret Scanning Alert
        call: temp-secrets.updatesecretscanningalert
        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}/secret-scanning/alerts/{alert-number}/locations
      name: repos-owner-repo-secret-scanning-alerts-alert-number-locations
      description: REST surface for repos-owner-repo-secret-scanning-alerts-alert_number-locations.
      operations:
      - method: GET
        name: listlocationsforsecretscanningalert
        description: List Locations For Secret Scanning Alert
        call: temp-secrets.listlocationsforsecretscanningalert
        with:
          Authorization: rest.Authorization
          X-GitHub-Api-Version: rest.X-GitHub-Api-Version
          Accept: rest.Accept
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: temp-secrets-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Repos API — Secrets. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-selected-repositories-organization-secret
      description: List Selected Repositories For An Organization Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: temp-secrets.listselectedrepositoriesforanorganizationsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: set-selected-repositories-organization-secret
      description: Set Selected Repositories For An Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-secrets.setselectedrepositoriesforanorganizationsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: add-selected-repository-organization-secret
      description: Add Selected Repository To An Organization Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: temp-secrets.addselectedrepositorytoanorganizationsecret
      with:
        repository_id: tools.repository_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-selected-repository-organization-secret
      description: Remove Selected Repository From An Organization Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: temp-secrets.removeselectedrepositoryfromanorganizationsecret
      with:
        repository_id: tools.repository_id
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mappi

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