diff --git a/README.md b/README.md index bc728e1..09532e5 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,31 @@ These input values must be the same as any `terraform-plan` for the same configu - Type: string - Optional +* `TERRAFORM_HTTP_CREDENTIALS` + + Credentials that will be used for fetching modules sources with `git::http://`, `git::https://`, `http://` & `https://` schemes. + + Credentials have the format `=:`. Multiple credentials may be specified, one per line. + + Each credential is evaluated in order, and the first matching credentials are used. + + Credentials that are used by git (`git::http://`, `git::https://`) allow a path after the hostname. + Paths are ignored by `http://` & `https://` schemes. + For git module sources, a credential matches if each mentioned path segment is an exact match. + + For example: + ```yaml + env: + TERRAFORM_HTTP_CREDENTIALS: | + example.com=dflook:${{ secrets.HTTPS_PASSWORD }} + github.com/dflook/terraform-github-actions.git=dflook-actions:${{ secrets.ACTIONS_PAT }} + github.com/dflook=dflook:${{ secrets.DFLOOK_PAT }} + github.com=graham:${{ secrets.GITHUB_PAT }} + ``` + + - Type: string + - Optional + ## Outputs An action output will be created for each output of the terraform configuration. diff --git a/action.yaml b/action.yaml index 9472d76..289cf22 100644 --- a/action.yaml +++ b/action.yaml @@ -48,7 +48,7 @@ inputs: runs: using: docker - image: docker://danielflook/terraform-github-actions:v1.9.3 + image: docker://danielflook/terraform-github-actions:v1.10.0 entrypoint: /entrypoints/apply.sh branding: