mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-18 09:22:35 +00:00
Compare commits
59 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92e4d08fe1 | ||
|
|
071811a162 | ||
|
|
712b43959e | ||
|
|
4c5fdabea2 | ||
|
|
982f6f017c | ||
|
|
889df91364 | ||
|
|
c529327889 | ||
|
|
afa38526df | ||
|
|
fe38bfbb36 | ||
|
|
2ee5124c44 | ||
|
|
7a460deeba | ||
|
|
08cace2060 | ||
|
|
7a4a568111 | ||
|
|
2531c42cf3 | ||
|
|
922a7f49a5 | ||
|
|
8d2314a5a5 | ||
|
|
2583b7f7b0 | ||
|
|
0d13b7f42d | ||
|
|
c0a118784f | ||
|
|
1428cf0603 | ||
|
|
71c625de8e | ||
|
|
c6dbe8c0cb | ||
|
|
6195e86a29 | ||
|
|
5a8481b19f | ||
|
|
8c8499e9e3 | ||
|
|
4bb2b63d92 | ||
|
|
1ef107dd85 | ||
|
|
a0612fb3ce | ||
|
|
06d7cc5c8c | ||
|
|
a8fd1d197b | ||
|
|
25dabe9f9b | ||
|
|
607bf09de2 | ||
|
|
77d3b26ee9 | ||
|
|
71e23deaae | ||
|
|
1f2422a204 | ||
|
|
852ca175a6 | ||
|
|
2f1b53ffa5 | ||
|
|
0c8c41f96f | ||
|
|
009a8b75dc | ||
|
|
e708d31c3d | ||
|
|
7d2407faba | ||
|
|
9e5c386f98 | ||
|
|
f717f5cabe | ||
|
|
1748f9de39 | ||
|
|
8c5bde2a38 | ||
|
|
49dee962d5 | ||
|
|
817023b5c8 | ||
|
|
344fef46b6 | ||
|
|
638baae343 | ||
|
|
fd3bf06534 | ||
|
|
4fab011903 | ||
|
|
273780a335 | ||
|
|
4b8e29db07 | ||
|
|
98aecdfa81 | ||
|
|
76fd07bad3 | ||
|
|
c4396e588c | ||
|
|
c23d9fb1b7 | ||
|
|
7d0fcea6b8 | ||
|
|
a0b6ede12c |
18 changed files with 10418 additions and 7161 deletions
|
|
@ -5,6 +5,9 @@ project {
|
|||
copyright_year = 2020
|
||||
|
||||
header_ignore = [
|
||||
# internal catalog metadata (prose)
|
||||
"META.d/**/*.yaml",
|
||||
|
||||
# changie tooling configuration and CHANGELOG entries (prose)
|
||||
".changes/unreleased/*.yaml",
|
||||
".changie.yaml",
|
||||
|
|
|
|||
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
|
@ -1 +1 @@
|
|||
* @hashicorp/terraform-devex
|
||||
* @hashicorp/terraform-core-plugins
|
||||
|
|
|
|||
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
|
|
@ -4,10 +4,14 @@ updates:
|
|||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
# Dependabot only updates hashicorp GHAs, external GHAs are managed by internal tooling (tsccr)
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
groups:
|
||||
"github-actions":
|
||||
patterns:
|
||||
- "*" # Group all GitHub Actions dependencies together
|
||||
schedule:
|
||||
interval: "daily"
|
||||
allow:
|
||||
- dependency-name: "hashicorp/*"
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
time: "09:00"
|
||||
timezone: "Etc/UTC"
|
||||
|
|
|
|||
16
.github/pull_request_template.md
vendored
Normal file
16
.github/pull_request_template.md
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
## Related Issue
|
||||
|
||||
Fixes # <!-- INSERT ISSUE NUMBER -->
|
||||
|
||||
## Description
|
||||
|
||||
In plain English, describe your approach to addressing the issue linked above. For example, if you made a particular design decision, let us know why you chose this path instead of another solution.
|
||||
|
||||
<!-- heimdall_github_prtemplate:grc-pci_dss-2024-01-05 -->
|
||||
## Rollback Plan
|
||||
|
||||
- [ ] If a change needs to be reverted, we will roll out an update to the code within 7 days.
|
||||
|
||||
## Changes to Security Controls
|
||||
|
||||
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
|
||||
4
.github/workflows/ci-changie.yml
vendored
4
.github/workflows/ci-changie.yml
vendored
|
|
@ -15,8 +15,8 @@ jobs:
|
|||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- uses: miniscruff/changie-action@5036dffa79ffc007110dc7f75eca7ef72780e147 # v2.1.0
|
||||
with:
|
||||
version: latest
|
||||
args: batch patch --dry-run
|
||||
|
|
|
|||
2
.github/workflows/compliance.yml
vendored
2
.github/workflows/compliance.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
copywrite:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
|
||||
- run: copywrite headers --plan
|
||||
- run: copywrite license --plan
|
||||
4
.github/workflows/continuous-integration.yml
vendored
4
.github/workflows/continuous-integration.yml
vendored
|
|
@ -9,14 +9,14 @@ on:
|
|||
jobs:
|
||||
check-dist:
|
||||
name: Check dist/ directory
|
||||
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
||||
uses: actions/reusable-workflows/.github/workflows/check-dist.yml@95d9656793415e47f574f7967f3850ea3bf5a7ed
|
||||
with:
|
||||
node-version: 20.x
|
||||
node-caching: npm
|
||||
|
||||
test:
|
||||
name: Test
|
||||
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@a8533f184b279cfc1b2dd6a96ed2f097ccf81189
|
||||
uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@95d9656793415e47f574f7967f3850ea3bf5a7ed
|
||||
with:
|
||||
node-version: 20.x
|
||||
node-caching: npm
|
||||
|
|
|
|||
3
.github/workflows/lock.yml
vendored
3
.github/workflows/lock.yml
vendored
|
|
@ -12,8 +12,9 @@ jobs:
|
|||
steps:
|
||||
# NOTE: When TSCCR updates the GitHub action version, update the template workflow file to avoid drift:
|
||||
# https://github.com/hashicorp/terraform-devex-repos/blob/main/modules/repo/workflows/lock.tftpl
|
||||
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
|
||||
- uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
|
||||
with:
|
||||
process-only: 'issues, prs'
|
||||
github-token: ${{ github.token }}
|
||||
issue-inactive-days: '30'
|
||||
issue-lock-reason: resolved
|
||||
|
|
|
|||
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
|
|
@ -33,19 +33,19 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Avoid persisting GITHUB_TOKEN credentials as they take priority over our service account PAT for `git push` operations
|
||||
# More details: https://github.com/actions/checkout/blob/b4626ce19ce1106186ddf9bb20e706842f11a7c3/adrs/0153-checkout-v2.md#persist-credentials
|
||||
persist-credentials: false
|
||||
- name: Batch changes
|
||||
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
|
||||
uses: miniscruff/changie-action@5036dffa79ffc007110dc7f75eca7ef72780e147 # v2.1.0
|
||||
with:
|
||||
version: latest
|
||||
args: batch ${{ needs.changelog-version.outputs.version }}
|
||||
- name: Merge changes
|
||||
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0
|
||||
uses: miniscruff/changie-action@5036dffa79ffc007110dc7f75eca7ef72780e147 # v2.1.0
|
||||
with:
|
||||
version: latest
|
||||
args: merge
|
||||
|
|
@ -62,7 +62,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Default input is the SHA that initially triggered the workflow. As we created a new commit in the previous job,
|
||||
|
|
@ -73,7 +73,7 @@ jobs:
|
|||
persist-credentials: false
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Update package version
|
||||
|
|
@ -91,7 +91,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
# Default input is the SHA that initially triggered the workflow. As we created a new commit in the previous job,
|
||||
|
|
@ -117,7 +117,7 @@ jobs:
|
|||
permissions:
|
||||
contents: write # Needed to create GitHub release
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
ref: ${{ inputs.versionNumber }}
|
||||
fetch-depth: 0
|
||||
|
|
|
|||
28
.github/workflows/setup-terraform.yml
vendored
28
.github/workflows/setup-terraform.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
terraform-versions: [0.11.14, latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
terraform-versions: [0.11.14, latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform (no wrapper) - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
terraform-versions: [~0.12, 0.12.x, <0.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
|
|
@ -88,7 +88,7 @@ jobs:
|
|||
terraform-versions: [~0.12, 0.12.x, <0.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform (no wrapper) - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
|
|
@ -109,7 +109,7 @@ jobs:
|
|||
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -138,7 +138,7 @@ jobs:
|
|||
TF_CLOUD_API_TOKEN: 'XXXXXXXXXXXXXX.atlasv1.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -166,7 +166,7 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -189,7 +189,7 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -220,7 +220,7 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -257,7 +257,7 @@ jobs:
|
|||
working-directory: ./.github/workflows/data/local
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -287,7 +287,7 @@ jobs:
|
|||
working-directory: ./.github/workflows/data/local
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -316,7 +316,7 @@ jobs:
|
|||
working-directory: ./.github/workflows/data/local
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -349,7 +349,7 @@ jobs:
|
|||
working-directory: ./.github/workflows/data/local
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
@ -383,7 +383,7 @@ jobs:
|
|||
working-directory: ./.github/workflows/data/delay
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
|
||||
- name: Setup Terraform
|
||||
uses: ./
|
||||
|
|
|
|||
11
META.d/_summary.yaml
Normal file
11
META.d/_summary.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
schema: 1.1
|
||||
|
||||
partition: tf-ecosystem
|
||||
category: github-action
|
||||
|
||||
summary:
|
||||
owner: team-tf-core-plugins
|
||||
description: |
|
||||
Sets up Terraform CLI in your GitHub Actions workflow.
|
||||
visibility: public
|
||||
6
META.d/data.yml
Normal file
6
META.d/data.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
data_summary:
|
||||
gdpr:
|
||||
exempt: true
|
||||
|
|
@ -100,7 +100,7 @@ steps:
|
|||
|
||||
- name: Terraform Init
|
||||
id: init
|
||||
run: terraform init
|
||||
run: terraform init -input=false
|
||||
|
||||
- name: Terraform Validate
|
||||
id: validate
|
||||
|
|
@ -108,7 +108,7 @@ steps:
|
|||
|
||||
- name: Terraform Plan
|
||||
id: plan
|
||||
run: terraform plan -no-color
|
||||
run: terraform plan -no-color -input=false
|
||||
continue-on-error: true
|
||||
|
||||
- uses: actions/github-script@v7
|
||||
|
|
@ -168,7 +168,7 @@ steps:
|
|||
|
||||
- name: Terraform Init
|
||||
id: init
|
||||
run: terraform init
|
||||
run: terraform init -input=false
|
||||
|
||||
- name: Terraform Validate
|
||||
id: validate
|
||||
|
|
@ -176,7 +176,7 @@ steps:
|
|||
|
||||
- name: Terraform Plan
|
||||
id: plan
|
||||
run: terraform plan -no-color
|
||||
run: terraform plan -no-color -input=false
|
||||
continue-on-error: true
|
||||
|
||||
- uses: actions/github-script@v7
|
||||
|
|
|
|||
8410
dist/index.js
vendored
8410
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2757
dist/index1.js
vendored
2757
dist/index1.js
vendored
File diff suppressed because one or more lines are too long
6279
package-lock.json
generated
6279
package-lock.json
generated
File diff suppressed because it is too large
Load diff
18
package.json
18
package.json
|
|
@ -18,18 +18,18 @@
|
|||
"keywords": [],
|
||||
"author": "",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@hashicorp/js-releases": "^1.7.3",
|
||||
"semver": "^7.6.3"
|
||||
"@actions/github": "^6.0.1",
|
||||
"@actions/io": "^2.0.0",
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@hashicorp/js-releases": "^1.7.5",
|
||||
"semver": "^7.7.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "^0.38.1",
|
||||
"jest": "^29.7.0",
|
||||
"nock": "^13.5.4",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"jest": "^30.2.0",
|
||||
"nock": "^14.0.10",
|
||||
"semistandard": "^17.0.0"
|
||||
},
|
||||
"semistandard": {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,6 @@ describe('output-listener', () => {
|
|||
listen(Buffer.from('third write'));
|
||||
expect(mockWrite.mock.lastCall[0]).toStrictEqual(Buffer.from('third write'));
|
||||
|
||||
expect(mockWrite).toBeCalledTimes(3);
|
||||
expect(mockWrite).toHaveBeenCalledTimes(3);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue