{"id":19586335,"url":"https://github.com/tbobm/terraform-github-secrets","last_synced_at":"2025-04-23T02:09:17.804Z","repository":{"id":45115708,"uuid":"434890875","full_name":"tbobm/terraform-github-secrets","owner":"tbobm","description":"Terraform module to manage Github Repository Secrets and Github Actions Environment Secrets.","archived":false,"fork":false,"pushed_at":"2022-10-05T09:48:43.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T02:09:10.027Z","etag":null,"topics":["github","github-actions","secrets","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/tbobm/secrets/github/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbobm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-04T12:07:47.000Z","updated_at":"2024-06-28T09:30:42.000Z","dependencies_parsed_at":"2023-01-19T04:30:18.552Z","dependency_job_id":null,"html_url":"https://github.com/tbobm/terraform-github-secrets","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Fterraform-github-secrets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Fterraform-github-secrets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Fterraform-github-secrets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbobm%2Fterraform-github-secrets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbobm","download_url":"https://codeload.github.com/tbobm/terraform-github-secrets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354510,"owners_count":21416752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-actions","secrets","terraform","terraform-module"],"created_at":"2024-11-11T07:59:26.809Z","updated_at":"2025-04-23T02:09:17.788Z","avatar_url":"https://github.com/tbobm.png","language":"HCL","readme":"# terraform-github-secrets\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/terraform-github-secrets)\n[![terraform-github-secrets](https://github.com/tbobm/terraform-github-secrets/workflows/terraform-github-secrets/badge.svg)](https://github.com/tbobm/terraform-github-secrets/actions?query=workflow%3Aterraform-github-secrets)\n\nTerraform module to manage Github Repository Secrets and Github Actions Environment Secrets.\n\n## Doc generation\n\nCode formatting and documentation for variables and outputs is generated using\n[pre-commit-terraform\nhooks](https://github.com/antonbabenko/pre-commit-terraform) which uses\n[terraform-docs](https://github.com/segmentio/terraform-docs).\n\nFollow [these\ninstructions](https://github.com/antonbabenko/pre-commit-terraform#how-to-install)\nto install pre-commit locally.\n\nAnd install `terraform-docs` with `go get github.com/segmentio/terraform-docs`\nor `brew install terraform-docs`.\n\n## Contributing\n\nReport issues/questions/feature requests on in the\n[issues](https://github.com/tbobm/terraform-github-secrets/issues/new)\nsection.\n\nFull contributing [guidelines are covered\nhere](https://github.com/tbobm/terraform-github-secrets/blob/master/.github/CONTRIBUTING.md).\n\n## Usage\n\n### Github Authentication\n\nYou will need to authenticate against Github using an OAuth Token or Personal Access Token.\nSee [Github Provider#Authentication][tf-gh-auth] for more informations.\n\nThis can be done by setting the `token` argument of the `github` provider or by exporting\nyour Token to the `GITHUB_TOKEN` environment variable.\n\n_Provider configuration:_\n```hcl\nprovider \"github\" {\n  token = var.token # or `GITHUB_TOKEN`\n}\n```\n\n_Environment variable configuration:_\n```bash\nexport GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n[tf-gh-auth]: https://registry.terraform.io/providers/integrations/github/latest/docs#authentication\n\n### Example\n\n```hcl\nmodule \"secrets\" {\n  source = \"../\"\n\n  repository = \"tbobm/terraform-github-secrets\"\n\n  secrets = {\n    deploy_key = {\n      name      = \"DEPLOY_KEY\"\n      plaintext = \"ABCDEF\"\n    }\n    registry_username = {\n      name      = \"DOCKERHUB_USERNAME\"\n      plaintext = \"sampleuser\"\n    }\n    registry_password = {\n      name      = \"DOCKERHUB_PASSWORD\"\n      plaintext = \"samplepass\"\n    }\n  }\n  environment_secrets = {\n    production = {  # the production env must exist beforehand\n      ssh_username = {\n        name      = \"SSH_USERNAME\"\n        plaintext = \"sampleuser\"\n      }\n      ssh_password = {\n        name      = \"SSH_PASSWORD\"\n        plaintext = \"samplepass\"\n      }\n    }\n  }\n}\n```\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.15 |\n| \u003ca name=\"requirement_github\"\u003e\u003c/a\u003e [github](#requirement\\_github) | ~\u003e 4 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_github\"\u003e\u003c/a\u003e [github](#provider\\_github) | ~\u003e 4 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [github_actions_environment_secret.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_environment_secret) | resource |\n| [github_actions_secret.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_secret) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_environment_secrets\"\u003e\u003c/a\u003e [environment\\_secrets](#input\\_environment\\_secrets) | A map of environment-scoped secrets | `map(any)` | `{}` | no |\n| \u003ca name=\"input_repository\"\u003e\u003c/a\u003e [repository](#input\\_repository) | The full name of the repository in the form org/repo | `string` | n/a | yes |\n| \u003ca name=\"input_secrets\"\u003e\u003c/a\u003e [secrets](#input\\_secrets) | A map of secret definitions | `map(any)` | `{}` | no |\n\n## Outputs\n\nNo outputs.\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbobm%2Fterraform-github-secrets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbobm%2Fterraform-github-secrets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbobm%2Fterraform-github-secrets/lists"}