Skip to content

Commit 63275e6

Browse files
authored
Merge branch 'main' into data-source-org-membership-by-id
2 parents dbd287c + ecfe3eb commit 63275e6

File tree

551 files changed

+23023
-5913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+23023
-5913
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ labels: bug
99
Hi there,
1010
1111
Thank you for opening an issue! Please note that we try to keep the this issue tracker reserved for
12-
bug reports and feature requests related to the Terraform Cloud/Enterprise provider. If you know
13-
your issue relates to the Terraform Cloud/Enterprise platform itself, please contact
12+
bug reports and feature requests related to the HCP Terraform and Terraform Enterprise provider. If you know
13+
your issue relates to the HCP Terraform or Terraform Enterprise platform itself, please contact
1414
[email protected]. For general usage questions, please post to our community forum:
1515
https://discuss.hashicorp.com.
1616
-->
1717

18-
#### Terraform Cloud/Enterprise version
18+
#### Terraform Enterprise version
1919

2020
<!---
21-
Are you using Terraform Cloud or Terraform Enterprise? If Terraform Enterprise, please include the version
21+
If you are using Terraform Enterprise, please include the version
2222
Example: Terraform Enterprise v202104-1
2323
-->
2424

@@ -27,8 +27,8 @@ Example: Terraform Enterprise v202104-1
2727
<!---
2828
If you are using Terraform CLI, run `terraform version` to show the version.
2929
30-
If you are using Terraform Cloud or Terraform Enterprise, see the Terraform version being used by a
31-
workspace in the workspace's Overview tab.
30+
If you are using a remote workspace in HCP Terraform or Terraform Enterprise, see the Terraform version
31+
being used by the workspace in the workspace's Overview tab.
3232
3333
Paste the result between the ``` marks below.
3434
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
blank_issues_enabled: false
55
contact_links:
6-
- name: Terraform Cloud/Enterprise Troubleshooting and Feature Requests
6+
- name: HCP Terraform or Terraform Enterprise Troubleshooting and Feature Requests
77
url: https://support.hashicorp.com/hc/en-us/requests/new
8-
about: For issues and feature requests concerning the Terraform Cloud/Enterprise platform itself, please submit a HashiCorp support request or email [email protected]
8+
about: For issues and feature requests concerning the HCP Terraform and Terraform Enterprise platform itself, please submit a HashiCorp support request or email [email protected]
99
- name: Terraform Language or Workflow Questions
1010
url: https://discuss.hashicorp.com
1111
about: Please ask Terraform language or workflow related questions through the HashiCorp Discuss forum

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ labels: feature-request
99
Hi there,
1010
1111
Thank you for opening a request! Please note that we try to keep the this issue tracker reserved for
12-
bug reports and feature requests related to the Terraform Cloud/Enterprise provider. If you know
13-
your request relates to the Terraform Cloud/Enterprise platform itself, please contact
12+
bug reports and feature requests related to the HCP Terraform and Terraform Enterprise provider. If you know
13+
your request relates to the HCP Terraform and Terraform Enterprise platform itself, please contact
1414
[email protected]. For general usage questions, please post to our community forum:
1515
https://discuss.hashicorp.com.
1616
-->

.github/actions/lint-provider-tfe/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
using: composite
88
steps:
99
- name: Setup Go Environment
10-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
10+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
1111
with:
1212
go-version-file: "go.mod"
1313
cache: true
@@ -24,7 +24,7 @@ runs:
2424
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/0b5709648c8ba9780e821faf16c5c2bb3262ce3e/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCILINT_VERSION
2525
shell: bash
2626
env:
27-
GOLANGCILINT_VERSION: v1.52.2
27+
GOLANGCILINT_VERSION: v1.55.2
2828

2929
- run: make lint
3030
shell: bash

.github/actions/test-provider-tfe/action.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ name: Test
55
description: Tests terraform-provider-tfe within a matrix
66
inputs:
77
admin_configuration_token:
8-
description: TFC Admin API Configuration role token
8+
description: HCP Terraform Admin API Configuration role token
99
required: true
1010
admin_provision_licenses_token:
11-
description: TFC Admin API Provision Licenses role token
11+
description: HCP Terraform Admin API Provision Licenses role token
1212
required: true
1313
admin_security_maintenance_token:
14-
description: TFC Admin API Security Maintenance role token
14+
description: HCP Terraform Admin API Security Maintenance role token
1515
required: true
1616
admin_site_admin_token:
17-
description: TFC Admin API Site Admin role token
17+
description: HCP Terraform Admin API Site Admin role token
1818
required: true
1919
admin_subscription_token:
20-
description: TFC Admin API Subscription role token
20+
description: HCP Terraform Admin API Subscription role token
2121
required: true
2222
admin_support_token:
23-
description: TFC Admin API Support role token
23+
description: HCP Terraform Admin API Support role token
2424
required: true
2525
admin_version_maintenance_token:
26-
description: TFC Admin API Version Maintenance role token
26+
description: HCP Terraform Admin API Version Maintenance role token
2727
required: true
2828
matrix_index:
2929
description: Index of the matrix strategy runner
@@ -32,23 +32,27 @@ inputs:
3232
description: Total number of matrix strategy runners
3333
required: true
3434
hostname:
35-
description: Hostname of the Terraform Cloud instance to test against
35+
description: Hostname of the HCP Terraform or Terraform Enterprise instance to test against
3636
required: true
3737
token:
38-
description: Terraform Cloud token
38+
description: HCP Terraform or Terraform Enterprise token
3939
required: true
4040
testing-github-token:
4141
description: The GitHub token used for testing scenarios
4242
required: false
4343
enterprise:
4444
description: Test enterprise features (`hostname` must be running in ON_PREM mode)
4545
required: false
46+
list_tests:
47+
description: Accepts regex rules to either include or exclude specific tests from running in either CI or nightly workflows.
48+
required: false
49+
default: "."
4650

4751
runs:
4852
using: composite
4953
steps:
5054
- name: Set up Go
51-
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
55+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
5256
with:
5357
go-version-file: go.mod
5458
cache: true
@@ -65,7 +69,7 @@ runs:
6569

6670
- name: Download artifact
6771
id: download-artifact
68-
uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 # v2.27.0
72+
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
6973
with:
7074
workflow_conclusion: success
7175
name: junit-test-summary
@@ -79,6 +83,8 @@ runs:
7983
index: ${{ inputs.matrix_index }}
8084
total: ${{ inputs.matrix_total }}
8185
junit-summary: ./ci-summary-provider.xml
86+
# When tests are split and run concurrently, lists_tests arg in ci.yml will skip the TestAccTFESAMLSettings_omnibus test suite
87+
list: ${{ inputs.list_tests }}
8288

8389
- name: Run Tests
8490
shell: bash
@@ -94,13 +100,13 @@ runs:
94100
TFE_ADMIN_VERSION_MAINTENANCE_TOKEN: ${{ inputs.admin_version_maintenance_token }}
95101
TFE_USER1: tfe-provider-user1
96102
TFE_USER2: tfe-provider-user2
97-
TF_ACC: 1
103+
TF_ACC: "1"
98104
ENABLE_TFE: "${{ inputs.enterprise }}"
99-
TFC_RUN_TASK_URL: "https://httpstat.us/200"
105+
RUN_TASKS_URL: "http://testing-mocks.tfe:22180/runtasks/pass"
100106
GITHUB_POLICY_SET_IDENTIFIER: "hashicorp/test-policy-set"
101107
GITHUB_REGISTRY_MODULE_IDENTIFIER: "hashicorp/terraform-random-module"
102-
GITHUB_WORKSPACE_IDENTIFIER: "hashicorp/terraform-random-1"
103-
GITHUB_WORKSPACE_BRANCH: "test"
108+
GITHUB_WORKSPACE_IDENTIFIER: "hashicorp/terraform-random-module"
109+
GITHUB_WORKSPACE_BRANCH: "main"
104110
GITHUB_TOKEN: "${{ inputs.testing-github-token }}"
105111
MOD_PROVIDER: github.com/hashicorp/terraform-provider-tfe
106112
MOD_TFE: github.com/hashicorp/terraform-provider-tfe/internal/provider

.github/workflows/call-jira-issue-sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ jobs:
1212
with:
1313
project: TF
1414
issue-extra-fields: |
15-
{ "customfield_10091": ["TF-CLI"] }
15+
{ "customfield_10091": ["TF-CLI"],
16+
"customfield_10008": "${{ contains(github.event.issue.labels.*.name, 'bug') && 'TF-7331' || 'TF-3484' }}"
17+
}
1618
secrets: inherit

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: lint
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
16+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1717
- uses: ./.github/actions/lint-provider-tfe
1818

1919
tests:
@@ -29,13 +29,13 @@ jobs:
2929
steps:
3030
- name: Fetch Outputs
3131
id: tflocal
32-
uses: hashicorp-forge/terraform-cloud-action/outputs@4adbe7eea886138ac10a4c09e63c5c568aaa6672 # main
32+
uses: hashicorp-forge/terraform-cloud-action/outputs@5583d5f554d268ac91b3c37fd0a5e9da2c78c017 # v1.1.0
3333
with:
3434
token: "${{ secrets.TF_WORKFLOW_TFLOCAL_CLOUD_TFC_TOKEN }}"
3535
organization: hashicorp-v2
3636
workspace: tflocal-terraform-provider-tfe
3737

38-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
38+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3939

4040
- uses: ./.github/actions/test-provider-tfe
4141
with:
@@ -51,18 +51,23 @@ jobs:
5151
admin_subscription_token: ${{ fromJSON(steps.tflocal.outputs.workspace-outputs-json).tfe_admin_token_by_role.subscription }}
5252
admin_support_token: ${{ fromJSON(steps.tflocal.outputs.workspace-outputs-json).tfe_admin_token_by_role.support }}
5353
admin_version_maintenance_token: ${{ fromJSON(steps.tflocal.outputs.workspace-outputs-json).tfe_admin_token_by_role.version-maintenance }}
54+
# Run terminal cmd 'go help testflag' to learn more about -list flag
55+
# action.yml uses https://github.com/hashicorp-forge/go-test-split-action/blob/main/action.yml to split acceptance tests
56+
# which runs against all tests using the list arg
57+
# lists_tests regex is used to skip the TestAccTFESAMLSettings_omnibus test suite for CI tests only
58+
list_tests: "[^(TestAccTFESAMLSettings_omnibus)]"
5459

5560
tests-combine-summaries:
5661
name: Combine Test Reports
5762
needs: [ tests ]
5863
runs-on: ubuntu-latest
5964
steps:
60-
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
65+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
6166
with:
62-
node-version: 16
67+
node-version: 20
6368

6469
- name: Download artifacts
65-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
70+
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
6671

6772
- name: Install junit-report-merger
6873
run: npm install -g junit-report-merger
@@ -71,7 +76,7 @@ jobs:
7176
run: jrm ./ci-summary-provider.xml "junit-test-summary-0/*.xml" "junit-test-summary-1/*.xml" "junit-test-summary-2/*.xml" "junit-test-summary-3/*.xml" "junit-test-summary-4/*.xml"
7277

7378
- name: Upload test artifacts
74-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
79+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
7580
with:
7681
name: junit-test-summary
7782
path: ./ci-summary-provider.xml

.github/workflows/create-release-pr.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
outputs:
1818
version: ${{ steps.remove-leading-v.outputs.version }}
1919
steps:
20-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2121

2222
- uses: actions-ecosystem/action-get-latest-tag@b7c32daec3395a9616f88548363a42652b22d435 # v1.6.0
2323
id: get-latest-tag
@@ -33,9 +33,9 @@ jobs:
3333
buildBinary:
3434
runs-on: ubuntu-latest
3535
steps:
36-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
36+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3737
- name: Set up Go
38-
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
38+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
3939
with:
4040
go-version-file: go.mod
4141
cache: true
@@ -51,7 +51,7 @@ jobs:
5151
go build -o terraform-provider-tfe
5252
5353
- name: Upload test artifacts
54-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
54+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
5555
with:
5656
name: terraform-provider-tfe
5757
path: terraform-provider-tfe
@@ -68,28 +68,28 @@ jobs:
6868
CHECKPOINT_DISABLE: "1"
6969
timeout-minutes: 120
7070
steps:
71-
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
71+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7272
- run: git config --global user.email "[email protected]"
7373
- run: git config --global user.name "Brandon Croft"
7474
- name: Get yarn cache directory path
7575
id: global-cache-dir-path
7676
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
77-
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
77+
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
7878
id: global-cache
7979
with:
8080
path: ${{ steps.global-cache-dir-path.outputs.dir }}
8181
key: ${{ runner.os }}-integration-yarn-${{ hashFiles('**/yarn.lock') }}
8282

8383
- name: Setup Node.js
84-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
84+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
8585
with:
86-
node-version: "18.x"
86+
node-version: "20.x"
8787

8888
- name: Install cdktf-registry-docs
8989
run: npm install -g [email protected]
9090

9191
- name: Download artifacts
92-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
92+
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
9393
with:
9494
name: terraform-provider-tfe
9595

@@ -102,7 +102,7 @@ jobs:
102102
TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins
103103

104104
- name: Create Pull Request
105-
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
105+
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
106106
with:
107107
commit-message: "cdktf: update documentation"
108108
title: "release: ${{ github.event.inputs.version }}"
@@ -111,7 +111,7 @@ jobs:
111111
112112
This PR is meant to automate certain preparations for release and instruct maintainers on the manual release tasks. Push any changes you make to this branch and merge it just before creating a release.
113113
114-
1. Ensure both main and nightly CI actions passed. These test the release version against TFC and TFE, respectively.
114+
1. Ensure both main and nightly CI actions passed. These test the release version against HCP Terraform and Terraform Enterprise, respectively.
115115
2. Review the CHANGELOG and ensure and ensure [everything that's changed since the last release](https://github.com/hashicorp/terraform-provider-tfe/compare/v${{ needs.releasedVersion.outputs.version }}...main) is described. If anything is missing, inaccurate, or unclear, now is the time to fix it! Check the CHANGELOG organization: pull breaking changes to the top and make sure the most important features are at the top of the FEATURES list. Check the version header in the changelog. It must be: `## v${{ github.event.inputs.version }}`
116116
3. Bump the static versions given as an example in the `website/docs/index.html.markdown` docs
117117
4. Bump the static versions given in the README installation section.

.github/workflows/jira-issue-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
"labels": ${{ toJSON(github.event.issue.labels.*.name) }}
3535
}
3636
run: |
37-
echo "extra=$(echo '${{ env.EXTRA_FIELDS }}' '${{ inputs.issue-extra-fields }}' | jq -rcs '.[0] * .[1]')" >> $GITHUB_OUTPUT
38-
37+
echo "extra=$(echo '${{ env.EXTRA_FIELDS }}' '${{ inputs.issue-extra-fields }}' | jq -rcs '.[0] * .[1]')" >> $GITHUB_OUTPUT
38+
3939
4040
# Creates a new issue, only if this is a new PR or GH Issue, and only if an existing issue is not in the branch name
4141
- name: Create Issue

.github/workflows/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout main
14-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
14+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1515

1616
- name: Deploy docs
1717
uses: mhausenblas/mkdocs-deploy-gh-pages@d77dd03172e96abbcdb081d8c948224762033653 # 1.26

0 commit comments

Comments
 (0)