Bump the github-actions group across 1 directory with 7 updates #90
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Plan org repositories changes and list them in a PR" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'terraform/repositories.tfvars' | |
| - 'terraform/repositories/*.tf' | |
| - '.github/workflows/repos-apply.yml' | |
| # Do not trigger the plan action when it's been changed since this action has write permissions | |
| permissions: {} | |
| concurrency: | |
| group: terraform-actions-repos | |
| jobs: | |
| format-terraform-code: | |
| name: "Check OpenTofu code formatting" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write # Required to post terraform fmt check comments | |
| timeout-minutes: 4 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 # zizmor: ignore[unpinned-uses] | |
| with: | |
| persist-credentials: false | |
| - name: tofu fmt check | |
| uses: dflook/tofu-fmt-check@d54769fd05d700fe90628ba7f48d28e796f71407 # v3.0.0 | |
| with: | |
| path: "terraform/repositories" | |
| repos-plan-changes: | |
| name: "Plan org-repositories changes and list them in a PR" | |
| runs-on: ubuntu-latest | |
| needs: ["format-terraform-code"] | |
| environment: production | |
| permissions: | |
| pull-requests: write # Required to post terraform plan comments | |
| contents: read | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 # zizmor: ignore[unpinned-uses] | |
| with: | |
| persist-credentials: false | |
| - name: tofu plan | |
| uses: dflook/tofu-plan@cdb4f4d604c9fa695e457744dd1f802853397ce7 # v3.0.0 | |
| env: | |
| TERRAFORM_ACTIONS_GITHUB_TOKEN: ${{ secrets.TERRAFORM_MANAGEMENT_GITHUB_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| add_github_comment: true | |
| path: "terraform/repositories" | |
| label: 'repos' | |
| variables: | | |
| github_token = "${{ secrets.TERRAFORM_MANAGEMENT_GITHUB_TOKEN }}" | |
| var_file: | | |
| terraform/repositories.tfvars |