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

Use personal token and add error handling #103

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Use personal token and add error handling #103

merged 1 commit into from
Sep 29, 2022

Conversation

ben-harvey
Copy link
Contributor

Turns out that the ROBOT_MAC_FC_TOKEN set up by the Truss team is not configured in Dependabot secrets, so CI was failing for those jobs. We don't know the login info for the old robot user, so for the time being we can use one of my personal tokens (set to expire in 30 days) while we work on getting a new robot user.

Also adds error handling for the API call to GitHub to get the token used to register runners. I did this because I forgot to configure SSO for my PAT and the script that sets up the runners was failing without a helpful error.

Testing:
I ran the image locally with a valid/invalid token to test the branching logic and error messages in entrypoint.sh

Copy link
Contributor

@crbudzeak crbudzeak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ben-harvey ben-harvey merged commit 8ae1067 into main Sep 29, 2022
@ben-harvey ben-harvey deleted the bharvey-token branch September 29, 2022 16:43
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

Successfully merging this pull request may close these issues.

2 participants