diggerhq / digger

Digger is an open source IaC orchestration tool. Digger allows you to run IaC in your existing CI pipeline ⚡️
https://digger.dev
Apache License 2.0
4.29k stars 577 forks source link

refresh job token before triggering job #1685

Closed motatoes closed 2 months ago

motatoes commented 2 months ago

Digger Team: When a run is queued and waits to be applied until user approved. We precreate job token and the expiry is set to two hours later. It means if a user waits more than that time before approving the token would have expired and job would h ave failed. In this PR we always refresh the token just before triggering the job in order to make sure that token would have not expired