{"id":22571301,"url":"https://github.com/edsoncelio/terraform-default-workflow","last_synced_at":"2025-07-11T22:08:57.218Z","repository":{"id":138891113,"uuid":"419920081","full_name":"edsoncelio/terraform-default-workflow","owner":"edsoncelio","description":"Terraform workflow to be reused!","archived":false,"fork":false,"pushed_at":"2021-10-26T16:58:12.000Z","size":13,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T14:02:58.049Z","etag":null,"topics":["terraform","tfsec","workflow"],"latest_commit_sha":null,"homepage":"","language":null,"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/edsoncelio.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":"2021-10-22T00:43:43.000Z","updated_at":"2024-04-15T06:06:58.000Z","dependencies_parsed_at":"2023-05-18T18:00:59.017Z","dependency_job_id":null,"html_url":"https://github.com/edsoncelio/terraform-default-workflow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/edsoncelio/terraform-default-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fterraform-default-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fterraform-default-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fterraform-default-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fterraform-default-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsoncelio","download_url":"https://codeload.github.com/edsoncelio/terraform-default-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsoncelio%2Fterraform-default-workflow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904805,"owners_count":23681276,"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":["terraform","tfsec","workflow"],"created_at":"2024-12-08T01:16:09.899Z","updated_at":"2025-07-11T22:08:57.210Z","avatar_url":"https://github.com/edsoncelio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-default-workflow\nTerraform workflow to be reused in your project, with commom Terraform steps and static analysis with [tfsec](https://github.com/aquasecurity/tfsec).\n\n## Actions\n* https://github.com/marketplace/actions/hashicorp-setup-terraform\n* https://github.com/marketplace/actions/run-tfsec-pr-commenter\n\n\n\n## How it works\n\nThis workflow will setup a CI with the following jobs (and steps):\n\n### `jobs_terraform`\nA job triggered at all `push` events with the steps:\n* checkout the code\n* setup Terraform\n* Run Terraform fmt\n* Run Terraform init\n* Run Terraform validate\n\n### `jobs_tfsec`\nA job triggered at all `pull_request` events with the steps:\n* checkout the code\n* setup tfsec\n* run tfsec static analysis\n* If a vulnerability is found, create a comment in PR\n\n\n## Inputs\n\n* `command_wrk_dir`: Working dir (optional, type: string, default: `'./'`)\n* `command_continue_on_error`: If a job will continue on error (optional, type: boolean, default: `false`)\n* `tf_version`: Terraform version (optional, type: string, default: `1.0.0`)\n* `tf_wrapper`: If will use the Terraform wrapper (toptional, ype: boolean, default: `false`)\n* `token`: Github secret token, available by default (type: secret, required)\n\nIf you want override the defaults Terraform commands, you can use:\n* `tf_command_fmt`: Terraform fmt command (optional, type: string, default: `'terraform fmt -check'`)\n* `tf_command_init`: Terraform init command (optional, type: string, default: `'terraform init'`)\n* `tf_command_validate`: Terraform validate command (optional, type: string, default: `'terraform validate -no-color'`)\n\n\n\n## Usage\nIn your caller workflow, first set your trigger (see the [docs](https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows))\n\nCalling the workflow with all the default inputs:\n```\n...\n\njobs:\n  my-terraform-workflow:\n    uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v2\n    secrets:\n        token: ${{ secrets.GITHUB_TOKEN }}\n```\nAnd with customized inputs:\n```\n...\n\njobs:\n  my-terraform-workflow:\n    uses: edsoncelio/terraform-default-workflow/.github/workflows/terraform.yml@v2\n    with:\n        command_wrk_dir: './infra-code-dir'\n    secrets:\n        token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n\n## Contributing\nJust open a PR or issue :D\n\n## License\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsoncelio%2Fterraform-default-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsoncelio%2Fterraform-default-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsoncelio%2Fterraform-default-workflow/lists"}