Commit graph

28 commits

Author SHA1 Message Date
dependabot[bot]
817023b5c8
Bump undici from 5.28.4 to 5.28.5 (#457)
* Bump undici from 5.28.4 to 5.28.5

Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* rebuild dist + bump @actions/tool-cache

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2025-01-24 11:04:02 -05:00
dependabot[bot]
4b8e29db07
Bump @actions/core from 1.10.1 to 1.11.1 (#439)
* Bump @actions/core from 1.10.1 to 1.11.1

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.1 to 1.11.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* `npm run build`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2024-10-07 16:01:28 -04:00
dependabot[bot]
c4396e588c
Bump @vercel/ncc from 0.38.1 to 0.38.2 (#434)
* Bump @vercel/ncc from 0.38.1 to 0.38.2

Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.38.1 to 0.38.2.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.38.1...0.38.2)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* rebuild dist

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2024-09-26 07:38:34 -04:00
Austin Valle
99441ecd44
wrapper: Write stdout/stderr data to stream when received (#410)
* wrapper: write stdout/stderr data to stream when received

* add a delay test

* temp comment

* uncomment actions

* add changelog
2024-05-07 09:51:25 -04:00
dependabot[bot]
1f0219f06b
Bump undici from 5.28.3 to 5.28.4 (#408)
* Bump undici from 5.28.3 to 5.28.4

Bumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* dist: Rebuild after dependency update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <bflad417@gmail.com>
2024-04-23 10:16:45 -04:00
dependabot[bot]
e45327d894
Bump undici from 5.26.4 to 5.28.3 (#397)
* Bump undici from 5.26.4 to 5.28.3

Bumps [undici](https://github.com/nodejs/undici) from 5.26.4 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.26.4...v5.28.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Running npm ci && npm run build

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Bennett <ben.bennett@hashicorp.com>
2024-02-19 06:46:28 +00:00
Austin Valle
2417443146
Remove husky tool + fix lint error (#394)
* remove husky

* fix tests
2024-01-31 14:11:44 -05:00
Oliver Ford
4dff81de7e
Fix output malformed when wrapper enabled (#367)
* Fix output malformed when wrapper enabled

Presently using a command such as `terraform output -json | jq` does not
work with the wrapper enabled, as it is by default.

In order to consume terraform's output having set it up with this
Action, it is necessary either to disable the wrapper (`with:
terraform_wrapper: false`) or run it in its own Actions step with an
explicit `id` (e.g. `id: foo`) so that it can be referred to and consumed
(`${{steps.foo.outputs.stdout}}` et al.) in later steps.

This seems to be the result of much confusion (issues passim) and is not
at all easy (#338) to debug/diagnose and come to the realisation that
it's due to the wrapper, or even that such a thing exists.

@austinvalle identified the issue as being due to the `@actions/exec`
package writing the spawned command to stdout (along with then its
actual stdout). This has previously been reported upstream in
actions/toolkit#649; I've proposed actions/toolkit#1573 to fix it.

This commit aims to address the issue for `setup-terraform` in the
meantime by silencing `@actions/exec` and then writing out to stdout &
stderr from the listener buffers, which it writes to without this
additional logging.

Closes #20, #80, #85, #149, #338, and probably more.

* add test for stdout with jq

* update test name

* remove debug lines and add changelog

* add additional note about the bug fix to wrapper

---------

Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-10-27 14:05:58 -04:00
Austin Valle
4c41f96f26
Bump @actions/github from 5.1.1 to 6.0.0 (#361) 2023-10-27 09:05:58 -04:00
Austin Valle
8fa54e78fa
Revert "Bump @actions/github from 5.1.1 to 6.0.0 (#355)" (#360)
This reverts commit 9c564c0569.
2023-10-19 08:05:49 -04:00
dependabot[bot]
9c564c0569
Bump @actions/github from 5.1.1 to 6.0.0 (#355)
* Bump @actions/github from 5.1.1 to 6.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.1.1 to 6.0.0.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Running ncc build wrapper/terraform.js --out wrapper/dist && ncc build index.js --out dist

* updated dist

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Bennett <ben.bennett@hashicorp.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-10-17 08:13:22 -04:00
dependabot[bot]
95549a3832
Bump @actions/core from 1.10.0 to 1.10.1 (#349)
* Bump @actions/core from 1.10.0 to 1.10.1

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.0 to 1.10.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* update dist

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-09-12 06:50:46 -04:00
Austin Valle
5aa9444145
[COMPLIANCE] Add copyright and license headers (#327)
* add copywrite changes

* extra slash

* [COMPLIANCE] Add copyright and license headers

* removed incorrect license

* reverted /dist

* add action.yml to copywrite ignore

* revert

* remove dist changes

* revert dist
2023-06-05 11:20:41 -04:00
dependabot[bot]
61be50777d
Bump @actions/io from 1.1.2 to 1.1.3 (#315)
* Bump @actions/io from 1.1.2 to 1.1.3

Bumps [@actions/io](https://github.com/actions/toolkit/tree/HEAD/packages/io) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/io/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/io)

---
updated-dependencies:
- dependency-name: "@actions/io"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* update dist

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-03-22 13:28:27 -04:00
Brian Flad
d3026307a0
Remove wrapper package.json (#302)
Reference: https://github.com/hashicorp/setup-terraform/issues/290

The `wrapper` directory contains the JavaScript wrapper for the Terraform binary. It currently contains a `package.json` and lock file, however this code is not packaged and released separately. Having the separate package makes it unnecessarily difficult to ensure the subdirectory is built correctly and dependencies are up to date.

This change removes the `wrapper` package files and consolidates the test, lint, and build logic into the main `package.json`.
2023-02-09 10:36:54 -05:00
Brian Flad
1d777b53ee
deps: Bump all development dependencies and fix check-dist (#301)
Reference: https://github.com/hashicorp/setup-terraform/pull/285
Reference: https://github.com/hashicorp/setup-terraform/pull/286
Reference: https://github.com/hashicorp/setup-terraform/pull/288
Reference: https://github.com/hashicorp/setup-terraform/pull/291
Reference: https://github.com/hashicorp/setup-terraform/pull/292

```shell
npm install '@vercel/ncc@0.36.1'
npm install 'husky@8.0.3'
npm install 'jest@29.4.1'
npm install 'nock@13.3.0'
pushd wrapper
npm install '@vercel/ncc@0.36.1'
npm install 'jest@29.4.1'
npm audit fix # json5@1.0.2 security fix
popd
npm run build
```
2023-02-09 10:05:39 -05:00
dependabot[bot]
e9f70b5b88
Bump json5 from 2.2.1 to 2.2.3 (#283)
* Bump json5 from 2.2.1 to 2.2.3

Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* update /dist

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-01-25 11:10:11 -05:00
Brian Flad
97112244d3
.github/workflows: Use actions/reusable-workflows for CI validation (#282)
Reference: https://github.com/actions/reusable-workflows
Reference: a8533f184b/.github/workflows/basic-validation.yml
Reference: a8533f184b/.github/workflows/check-dist.yml

Simplify the project's CI by using the recently developed actions/reusable-workflows for testing and dist/ compilation checking.

Recompiled `dist/` via `npm run build`
2022-12-22 10:51:35 -05:00
Benjamin Bennett
73d00bf3fd Updating dependencies in /wrapper/package.json and rebuilding 2022-10-26 18:08:21 +01:00
dependabot[bot]
b3a43c3034
Bump @actions/core from 1.6.0 to 1.9.1 in /wrapper (#236)
* Bump @actions/core from 1.6.0 to 1.9.1 in /wrapper

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Pogran <jpogran@outlook.com>
2022-09-16 11:53:05 -04:00
Yordan Ibishev
62a66eef78
Support detailed exit codes. (#125)
* feat(action): Support detailed exit codes. 

This should allow plans to succeed using the terraform_wrapper functionality whenever an exit code of 2 is returned.
https://www.terraform.io/docs/cli/commands/plan.html#detailed-exitcode

- This is useful for adding custom steps in our GitHub action workflows.
- Not a Javascript developer so Im not sure how valid the OR condition is.

Co-authored-by: James Pogran <jpogran@outlook.com>
2022-05-18 08:47:46 -04:00
James Pogran
d1d9ce119f
Bump @actions/io from 1.1.0 to 1.1.1 (#162)
Bumps [@actions/io](https://github.com/actions/toolkit/tree/HEAD/packages/io) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/io/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/tool-cache@1.1.1/packages/io)
2022-03-08 11:10:40 -05:00
James Pogran
93b480fa28
Bump @actions/exec from 1.0.4 to 1.1.0 (#161)
* Bump @actions/exec from 1.0.4 to 1.1.0

Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.4 to 1.1.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec)
2022-03-08 10:57:57 -05:00
James Pogran
5369c899c5
Bump @actions/core from 1.2.7 to 1.6.0 (#160)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.7 to 1.6.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
2022-03-08 10:42:25 -05:00
James Pogran
ca6738af70
Bump development dependencies (#153)
Bumps [semistandard](https://github.com/standard/semistandard) from 14.2.0 to 16.0.1.
- [Release notes](https://github.com/standard/semistandard/releases/tag/v16.0.1)
- [Commits](standard/semistandard@v14.2.0...v16.0.1)

Bumps [nock](https://github.com/nock/nock) from 7.4.0 to 7.5.0.
- [Release notes](https://github.com/nock/nock/releases/tag/v13.2.4)
- [Commits](nock/nock@v13.0.11...v13.2.4)

Bumps [jest](https://github.com/facebook/jest) from 26.6.3 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases/tag/v27.5.1)
- [Commits](facebook/jest@v26.6.3...v27.5.1)

Bumps [husky](https://github.com/typicode/husky) from 6.0.0 to 7.0.4.
- [Release notes](https://github.com/typicode/husky/releases/tag/v7.0.4)
- [Commits](typicode/husky@v6.0.0...v7.0.4)

Bumps [ncc](https://github.com/vercel/ncc) from 0.28.5 to 0.33.3.
- [Release notes](https://github.com/vercel/ncc/releases/tag/0.33.3)
- [Commits](vercel/ncc@0.28.5...0.33.3)
2022-03-04 10:53:57 -05:00
Audrey Eschright
9095b20a9e
Update js-releases to v1.4.0 (#111)
* Update js-releases to v1.4.0
* Update dependency @vercel/ncc
2021-05-13 15:15:06 -07:00
Audrey Eschright
ccd38093bb
Upgrade dependencies and clean up package config (#63) 2020-10-30 13:07:27 -07:00
Matthew Sanabria
cd5e05ffbf Initial commit 2020-04-25 19:46:30 -04:00