TrylleDocs
API ReferenceOpenAPI 3 reference

Repository CI configuration

GET
/v1/repositories/{owner}/{name}/actions/runtime-settings

Get the repository Actions policy and disabled workflow paths without enumerating workflow files.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/repositories/aa/aa/actions/runtime-settings"
{  "disabledWorkflowPaths": [    "abc123"  ],  "policy": "trylle"}
GET
/v1/repositories/{owner}/{name}/actions/secrets

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/repositories/aa/aa/actions/secrets"
"abc123"
GET
/v1/repositories/{owner}/{name}/actions/settings

Get repository Actions policy and workflow availability from .trylle/workflows and .github/workflows.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/repositories/aa/aa/actions/settings"
{  "disabledWorkflowPaths": [    "abc123"  ],  "policy": "trylle",  "workflows": [    {      "enabled": false,      "name": "abc123",      "path": "abc123",      "platform": "github"    }  ]}
PATCH
/v1/repositories/{owner}/{name}/actions/settings

Set which repository workflow platforms may run.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/actions/settings" \  -H "Content-Type: application/json" \  -d '{    "policy": "trylle"  }'
{  "policy": "trylle"}
GET
/v1/repositories/{owner}/{name}/actions/variables

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/repositories/aa/aa/actions/variables"
"abc123"
PATCH
/v1/repositories/{owner}/{name}/actions/workflows

Enable or disable one repository workflow file.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
name*string

Repository name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/actions/workflows" \  -H "Content-Type: application/json" \  -d '{    "enabled": false,    "path": ".github/workflows/aa.yml"  }'
{  "enabled": false,  "path": "abc123"}
POST
/v1/repositories/{owner}/{repo}/actions/secrets

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/repositories/aa/aa/actions/secrets" \  -H "Content-Type: application/json" \  -d '{    "name": "aa",    "secret": "abc123"  }'
"abc123"
PATCH
/v1/repositories/{owner}/{repo}/actions/secrets/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length
name*string

Secret name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/actions/secrets/aa" \  -H "Content-Type: application/json" \  -d '{    "secret": "abc123"  }'
"abc123"
DELETE
/v1/repositories/{owner}/{repo}/actions/secrets/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length
name*string

Secret name.

Length1 <= length

Response Body

application/json

curl -X DELETE "https://example.com/v1/repositories/aa/aa/actions/secrets/aa"
"abc123"
POST
/v1/repositories/{owner}/{repo}/actions/variables

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/repositories/aa/aa/actions/variables" \  -H "Content-Type: application/json" \  -d '{    "name": "aa",    "value": "abc123"  }'
"abc123"
PATCH
/v1/repositories/{owner}/{repo}/actions/variables/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length
name*string

Variable name.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://example.com/v1/repositories/aa/aa/actions/variables/aa" \  -H "Content-Type: application/json" \  -d '{    "value": "abc123"  }'
"abc123"
DELETE
/v1/repositories/{owner}/{repo}/actions/variables/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

owner*string

Repository owner.

Length1 <= length
repo*string

Repository name.

Length1 <= length
name*string

Variable name.

Length1 <= length

Response Body

application/json

curl -X DELETE "https://example.com/v1/repositories/aa/aa/actions/variables/aa"
"abc123"