{"id":15808551,"url":"https://github.com/kota65535/github-terraform-plan-slack-action","last_synced_at":"2025-05-07T22:29:05.621Z","repository":{"id":54746243,"uuid":"522645260","full_name":"kota65535/github-terraform-plan-slack-action","owner":"kota65535","description":"GitHub Action for sending terraform plan result to a Slack channel.","archived":false,"fork":false,"pushed_at":"2025-05-01T19:06:46.000Z","size":1424,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T20:23:10.292Z","etag":null,"topics":["github-actions","slack","terraform"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/kota65535.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,"zenodo":null}},"created_at":"2022-08-08T17:29:06.000Z","updated_at":"2025-03-31T12:00:48.000Z","dependencies_parsed_at":"2023-10-05T01:48:28.321Z","dependency_job_id":"b56977aa-8346-4ec7-be26-6cff95bc56b6","html_url":"https://github.com/kota65535/github-terraform-plan-slack-action","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":"0.26027397260273977","last_synced_commit":"94a54a028ff5236a5572c47673d9f2c301182515"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kota65535%2Fgithub-terraform-plan-slack-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kota65535%2Fgithub-terraform-plan-slack-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kota65535%2Fgithub-terraform-plan-slack-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kota65535%2Fgithub-terraform-plan-slack-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kota65535","download_url":"https://codeload.github.com/kota65535/github-terraform-plan-slack-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252964358,"owners_count":21832673,"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-actions","slack","terraform"],"created_at":"2024-10-05T03:03:42.321Z","updated_at":"2025-05-07T22:29:05.596Z","avatar_url":"https://github.com/kota65535.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-terraform-plan-slack-action\n\nGitHub Action for sending terraform plan result to a Slack channel.\n\n- Shows summary of the affected resources\n- [Click here](https://github.com/kota65535/github-terraform-plan-slack-action/actions/runs/3838277394/jobs/6534545272#step:8:56)\n  link to easily jump to the full plan log\n\n![img.png](img.png)\n\n## Inputs\n\n| Name                | Description                                   | Required | Default                                                 |\n|---------------------|-----------------------------------------------|----------|---------------------------------------------------------|\n| `plan-job`          | Job name where `terraform plan` has been run  | Yes      | N/A                                                     |\n| `plan-step`         | Step name where `terraform plan` has been run | Yes      | N/A                                                     |\n| `plan-index`        | Index number if multiple plans have run       | No       | 0                                                       |\n| `workspace`         | Terraform workspace name                      | No       | N/A                                                     |\n| `github-token`      | GitHub token                                  | No       | `${{ env.GITHUB_TOKEN }}` or\u003cbr/\u003e `${{ github.token }}` | \n| `channel`           | Slack channel name                            | No (*1)  | N/A                                                     | \n| `slack-bot-token`   | Slack bot token                               | No (*1)  | `${{ env.SLACK_BOT_TOKEN }}`                            | \n| `slack-webhook-url` | Slack webhook URL                             | No (*1)  | `${{ env.SLACK_WEBHOOK_URL }}`                          | \n\n1. Need to specify `channel` and `slack-bot-token` both or `slack-webhook-url`.\n\n## Outputs\n\n| Name             | Description                                                |\n|------------------|------------------------------------------------------------|\n| `should-apply`   | `true` if `terraform apply` is needed, otherwise `false`   |\n| `should-refresh` | `true` if `terraform refresh` is needed, otherwise `false` |\n\n## Usage\n\nUse this action after the job where you run `terraform plan`.\n\n```yaml\n\n  plan:\n    runs-on: ubuntu-latest\n    steps:\n      # ... other steps\n      \n      - name: Run terraform plan\n        run: terraform plan\n\n  after-plan:\n    runs-on: ubuntu-latest\n    needs:\n      - plan\n    steps:\n      - name: Notify terraform plan result to the Slack channel\n        uses: kota65535/github-terraform-plan-slack-action@v1\n        with:\n          plan-job: plan\n          plan-step: Run terraform plan\n          channel: my-ci\n          slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkota65535%2Fgithub-terraform-plan-slack-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkota65535%2Fgithub-terraform-plan-slack-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkota65535%2Fgithub-terraform-plan-slack-action/lists"}