https://github.com/philips-labs/terraform-private-modules-action
GitHub action that allows you to use private terraform modules that are stored in GitHub repos.
https://github.com/philips-labs/terraform-private-modules-action
Last synced: 7 months ago
JSON representation
GitHub action that allows you to use private terraform modules that are stored in GitHub repos.
- Host: GitHub
- URL: https://github.com/philips-labs/terraform-private-modules-action
- Owner: philips-labs
- License: mit
- Created: 2021-10-11T15:42:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T13:01:35.000Z (over 2 years ago)
- Last Synced: 2025-01-18T05:30:46.901Z (9 months ago)
- Size: 4.88 KB
- Stars: 10
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Private Modules Action
This is a composite GitHub action that allows you to use private terraform modules that are stored in GitHub repos.
It does this by using a git alias for your internal organisation that includes a github token.
This action should be used before any terraform commands. It gives access to any repos that the token supplied has action.
It is important to note that this allows access to any tool using Git and is not limited to terraform.
## Inputs
| Name | Description | Required |
| ----- | ----------------------------------------------------- | -------- |
| org | The org where the private modules are stored. | true |
| token | The token that grants access to the repos in the org. | true |## Outputs
None.
## Example
```yaml
jobs:
terraform:
name: Terraform
container: hashicorp/terraform
steps:
- uses: actions/checkout@v1- id: private-modules
uses: philips-labs/terraform-private-modules-action@v1
with:
org: philips-internal
token: ${{ secrets.MY_TOKEN }}- id: init
run: terraform init
```