Accessed v1
This entry is created whenever an agent run, such as an investigation, a chat or a code agent, checks out one of your repositories
WEBHOOK
code_repository.accessed.1
{
"action": "code_repository.accessed",
"actor": {
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"metadata": {
"user_base_role_slug": "admin",
"user_custom_role_slugs": "engineering,security"
},
"name": "John Doe",
"type": "user"
},
"context": {
"location": "1.2.3.4",
"user_agent": "Chrome/91.0.4472.114"
},
"metadata": {
"alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"incident_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"investigation_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"revision_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"run_type": "investigation",
"user_id": "01FCNDV6P870EA6S7TK1DSYDG0"
},
"occurred_at": "2021-08-17T13:28:57.801578Z",
"targets": [
{
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "acme/api",
"type": "code_repository"
}
],
"version": 1
}Authorizations
Response
200 - application/json
OK response.
Show child attributes
Show child attributes
Example:
{
"alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"incident_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"investigation_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"revision_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"run_type": "investigation",
"user_id": "01FCNDV6P870EA6S7TK1DSYDG0"
}
Was this page helpful?
{
"action": "code_repository.accessed",
"actor": {
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"metadata": {
"user_base_role_slug": "admin",
"user_custom_role_slugs": "engineering,security"
},
"name": "John Doe",
"type": "user"
},
"context": {
"location": "1.2.3.4",
"user_agent": "Chrome/91.0.4472.114"
},
"metadata": {
"alert_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"incident_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"investigation_id": "01FCNDV6P870EA6S7TK1DSYDG0",
"revision_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"run_type": "investigation",
"user_id": "01FCNDV6P870EA6S7TK1DSYDG0"
},
"occurred_at": "2021-08-17T13:28:57.801578Z",
"targets": [
{
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "acme/api",
"type": "code_repository"
}
],
"version": 1
}