Who triggered this deployment? Trace it in Gregale
Find the original deployment request in workspace Activity and distinguish the requester from later traffic changes.
To find who triggered a deployment on Gregale, look for the original
deploy.requested event in workspace Activity. Match both the app ID and
the deployment ID. A later rollout, promotion or rollback can have a
different actor. The newest event is not necessarily the original request.
Download the read-only lookup example. It looks up one deployment by ID and returns the exact event and actor Gregale recorded, or says the evidence is unavailable.
1. Start from the exact release
Record the app ID, deployment ID and approximate UTC time from the release page or deployment receipt. An app slug alone cannot distinguish a scheduled run, a release candidate and the revision currently serving traffic.
| Question | What to check |
|---|---|
| Who requested this release? | Workspace Activity, exact deploy.requested |
| Who changed traffic later? | A later traffic event, if recorded |
| What version served traffic? | Release traffic status or the serving receipt |
2. Identify the original requester
Open Activity in the workspace that owns the app and find the request at that time. If you have Activity API access, scope the query to the exact app. The example also matches the deployment ID locally; it never falls back to a neighboring event.
python3 find_requester.py --org WORKSPACE_SLUG \
--app-id APP_UUID --deployment-id DEPLOYMENT_UUID
The script reads GREGALE_TOKEN from the environment and calls
GET /v1/orgs/{slug}/activity with app_id and
kind_prefix=deploy.requested. Use a credential your workspace authorizes
to read Activity and satisfy its authentication requirements.
The output includes the event ID, timestamp, actor type and label.
It does not print the credential or the other events.
An API key label identifies the key Gregale recorded, not the person who used it. A GitHub label is not by itself proof that an Actions workflow rather than another GitHub event requested the deploy. Correlate with the commit and workflow run if you need that distinction.
3. Check promotion separately
Use the deployment's audit view, or read
GET /v1/deployments/{id}/audit for the exact candidate ID. If there is a traffic event, compare its
timestamp with the Activity request. If the audit is empty, the promotion receipt or
release traffic status can show a traffic change, but does not establish
who performed it.
In a disposable Gregale test, the read-only starter found the candidate's exact API-key request. After we promoted the candidate, the original Activity event still showed the same ID and actor. The deployment audit returned no rows, so the test did not establish a separate promoter identity.
If Activity is inaccessible, outside the lookup window, or missing the exact event, report the requester as unknown. Proximity in time and the name on a Git commit are not substitutes for authenticated request evidence.
Questions
- How do I find who triggered a deployment?
Find the deploy.requested event in workspace Activity and match both the app ID and deployment ID. The recorded actor is the original requester, not necessarily the person who promoted it.
- Can I tell which person used a deployment API key?
The event can identify the recorded API key by label, but it does not prove which person held it. Match it to a CI run or another independent record if you need that detail.