https://github.com/hadenlabs/terraform-github-secrets
Terraform github secrets
https://github.com/hadenlabs/terraform-github-secrets
github hadenlabs peru repository terraform terraform-modules
Last synced: 5 months ago
JSON representation
Terraform github secrets
- Host: GitHub
- URL: https://github.com/hadenlabs/terraform-github-secrets
- Owner: hadenlabs
- License: lgpl-3.0
- Created: 2021-03-19T10:52:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T19:24:45.000Z (over 2 years ago)
- Last Synced: 2025-01-26T14:01:36.574Z (over 1 year ago)
- Topics: github, hadenlabs, peru, repository, terraform, terraform-modules
- Language: Go
- Homepage:
- Size: 438 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: docs/contributing.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: docs/code_of_conduct.md
- Security: SECURITY.md
- Support: docs/support.md
- Roadmap: docs/roadmap.md
Awesome Lists containing this project
README
[](https://github.com/hadenlabs/terraform-github-secrets/releases) [](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=lint-code) [](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=ci) [](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=test) [](https://github.com/pre-commit/pre-commit) [](https://conventionalcommits.org) [](https://keepachangelog.com) [](https://github.com/hashicorp/terraform/releases) [](https://github.com/terraform-providers/terraform-provider-aws/releases)
# terraform-github-secrets
Terraform module to provision an github secrets.
## Requirements
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
- [gomplate](https://github.com/hairyhenderson/gomplate)
- [terraform](https://github.com/hashicorp/terraform)
- [python](https://www.python.org)
- [taskfile](https://github.com/go-task/task)
## Usage
# How to use this project
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.2"
providers = {
github = github
}
visibility = "all"
secrets = {
GH_TOKEN = "token"
}
}
```
Full working examples can be found in [examples](./examples) folder.
## Examples
### Common
```hcl
module "main" {
source = "hadenlabs/secrets/github"
version = "0.1.2"
providers = {
github = github
}
visibility = "all"
secrets = {
GH_TOKEN = "token"
}
}
```
## Requirements
| Name | Version |
| --------- | ------- |
| terraform | >= 0.13 |
| github | >=4.5.0 |
## Providers
| Name | Version |
| ------ | ------- |
| github | >=4.5.0 |
## Modules
No modules.
## Resources
| Name | Type |
| --- | --- |
| [github_actions_organization_secret.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_secret) | resource |
## Inputs
| Name | Description | Type | Default | Required |
| ---------- | ------------------------------ | ---------- | ------- | :------: |
| secrets | secrets for repository | `map(any)` | n/a | yes |
| visibility | The visibility of the secrets. | `string` | n/a | yes |
## Outputs
| Name | Description |
| ------- | --------------------------------------------------- |
| secret | output instance github actions secrets organization |
| secrets | List of secrets available. |
## Help
**Got a question?**
File a GitHub [issue](https://github.com/hadenlabs/terraform-github-secrets/issues).
## Contributing
See [Contributing](./docs/contributing.md).
## Module Versioning
This Module follows the principles of [Semantic Versioning (SemVer)](https://semver.org/).
Using the given version number of `MAJOR.MINOR.PATCH`, we apply the following constructs:
1. Use the `MAJOR` version for incompatible changes.
1. Use the `MINOR` version when adding functionality in a backwards compatible manner.
1. Use the `PATCH` version when introducing backwards compatible bug fixes.
### Backwards compatibility in `0.0.z` and `0.y.z` version
- In the context of initial development, backwards compatibility in versions `0.0.z` is **not guaranteed** when `z` is increased. (Initial development)
- In the context of pre-release, backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is increased. (Pre-release)
## Copyright
Copyright © 2018-2024 [Hadenlabs](https://hadenlabs.com)
## Trademarks
All other trademarks referenced herein are the property of their respective owners.
## License
The code and styles are licensed under the LGPL-3.0 license [See project license.](LICENSE).
## Don't forget to 🌟 Star 🌟 the repo if you like terraform-github-secrets
[Your feedback is appreciated](https://github.com/hadenlabs/terraform-github-secrets/issues)