{"id":20697700,"url":"https://github.com/clouddrove/github-actions","last_synced_at":"2025-04-22T20:46:36.862Z","repository":{"id":40354516,"uuid":"226865125","full_name":"clouddrove/github-actions","owner":"clouddrove","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-19T13:01:28.000Z","size":89,"stargazers_count":3,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T17:54:51.553Z","etag":null,"topics":["github","github-actions","github-config","hackoctoberfest"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clouddrove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-09T12:23:31.000Z","updated_at":"2025-03-19T10:16:04.000Z","dependencies_parsed_at":"2024-11-07T13:32:35.067Z","dependency_job_id":"84c2c0da-0f53-4ec3-9b1e-8e17c5c2c72f","html_url":"https://github.com/clouddrove/github-actions","commit_stats":{"total_commits":102,"total_committers":9,"mean_commits":"11.333333333333334","dds":0.5196078431372548,"last_synced_commit":"7d30f9cfad99e00392ead7156ce382effd64f68c"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clouddrove%2Fgithub-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clouddrove%2Fgithub-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clouddrove%2Fgithub-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clouddrove%2Fgithub-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clouddrove","download_url":"https://codeload.github.com/clouddrove/github-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250322235,"owners_count":21411722,"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","github-config","hackoctoberfest"],"created_at":"2024-11-17T00:19:30.160Z","updated_at":"2025-04-22T20:46:36.834Z","avatar_url":"https://github.com/clouddrove.png","language":"Shell","readme":"\n\u003ch1 align=\"center\"\u003e\n    Github Actions\n\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"font-size: 1.2rem;\"\u003e\n    GitHub Actions allow you to execute Terraform commands within GitHub Actions.\n     \u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\n\u003ca href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-aws-vpc'\u003e\n  \u003cimg title=\"Share on Facebook\" src=\"https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://www.linkedin.com/shareArticle?mini=true\u0026title=Terraform+AWS+VPC\u0026url=https://github.com/clouddrove/terraform-aws-vpc'\u003e\n  \u003cimg title=\"Share on LinkedIn\" src=\"https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://twitter.com/intent/tweet/?text=Terraform+AWS+VPC\u0026url=https://github.com/clouddrove/terraform-aws-vpc'\u003e\n  \u003cimg title=\"Share on Twitter\" src=\"https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png\" /\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\u003chr\u003e\n\n## Usage\n\n### terraform and terratest\nThe most common workflow is to run `terratest` `terraform fmt`, `terraform init`, `terraform validate`, and `terraform plan` on all of the Terraform files in the root of the repository when a pull request is opened or updated. A comment will be posted to the pull request depending on the output of the Terraform subcommand being executed. This workflow can be configured by adding the following content to the GitHub Actions workflow YAML file.\n\n```yaml\nname: 'Terraform GitHub Actions'\non:\n  - pull_request\n\njobs:\n  terraform:\n    name: 'Terraform'\n    runs-on: ubuntu-latest\n    steps:\n\n      - name: 'Checkout'\n        uses: actions/checkout@master\n\n      - name: 'Terraform format'\n        uses: clouddrove/github-actions@master\n        with:\n          actions_subcommand: 'fmt'\n\n      - name: 'Terraform init fot public-private-subnet'\n        uses: clouddrove/github-actions@master\n        with:\n          actions_subcommand: 'init'\n          tf_actions_working_dir: ./_example/public-private-subnet    \n      \n      - name: Configure aws credentials\n        uses: clouddrove/configure-aws-credentials@v1\n        with:\n         aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n         aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n         aws-region: us-east-2      \n     \n      - name: 'Terraform plan for public-private-subnet'\n        uses: clouddrove/github-actions@9.0.3\n        with:\n          actions_subcommand: 'plan'\n          tf_actions_working_dir: ./_example/public-private-subnet\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: 'Terratest for public-private-subnet'\n        uses: clouddrove/github-actions@9.0.3\n        with:\n          actions_subcommand: 'terratest'\n          tf_actions_working_dir: ./_test/public-private-subnet\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: 'Terratest for public-subnet'\n        uses: clouddrove/github-actions@9.0.3\n        with:\n          actions_subcommand: 'terratest'\n          tf_actions_working_dir: ./_test/public-subnet\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: 'Slack notification'\n        uses: clouddrove/action-slack@v2\n        with:\n          status: ${{ job.status }}\n          fields: repo,author\n          author_name: 'CloudDrove'\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} # required\n        if: always()\n```\n\nThis was a simplified example showing the basic features of these Terraform GitHub Actions. Please refer to the examples within the `examples` directory for other common workflows.\n\n## Inputs\n\nInputs configure Terraform GitHub Actions to perform different actions.\n\n* `actions_subcommand` - (Required) The Terraform subcommand to execute. Valid values are `terratest` `fmt`, `init`, `validate`, `plan`, and `apply`.\n* `tf_actions_version` - (Required) The Terraform version to install and execute.\n* `tf_actions_cli_credentials_hostname` - (Optional) Hostname for the CLI credentials file. Defaults to `app.terraform.io`.\n* `tf_actions_cli_credentials_token` - (Optional) Token for the CLI credentials file.\n* `tf_actions_comment` - (Optional) Whether or not to comment on GitHub pull requests. Defaults to `true`.\n* `tf_actions_working_dir` - (Optional) The working directory to change into before executing Terraform subcommands. Defaults to `.` which means use the root of the GitHub repository.\n* `terratest` - (Optional) If you want to run `terratest` of terraform module.\n\n## Outputs\n\nOutputs are used to pass information to subsequent GitHub Actions steps.\n\n* `tf_actions_output` - The Terraform outputs in JSON format.\n* `tf_actions_plan_has_changes` - Whether or not the Terraform plan contained changes.\n\n## Secrets\n\nSecrets are similar to inputs except that they are encrypted and only used by GitHub Actions. It's a convenient way to keep sensitive data out of the GitHub Actions workflow YAML file.\n\n* `GITHUB_TOKEN` - (Optional) The GitHub API token used to post comments to pull requests. Not required if the `tf_actions_comment` input is set to `false`.\n\nOther secrets may be needed to authenticate with Terraform backends and providers.\n\n**WARNING:** These secrets could be exposed if the action is executed on a malicious Terraform file. To avoid this, it is recommended not to use these Terraform GitHub Actions on repositories where untrusted users can submit pull requests.\n\n## Feedback\nIf you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-vpc/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).\n\nIf you have found it worth your time, go ahead and give us a * on [our GitHub](https://github.com/clouddrove/github-actions)!\n\n## About us\n\nAt [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.\n\n\u003cp align=\"center\"\u003eWe are \u003cb\u003e The Cloud Experts!\u003c/b\u003e\u003c/p\u003e\n\u003chr /\u003e\n\u003cp align=\"center\"\u003eWe ❤️  \u003ca href=\"https://github.com/clouddrove\"\u003eOpen Source\u003c/a\u003e and you can check out \u003ca href=\"https://github.com/clouddrove\"\u003eour other modules\u003c/a\u003e to get help with your new Cloud ideas.\u003c/p\u003e\n\n  [website]: https://clouddrove.com\n  [github]: https://github.com/clouddrove\n  [linkedin]: https://cpco.io/linkedin\n  [twitter]: https://twitter.com/clouddrove/\n  [email]: https://clouddrove.com/contact-us.html\n  [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93\u0026q=terraform-\u0026type=\u0026language=\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclouddrove%2Fgithub-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclouddrove%2Fgithub-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclouddrove%2Fgithub-actions/lists"}