hashicorp/vault-action

[BUG] Intermittant: "Error message: Failed to get ID Token."

Opened this issue · 2 comments

Before I invest time in this, would you be open to contributions here?

Vault server version

1.15.2

vault-action version

v2.8.0

Describe the bug

In the last two weeks we've seen more occurrences of this.

jwt = await core.getIDToken(githubAudience)

This line is failing.

Error: Error message: Failed to get ID Token. 
 
        Error Code : undefined
 
        Error Message: 

To Reproduce

It's likely an underlying github issue and happens more frequently recently.

Expected behavior

Just retry the idToken retrieval.

Log Output

Additional context

Add any other context about the problem here.
Others have implemented retries, too:
aws-actions/configure-aws-credentials#469
https://github.com/aws-actions/configure-aws-credentials/blob/a5dceb9b44a45021a99d8625cf6bc63214e8114c/src/index.ts#L112

somewhat related PR: #442

same problem for me as well