@@ -16,14 +16,14 @@ The default configuration installs the latest version of OpenTofu CLI and instal
1616
1717``` yaml
1818steps :
19- - uses : opentofu/setup-opentofu@v1
19+ - uses : opentofu/setup-opentofu@v2
2020` ` `
2121
2222A specific version of OpenTofu CLI can be installed:
2323
2424` ` ` yaml
2525steps :
26- - uses : opentofu/setup-opentofu@v1
26+ - uses : opentofu/setup-opentofu@v2
2727 with :
2828 tofu_version : 1.6.0
2929` ` `
@@ -32,7 +32,7 @@ You can also specify the version in a file (e.g., `.opentofu-version`):
3232
3333` ` ` yaml
3434steps:
35- - uses: opentofu/setup-opentofu@v1
35+ - uses: opentofu/setup-opentofu@v2
3636 with:
3737 tofu_version_file: .opentofu-version
3838` ` `
@@ -43,7 +43,7 @@ Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/))
4343
4444` ` ` yaml
4545steps:
46- - uses: opentofu/setup-opentofu@v1
46+ - uses: opentofu/setup-opentofu@v2
4747 with:
4848 cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
4949` ` `
@@ -52,7 +52,7 @@ Credentials for Terraform Enterprise (TFE) can be configured:
5252
5353` ` ` yaml
5454steps:
55- - uses: opentofu/setup-opentofu@v1
55+ - uses: opentofu/setup-opentofu@v2
5656 with:
5757 cli_config_credentials_hostname: 'tofu.example.com'
5858 cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
@@ -62,7 +62,7 @@ The wrapper script installation can be skipped by setting the `tofu_wrapper` var
6262
6363` ` ` yaml
6464steps:
65- - uses: opentofu/setup-opentofu@v1
65+ - uses: opentofu/setup-opentofu@v2
6666 with:
6767 tofu_wrapper: false
6868` ` `
@@ -71,7 +71,7 @@ Caching can be enabled to reduce download time on subsequent workflow runs by st
7171
7272` ` ` yaml
7373steps:
74- - uses: opentofu/setup-opentofu@v1
74+ - uses: opentofu/setup-opentofu@v2
7575 with:
7676 cache: true
7777` ` `
@@ -80,7 +80,7 @@ Subsequent steps can access outputs when the wrapper script is installed:
8080
8181` ` ` yaml
8282steps:
83- - uses: opentofu/setup-opentofu@v1
83+ - uses: opentofu/setup-opentofu@v2
8484
8585- run: tofu init
8686
@@ -107,8 +107,8 @@ defaults:
107107permissions:
108108 pull-requests: write
109109steps:
110- - uses: actions/checkout@v3
111- - uses: opentofu/setup-opentofu@v1
110+ - uses: actions/checkout@v6
111+ - uses: opentofu/setup-opentofu@v2
112112
113113- name: OpenTofu fmt
114114 id: fmt
@@ -175,8 +175,8 @@ defaults:
175175permissions :
176176 pull-requests : write
177177steps :
178- - uses : actions/checkout@v3
179- - uses : opentofu/setup-opentofu@v1
178+ - uses : actions/checkout@v6
179+ - uses : opentofu/setup-opentofu@v2
180180
181181- name : OpenTofu fmt
182182 id : fmt
0 commit comments