GitHub Actions · Capability

GitHub Actions API — Permissions

GitHub Actions API — Permissions. 6 operations. Lead operation: Get Github Actions Permissions for an Organization. Self-contained Naftiko capability covering one Github Actions business surface.

Run with Naftiko Github ActionsPermissions

What You Can Do

GET
Getgithubactionspermissionsorg — Get Github Actions Permissions for an Organization
/v1/orgs/{org}/actions/permissions
PUT
Setgithubactionspermissionsorg — Set Github Actions Permissions for an Organization
/v1/orgs/{org}/actions/permissions
GET
Getgithubactionspermissionsrepo — Get Github Actions Permissions for a Repository
/v1/repos/{owner}/{repo}/actions/permissions
PUT
Setgithubactionspermissionsrepo — Set Github Actions Permissions for a Repository
/v1/repos/{owner}/{repo}/actions/permissions
GET
Getgithubactionsdefaultworkflowpermissionsrepo — Github Actions Get Default Workflow Permissions for a Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow
PUT
Setgithubactionsdefaultworkflowpermissionsrepo — Github Actions Set Default Workflow Permissions for a Repository
/v1/repos/{owner}/{repo}/actions/permissions/workflow

MCP Tools

get-github-actions-permissions-organization

Get Github Actions Permissions for an Organization

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

Set Github Actions Permissions for an Organization

idempotent
get-github-actions-permissions-repository

Get Github Actions Permissions for a Repository

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

Set Github Actions Permissions for a Repository

idempotent
github-actions-get-default-workflow

Github Actions Get Default Workflow Permissions for a Repository

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

Github Actions Set Default Workflow Permissions for a Repository

idempotent

Capability Spec

github-actions-permissions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Actions API — Permissions
  description: 'GitHub Actions API — Permissions. 6 operations. Lead operation: Get Github Actions Permissions for an Organization.
    Self-contained Naftiko capability covering one Github Actions business surface.'
  tags:
  - Github Actions
  - Permissions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_ACTIONS_API_KEY: GITHUB_ACTIONS_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-actions-permissions
    baseUri: https://api.github.com
    description: GitHub Actions API — Permissions business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-actions-permissions
      path: /orgs/{org}/actions/permissions
      operations:
      - name: getgithubactionspermissionsorg
        method: GET
        description: Get Github Actions Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setgithubactionspermissionsorg
        method: PUT
        description: Set Github Actions Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-permissions
      path: /repos/{owner}/{repo}/actions/permissions
      operations:
      - name: getgithubactionspermissionsrepo
        method: GET
        description: Get Github Actions Permissions for a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setgithubactionspermissionsrepo
        method: PUT
        description: Set Github Actions Permissions for a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: repos-owner-repo-actions-permissions-workflow
      path: /repos/{owner}/{repo}/actions/permissions/workflow
      operations:
      - name: getgithubactionsdefaultworkflowpermissionsrepo
        method: GET
        description: Github Actions Get Default Workflow Permissions for a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: setgithubactionsdefaultworkflowpermissionsrepo
        method: PUT
        description: Github Actions Set Default Workflow Permissions for a Repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GITHUB_ACTIONS_API_KEY}}'
  exposes:
  - type: rest
    namespace: github-actions-permissions-rest
    port: 8080
    description: REST adapter for GitHub Actions API — Permissions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/orgs/{org}/actions/permissions
      name: orgs-org-actions-permissions
      description: REST surface for orgs-org-actions-permissions.
      operations:
      - method: GET
        name: getgithubactionspermissionsorg
        description: Get Github Actions Permissions for an Organization
        call: github-actions-permissions.getgithubactionspermissionsorg
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setgithubactionspermissionsorg
        description: Set Github Actions Permissions for an Organization
        call: github-actions-permissions.setgithubactionspermissionsorg
        with:
          body: rest.body
        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: getgithubactionspermissionsrepo
        description: Get Github Actions Permissions for a Repository
        call: github-actions-permissions.getgithubactionspermissionsrepo
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setgithubactionspermissionsrepo
        description: Set Github Actions Permissions for a Repository
        call: github-actions-permissions.setgithubactionspermissionsrepo
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/permissions/workflow
      name: repos-owner-repo-actions-permissions-workflow
      description: REST surface for repos-owner-repo-actions-permissions-workflow.
      operations:
      - method: GET
        name: getgithubactionsdefaultworkflowpermissionsrepo
        description: Github Actions Get Default Workflow Permissions for a Repository
        call: github-actions-permissions.getgithubactionsdefaultworkflowpermissionsrepo
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: setgithubactionsdefaultworkflowpermissionsrepo
        description: Github Actions Set Default Workflow Permissions for a Repository
        call: github-actions-permissions.setgithubactionsdefaultworkflowpermissionsrepo
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: github-actions-permissions-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Actions API — Permissions. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-github-actions-permissions-organization
      description: Get Github Actions Permissions for an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-permissions.getgithubactionspermissionsorg
      outputParameters:
      - type: object
        mapping: $.
    - name: set-github-actions-permissions-organization
      description: Set Github Actions Permissions for an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: github-actions-permissions.setgithubactionspermissionsorg
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-github-actions-permissions-repository
      description: Get Github Actions Permissions for a Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-permissions.getgithubactionspermissionsrepo
      outputParameters:
      - type: object
        mapping: $.
    - name: set-github-actions-permissions-repository
      description: Set Github Actions Permissions for a Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: github-actions-permissions.setgithubactionspermissionsrepo
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-get-default-workflow
      description: Github Actions Get Default Workflow Permissions for a Repository
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-permissions.getgithubactionsdefaultworkflowpermissionsrepo
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-set-default-workflow
      description: Github Actions Set Default Workflow Permissions for a Repository
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: github-actions-permissions.setgithubactionsdefaultworkflowpermissionsrepo
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.