globocom / huskyCI

Performing security tests inside your CI
https://huskyci.opensource.globo.com
BSD 3-Clause "New" or "Revised" License
572 stars 137 forks source link

feat: allow multiple internal remotes #516

Closed arnaudlanna closed 4 years ago

arnaudlanna commented 4 years ago

Description

Closes #497

Proposed Changes

Allows substitution of multiple remotes. It should work with a single repository as it did before, so there are no breaking changes.

Testing

Run huskyCI for a Go project that contains internal repositories from more than one source requiring SSH authentication.

HUSKYCI_API_GIT_SSH_URL=("gitlab@gitlab.example.com" "gitlab@gitlab.otherexample.com" "gitlab@gitlab.anotherexample.com")
HUSKYCI_API_GIT_URL_TO_SUBSTITUTE=("https://gitlab.example.com/" "https://gitlab.otherexample.com/" "https://gitlab.anotherexample.com/")