Actions

Update repository Actions settings

Changes the repository's Actions policy. expectedVersion 0 creates the settings; every change bumps the version and fences runs admitted under the previous one. Requires authenticated authority and enforces current resource policy.

patch/api/repos/{owner}/{repo}/actions/settings

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:administration:admin

Path parameters

ownerstring required
repostring required

Request body

expectedVersioninteger required
enabledboolean
useInstancePoolboolean
forkPolicy'disabled' | 'approval'

Response

Response for status 200

enabledboolean required
useInstancePoolboolean required
forkPolicy'disabled' | 'approval' required
versioninteger required
admittedboolean required
hostedAvailableboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.