terraform-example-foundation icon indicating copy to clipboard operation
terraform-example-foundation copied to clipboard

tf-wrapper should handle both main branch for policy repo

Open bharathkkb opened this issue 3 years ago • 1 comments

TL;DR

Some users may be using main branch for policy repo and our wrapper should support using it. Currently it fails with

Step #1 - "tf plan validate all":       At environment: envs/shared 
Step #1 - "tf plan validate all":       Using policy from: /workspace/policy-library 
Step #1 - "tf plan validate all": *****************************************************
Step #1 - "tf plan validate all": Cloning into '/workspace/policy-library'...
Step #1 - "tf plan validate all": warning: remote HEAD refers to nonexistent ref, unable to checkout.

/cc @jasonbisson

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

N/A

Terraform Version

N/A

Additional information

No response

bharathkkb avatar Mar 24 '22 15:03 bharathkkb

This issue can be remediated by updating the name of the repo for gcp-policies in the tf-wrapper file

henryb-shi avatar Mar 25 '22 13:03 henryb-shi

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 11 '22 23:09 github-actions[bot]