Skip to content

Retry mechanism for 403 errors agaist Github ID Token API #469

@jkroepke

Description

@jkroepke

If concurrency groups are enabled for tasks, jobs are getting in Pending state.

Since the aws-actions/configure-aws-credentials is one of the first actions, the action would instantly tries to call the Github ID Token Endpoint.

Sometimes, the Github API raises an error like

Error: Error message: Failed to get ID Token. 
        Error Code : 403
        Error Message: Can't issue ID_TOKEN for job in 'Pending' state.

which is not true.

It seems like a race condition on GitHub site. Retrying the request in 1 or 2 seconds would resolve this error until the error is fixed on GitHub site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffort/mediumThis issue will take a few days of effort to fixp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions