Firefox CI Hook with a trigger token
Categories
(Release Engineering :: Firefox-CI Administration, task)
Tracking
(Not tracked)
People
(Reporter: bastien, Unassigned)
References
Details
Hello,
I'm working on the code-review project running on Firefox CI.
We would like to create a new Taskcluster hook on the Firefox CI instance that would be triggered by Phabricator upon new diffs.
The new hook would be similar to the existing project-relman/code-review-production that is defined in fxci-config.
How can I get the secret token to trigger that hook through the triggerHookWithToken ?
Thanks for your help
Comment 1•1 year ago
|
||
Hi Bastien! Thanks for raising, I'll pass this over to Release Engineering, someone there should be able to assist you with this.
Comment 2•1 year ago
|
||
Can you give more info on what you want to do?
What would trigger the hook / how?
Per https://docs.taskcluster.net/docs/reference/core/hooks/api#getTriggerToken, a client with the hooks:get-trigger-token:<hookGroupId>/<hookId> scope can request the trigger token.
| Reporter | ||
Comment 3•1 year ago
|
||
Hello Julien,
Here is a summary of what I'm trying to build.
I did not know about getTriggerToken, so that answers "how" to get the token, provided we have the scope for our future hook.
I'll file another bug to request the Phabricator webhook and a fxci-config PR for the hook.
| Reporter | ||
Comment 4•1 year ago
|
||
Actually with just the extra scope, I can re-use the existing hooks (as they already have a cache & secret access)
| Reporter | ||
Comment 5•1 year ago
|
||
I successfully triggered code-review testing hook with the token. Thank you !
Description
•