-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Rotate Github App Token outside of Atlantis commands #3208
feat: Rotate Github App Token outside of Atlantis commands #3208
Conversation
@nitrocode Hey could you have a quick look and give some feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
} | ||
} | ||
|
||
func (s *ExecutorService) AddJob(jd JobDefinition) { | ||
s.jobs = append(s.jobs, jd) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👍
@nitrocode pls review |
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
@jonathanwiemers please fix linter errors |
@nitrocode fixed it |
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
…is#3208) Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
…is#3208) Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
what
server/events/git_cred_writer.go
out of thegit clone
flow, when using GitHub app authenticationwhy
The GitHub app credentials can expire if a PR was open for a long time and no other clone happened in the meantime on Atlantis.
Terraform init
would then fail to download downstream modules from git.This PR changes the behaviour of Github app token refreshes to happen outside of the usual Atlantis commands and ensures that the token is always valid.
tests
I have tested my changes by
references
fixes #3186