Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 9 days ago
JSON representation

Terraform github secrets

Awesome Lists containing this project

README

        

[![Latest Release](https://img.shields.io/github/release/hadenlabs/terraform-github-secrets)](https://github.com/hadenlabs/terraform-github-secrets/releases) [![Lint](https://img.shields.io/github/workflow/status/hadenlabs/terraform-github-secrets/lint-code)](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=lint-code) [![CI](https://img.shields.io/github/workflow/status/hadenlabs/terraform-github-secrets/ci)](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=ci) [![Test](https://img.shields.io/github/workflow/status/hadenlabs/terraform-github-secrets/test)](https://github.com/hadenlabs/terraform-github-secrets/actions?workflow=test) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow)](https://conventionalcommits.org) [![KeepAChangelog](https://img.shields.io/badge/changelog-Keep%20a%20Changelog%20v1.0.0-orange)](https://keepachangelog.com) [![Terraform Version](https://img.shields.io/badge/terraform-1.x%20|%200.15%20|%200.14%20|%200.13%20|%200.12.20+-623CE4.svg?logo=terraform)](https://github.com/hashicorp/terraform/releases) [![AWS Provider Version](https://img.shields.io/badge/AWS-3%20and%202.0+-F8991D.svg?logo=terraform)](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)