Adding step in setup-go to use GATI Token in pulling private repos #710
+20
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We have a repository (chainlink-starknet) that uses chainlink-testing-framework to run it's integration tests. We recently added a dependency on guauntlet-plus-plus which is a private repo. This is causing our Github CI/CD steps to fail on the step that uses the chainlink-testing-framework image. More specifically its failing on the setup-go step where it runs Tidy and check files, since the workflow can't pull the private repo when running go mod tidy
After talking with the infra team they advised to use GATI while setting git configs in order to pull from private repos
Changes
Added an extra step that takes in an optional GATI Token that sets git configs before running go mod tidy
Step runs on an if so it's backwards compatible
Ticket
NONEVM-642