GitHub · Capability

github-repos-api — Secrets

github-repos-api — Secrets. 8 operations. Lead operation: GitHub List Environment Secrets. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSecrets

What You Can Do

GET
Listenvironmentsecrets — GitHub List Environment Secrets
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets
GET
Getanenvironmentsecret — GitHub Get an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
PUT
Createorupdateanenvironmentsecret — GitHub Create or Update an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
DELETE
Deleteanenvironmentsecret — GitHub Delete an Environment Secret
/v1/repos/{owner}/{repo}/environments/{environment-name}/secrets/{secret-name}
GET
Listsecretscanningalertsforrepository — GitHub List Secret Scanning Alerts for Repository
/v1/repos/{owner}/{repo}/secret-scanning/alerts
GET
Getsecretscanningalert — GitHub Get Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
PATCH
Updatesecretscanningalert — GitHub Update Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}
GET
Listlocationsforsecretscanningalert — GitHub List Locations for Secret Scanning Alert
/v1/repos/{owner}/{repo}/secret-scanning/alerts/{alert-number}/locations

MCP Tools

github-list-environment-secrets

GitHub List Environment Secrets

read-only idempotent
github-get-environment-secret

GitHub Get an Environment Secret

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

GitHub Create or Update an Environment Secret

idempotent
github-delete-environment-secret

GitHub Delete an Environment Secret

idempotent
github-list-secret-scanning-alerts

GitHub List Secret Scanning Alerts for Repository

read-only idempotent
github-get-secret-scanning-alert

GitHub Get Secret Scanning Alert

read-only idempotent
github-update-secret-scanning-alert

GitHub Update Secret Scanning Alert

idempotent
github-list-locations-secret-scanning

GitHub List Locations for Secret Scanning Alert

read-only idempotent

Capability Spec

repo-tags-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: github-repos-api — Secrets
  description: 'github-repos-api — Secrets. 8 operations. Lead operation: GitHub List Environment Secrets. 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: repo-tags-secrets
    baseUri: ''
    description: github-repos-api — Secrets business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-environments-environment_name-secrets
      path: /repos/{owner}/{repo}/environments/{environment_name}/secrets
      operations:
      - name: listenvironmentsecrets
        method: GET
        description: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: GitHub 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: repo-tags-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/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: GitHub List Environment Secrets
        call: repo-tags-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: GitHub Get an Environment Secret
        call: repo-tags-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: GitHub Create or Update an Environment Secret
        call: repo-tags-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: GitHub Delete an Environment Secret
        call: repo-tags-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: GitHub List Secret Scanning Alerts for Repository
        call: repo-tags-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: GitHub Get Secret Scanning Alert
        call: repo-tags-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: GitHub Update Secret Scanning Alert
        call: repo-tags-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: GitHub List Locations for Secret Scanning Alert
        call: repo-tags-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: repo-tags-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: github-list-environment-secrets
      description: GitHub List Environment Secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-secrets.listenvironmentsecrets
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-environment-secret
      description: GitHub Get an Environment Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-secrets.getanenvironmentsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-create-update-environment-secret
      description: GitHub Create or Update an Environment Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-secrets.createorupdateanenvironmentsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-delete-environment-secret
      description: GitHub Delete an Environment Secret
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: repo-tags-secrets.deleteanenvironmentsecret
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-secret-scanning-alerts
      description: GitHub List Secret Scanning Alerts for Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-secrets.listsecretscanningalertsforrepository
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-get-secret-scanning-alert
      description: GitHub Get Secret Scanning Alert
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-secrets.getsecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.
    - name: github-update-secret-scanning-alert
      description: GitHub Update Secret Scanning Alert
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: repo-tags-secrets.updatesecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-list-locations-secret-scanning
      description: GitHub List Locations for Secret Scanning Alert
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: repo-tags-secrets.listlocationsforsecretscanningalert
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.