Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent 401s when obtaining token #36

Open
btrautmann opened this issue Oct 24, 2023 · 2 comments
Open

Intermittent 401s when obtaining token #36

btrautmann opened this issue Oct 24, 2023 · 2 comments

Comments

@btrautmann
Copy link

We're seeing intermittent 401 status code responses when tryin to obtain a token:

Run peter-murray/workflow-application-token-action@8e1ba3bf1619726336414f1014e37f17fbadf1db
  with:
    application_id: ***
    application_private_key: ***
    permissions: contents:read
Error: Error: Failed to connect as application; status code: 401
'Issued at' claim ('iat') must be an Integer representing the time that the assertion was issued
Error: Failed to initialize GitHub Application connection using provided id and private key

Runner details:

Image: macos-13-arm64
  Version: 20231017.1
  Included Software: https://github.com/actions/runner-images/blob/macos-13-arm64/2023[10](https://github.com/Betterment/mobile/actions/runs/6620528616/job/18002684063#step:1:11)17.1/images/macos/macos-13-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-13-arm64%2F20231017.1

Any idea what might be going on?

@peter-murray
Copy link
Owner

The defaults will attempt to connect to the GitHub Actions repository, has the application been installed in to the repository that the actions workflow is executing from?

@btrautmann
Copy link
Author

The defaults will attempt to connect to the GitHub Actions repository, has the application been installed in to the repository that the actions workflow is executing from?

Yes, the action worked completely fine and without issue (with the app installed to the repository) before switching to M1 runners. Swapping to M1 runners caused this to happen. FWIW we have switched over to getsentry's implementation here and no longer have issues. I say that not as a dig or anything, but just to help others find something that may work more reliably in the meantime and to compare implementations if you believe it may help. This action was hugely helpful to us in our CICD implementation and we're very thankful for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants