Closed Bug 1934254 Opened 1 year ago Closed 1 year ago

Firefox CI Hook with a trigger token

Categories

(Release Engineering :: Firefox-CI Administration, task)

Tracking

(Not tracked)

RESOLVED FIXED

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

Hi Bastien! Thanks for raising, I'll pass this over to Release Engineering, someone there should be able to assist you with this.

Component: Operations and Service Requests → Firefox-CI Administration
Product: Taskcluster → Release Engineering

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.

Flags: needinfo?(abadie)

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.

Flags: needinfo?(abadie)

Actually with just the extra scope, I can re-use the existing hooks (as they already have a cache & secret access)

I successfully triggered code-review testing hook with the token. Thank you !

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Blocks: 1935142
You need to log in before you can comment on or make changes to this bug.