Skip to content

Commit

Permalink
ci: add ssh:// insteadOf rule to cover Terraform URL normalization
Browse files Browse the repository at this point in the history
Terraform normalizes SCP-style SSH sources (git@host:path) to ssh:// URLs
before invoking git, so the previous insteadOf rule for 'git@github.e.it.census.gov:'
did not match. Added a second rule for 'ssh://git@github.e.it.census.gov/' so
both URL forms are rewritten to authenticated HTTPS.
  • Loading branch information
Dave Arnold committed Jun 24, 2026
1 parent 0d10483 commit f76ef2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/terraform-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Configure Git HTTPS for Terraform module pulls
run: |
git config --global url."https://oauth2:${{ steps.github_credentials.outputs.github_token }}@github.e.it.census.gov/".insteadOf "git@github.e.it.census.gov:"
git config --global url."https://oauth2:${{ steps.github_credentials.outputs.github_token }}@github.e.it.census.gov/".insteadOf "ssh://git@github.e.it.census.gov/"
- name: Setup Terraform
uses: CSVD/gh-actions-setup-terraform@v2
Expand Down

0 comments on commit f76ef2e

Please sign in to comment.