Martin Konir
07/04/2024, 8:37 AM{
....
"request": {
"method": "POST",
"url": "<https://api.github.com/repos/oracle/customer-service/dispatches>",
"headers": {
"Authorization": "Bearer GITHUB_TOKEN"
},
"body": {
"event_type": "contract_requiring_verification_published",
....
However, I am interested in where exactly you get that Authorization token. The only option that seems possible is to use some sort of GitHub CI account and generate a token for it that is valid indefinitely. But for several reasons, we don't want to use this option.
I would say that normally, this situation would be handled by creating a GitHub application and dynamically generating a token before every request to github, but if I'm not mistaken, pactbroker does not support this.
How do you handle this situation?Matt (pactflow.io / pact-js / pact-go)