Schema
orgAccessTokenResource
Type:
object
path
· required
Type:
string
The path of the resource. The format of this will change depending on the type of resource.
For TYPE_REPO resources:
- Must be an existing repository name (e.g., "myorg/myrepo")
- Can use glob patterns (e.g., "myorg/*" for all repositories in the organization)
- Use "//public" to reference all public repositories
All schema constraints and annotations
{
"description": "The path of the resource. The format of this will change depending on the type of resource.\n\nFor TYPE_REPO resources:\n- Must be an existing repository name (e.g., \"myorg/myrepo\")\n- Can use glob patterns (e.g., \"myorg/*\" for all repositories in the organization)\n- Use \"*/*/public\" to reference all public repositories\n",
"example": "myorg/myrepo",
"type": "string"
}scopes
· required
Type:
array
The scopes this token has access to
Array item
Type:
string
All schema constraints and annotations
{
"example": "scope-image-pull",
"type": "string"
}All schema constraints and annotations
{
"description": "The scopes this token has access to",
"items": {
"example": "scope-image-pull",
"type": "string"
},
"type": "array"
}type
· required
Type:
string
The type of resource
All schema constraints and annotations
{
"description": "The type of resource",
"enum": [
"TYPE_REPO",
"TYPE_ORG"
],
"example": "TYPE_REPO",
"type": "string"
}All schema constraints and annotations
{
"properties": {
"path": {
"description": "The path of the resource. The format of this will change depending on the type of resource.\n\nFor TYPE_REPO resources:\n- Must be an existing repository name (e.g., \"myorg/myrepo\")\n- Can use glob patterns (e.g., \"myorg/*\" for all repositories in the organization)\n- Use \"*/*/public\" to reference all public repositories\n",
"example": "myorg/myrepo",
"type": "string"
},
"scopes": {
"description": "The scopes this token has access to",
"items": {
"example": "scope-image-pull",
"type": "string"
},
"type": "array"
},
"type": {
"description": "The type of resource",
"enum": [
"TYPE_REPO",
"TYPE_ORG"
],
"example": "TYPE_REPO",
"type": "string"
}
},
"required": [
"type",
"path",
"scopes"
],
"type": "object"
}