Skip to content

Commit

Permalink
chore: update tfaction to pr/1982 (#3549)
Browse files Browse the repository at this point in the history
* chore: update tfaction to pr/1982

* add conftest
  • Loading branch information
suzuki-shunsuke authored Nov 5, 2024
1 parent 3ff1c4b commit 3a6732c
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 227 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
aqua_version: v2.37.2

- uses: suzuki-shunsuke/tfaction/list-targets@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/list-targets@pr/1982
id: list-targets

apply:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
env:
AQUA_GITHUB_TOKEN: ${{ steps.aqua_installer_token.outputs.token }}

# - uses: suzuki-shunsuke/tfaction/export-secrets@53097591cf15d9eefd7ee9af0511c536e71e9a67 # v1.7.0
# - uses: suzuki-shunsuke/tfaction/export-secrets@pr/1982
# with:
# # If this action doesn't export secrets as you expect, please check if secrets are passed to this action properly.
# # If you use reusable workflows, maybe secrets aren't passed to the reusable workflow.
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
"tfaction-example"
]
- uses: suzuki-shunsuke/tfaction/setup@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/setup@pr/1982
with:
github_token: ${{ steps.setup_token.outputs.token }}
ssh_key: ${{ secrets.TERRAFORM_PRIVATE_MODULE_SSH_KEY }} # This isn't needed if you don't use SSH key to checkout private Terraform Modules
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
"tfaction-example"
]
- uses: suzuki-shunsuke/tfaction/apply@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/apply@pr/1982
with:
github_token: ${{ steps.apply_token.outputs.token }}
env:
Expand All @@ -211,12 +211,12 @@ jobs:
"${{github.event.repository.name}}"
]
- uses: suzuki-shunsuke/tfaction/create-follow-up-pr@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/create-follow-up-pr@pr/1982
if: failure()
with:
github_token: ${{steps.follow_up_pr_token.outputs.token}}

- uses: suzuki-shunsuke/tfaction/update-drift-issue@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/update-drift-issue@pr/1982
if: always()
with:
status: ${{job.status}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate-config-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
repositories: >-
["${{github.event.repository.name}}"]
- uses: suzuki-shunsuke/tfaction/setup@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/setup@pr/1982
id: setup
with:
github_token: ${{steps.generate_token.outputs.token}}

- uses: suzuki-shunsuke/tfaction/generate-config-out@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/generate-config-out@pr/1982
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
aqua_version: v2.37.2

- uses: suzuki-shunsuke/tfaction/release-module@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/release-module@pr/1982
with:
version: ${{ github.event.inputs.version }}
module_path: ${{ github.event.inputs.module_path }}
4 changes: 2 additions & 2 deletions .github/workflows/scaffold-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
repositories: >-
["${{github.event.repository.name}}"]
- uses: suzuki-shunsuke/tfaction/scaffold-module@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/scaffold-module@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}

- uses: suzuki-shunsuke/tfaction/create-scaffold-module-pr@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/create-scaffold-module-pr@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
2 changes: 1 addition & 1 deletion .github/workflows/scaffold-tfmigrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
env:
GITHUB_TOKEN: ${{github.token}}

- uses: suzuki-shunsuke/tfaction/scaffold-tfmigrate@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/scaffold-tfmigrate@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
migration_name: ${{github.event.inputs.migration_name}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scaffold-working-directory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
aqua_version: v2.37.2

- uses: suzuki-shunsuke/tfaction/scaffold-working-dir@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/scaffold-working-dir@pr/1982

- name: Generate token
id: generate_token
Expand All @@ -39,6 +39,6 @@ jobs:
repositories: >-
["${{github.event.repository.name}}"]
- uses: suzuki-shunsuke/tfaction/create-scaffold-pr@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/create-scaffold-pr@pr/1982
with:
github_token: ${{ steps.generate_token.outputs.token }}
10 changes: 5 additions & 5 deletions .github/workflows/schedule-detect-drifts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,32 +68,32 @@ jobs:
env:
GITHUB_TOKEN: ${{github.token}}

- uses: suzuki-shunsuke/tfaction/set-drift-env@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/set-drift-env@pr/1982
with:
issue: ${{toJSON(matrix.issue)}}

- uses: suzuki-shunsuke/tfaction/setup@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/setup@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}
TF_TOKEN_app_terraform_io: ${{secrets.TFE_TOKEN}} # For Hashicorp Cloud Backend

- uses: suzuki-shunsuke/tfaction/test@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/test@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}

- uses: suzuki-shunsuke/tfaction/terraform-plan@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/terraform-plan@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}
TF_TOKEN_app_terraform_io: ${{secrets.TFE_TOKEN}} # For Hashicorp Cloud Backend
TFE_TOKEN: ${{secrets.TFE_TOKEN}} # For tfe provider

- uses: suzuki-shunsuke/tfaction/update-drift-issue@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/update-drift-issue@pr/1982
if: always()
with:
status: ${{job.status}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-drift-issue-description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
permissions:
issues: write
steps:
- uses: suzuki-shunsuke/tfaction/sync-drift-issue-description@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/sync-drift-issue-description@pr/1982
10 changes: 5 additions & 5 deletions .github/workflows/wc-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
env:
AQUA_GITHUB_TOKEN: ${{steps.aqua_installer_token.outputs.token}}

# - uses: suzuki-shunsuke/tfaction/export-secrets@53097591cf15d9eefd7ee9af0511c536e71e9a67 # v1.7.0
# - uses: suzuki-shunsuke/tfaction/export-secrets@pr/1982
# with:
# # If this action doesn't export secrets as you expect, please check if secrets are passed to this action properly.
# # If you use reusable workflows, maybe secrets aren't passed to the reusable workflow.
Expand Down Expand Up @@ -129,14 +129,14 @@ jobs:
DATETIME: ${{fromJSON(steps.check-lock.outputs.result).datetime}}
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}
- uses: suzuki-shunsuke/tfaction/setup@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/setup@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}} # For GitHub Provider
TF_TOKEN_app_terraform_io: ${{secrets.TFE_TOKEN}} # For Hashicorp Cloud Backend

- uses: suzuki-shunsuke/tfaction/get-target-config@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/get-target-config@pr/1982
id: target-config

- name: Generate token (pull request write)
Expand Down Expand Up @@ -168,13 +168,13 @@ jobs:
- name: registry.terraform.io/hashicorp/tfe
GITHUB_TOKEN: ${{steps.pull_request_token.outputs.token}} # For github-comment
- uses: suzuki-shunsuke/tfaction/test@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/test@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}} # For GitHub Provider and reviewdog and github-comment

- uses: suzuki-shunsuke/tfaction/plan@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/plan@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wc-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
env:
AQUA_GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}

- uses: suzuki-shunsuke/tfaction/list-targets@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/list-targets@pr/1982
id: list-targets
with:
github_token: ${{steps.generate_token.outputs.token}}
2 changes: 1 addition & 1 deletion .github/workflows/wc-test-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
env:
AQUA_GITHUB_TOKEN: ${{github.token}}

- uses: suzuki-shunsuke/tfaction/test-module@9751dd9b04be9d10d643c0a46d3c23ac21075c43 # v1.11.2
- uses: suzuki-shunsuke/tfaction/test-module@pr/1982
with:
github_token: ${{steps.generate_token.outputs.token}}
env:
Expand Down
Loading

0 comments on commit 3a6732c

Please sign in to comment.