Skip to content

[updatecli] Bump tfcmt version to v4.14.15#189

Open
hmcts-dependency-updater[bot] wants to merge 23 commits intomasterfrom
updatecli_a51170bbfd5ac2748033cfc5da59c604b46025786949add88ef03a5b33ad5807
Open

[updatecli] Bump tfcmt version to v4.14.15#189
hmcts-dependency-updater[bot] wants to merge 23 commits intomasterfrom
updatecli_a51170bbfd5ac2748033cfc5da59c604b46025786949add88ef03a5b33ad5807

Conversation

@hmcts-dependency-updater
Copy link
Copy Markdown
Contributor

@hmcts-dependency-updater hmcts-dependency-updater Bot commented Dec 11, 2023

Bump tfcmt version to v4.14.15


Update tfcmt version

Bump tfcmt Version

1 file(s) updated with "TFCMT_VERSION=v4.7.2": * scripts/install-tfcmt.sh

v4.10.0
Release published on the 2024-06-02 03:26:38 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.10.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.10.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.10.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.9.1...v4.10.0

## Features

#1294 plan: Support disabling labels by a command line option and environment variable

Added a command line option `-disable-label` and an environment variable `TFCMT_DISABLE_LABEL`. If they are set, `tfcmt plan` doesn't set labels.

```sh
tfcmt plan -disable-label -- terraform plan
```

```sh
export TFCMT_DISABLE_LABEL=true
tfcmt plan -- terraform plan
```

## Fixes

#1295 validate if command is specified

`tfcmt plan` and `tfcmt apply` require command to be executed.

```sh
tfcmt plan -- terraform plan
tfcmt apply -- terraform apply
```

So this pull request adds a validation if command is specified.
If no command is specified, tfcmt plan and apply return an error immediately.

```console
$ tfcmt plan
ERRO[0000] tfcmt failed                                  error="no command specified"
```

## Others

#1292 #1293 Improve the help message
v4.11.0
Release published on the 2024-07-14 02:44:17 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.11.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.11.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.11.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.10.0...v4.11.0

## Features

#1336 #1339 Post comments to a pull request if the workflow run is triggered via GitHub Actions' merge_group event

## Others

Update Go to 1.22.5
v4.12.0
Release published on the 2024-08-04 07:51:28 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.12.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.12.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.12.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.11.0...v4.12.0

## Features

#1355 Get GitHub API endpoints from environment variables `GITHUB_API_URL` and `GITHUB_GRAPHQL_URL` in GitHub Actions
v4.13.0
Release published on the 2024-08-13 00:21:08 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.13.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.13.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.13.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.12.0...v4.13.0

## Features

#1365 Update the template function `wrapCode` to output the warning when the content is omitted

`wrapCode` omits the content if it is too long.

#227 https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v3.1.0

```
# ...
# ... The maximum length of GitHub Comment is 65536, so the content is omitted by tfcmt.
# ...
```

But this behaviour is a bit confusing.
This release updates `wrapCode` to output the warning when the content is omitted.

<img width="985" alt="image" src="https://github.com/user-attachments/assets/7684e187-5c72-4213-8743-a14feaaebc1f">
v4.14.0
Release published on the 2024-10-04 01:31:40 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.13.0...v4.14.0

## Features

#1423 #1425 plan: Add the option `-ignore-warning`

We've Added the option `-ignore-warning` to the `tfcmt plan` command.
You can also configure this option in your configuration file.

```yaml
terraform:
  plan:
    ignore_warning: true
```

By default, tfcmt emphasizes the warning of `terraform plan`, and the option `-skip-no-changes` is ignored if `terraform plan` outputs warning.

![image](https://github.com/user-attachments/assets/17aa86c8-890e-414f-b65b-6a895f5de8fb)

This is because we think warning should not be ignored.

But actually we're aware that some users ignore warning normally and they feel warning is noisy.
In this case, it's desirable that `tfcmt plan -skip-no-changes` doesn't post a comment even if warning is outputted.

So this pull request introduces a new option `-ignore-warning`.

If `terraform plan` outputs warning, this option makes the template variable `.Warning` empty, removing the warning from the default template.

If `terraform plan -skip-no-changes` has no change and outputs warning, this option disables to post a comment.

#1425 plan: Bind some environment variables to options

- TFCMT_PLAN_PATCH
- TFCMT_SKIP_NO_CHANGES
- TFCMT_IGNORE_WARNING

## Others

#1417 Update Go 1.22.6 to 1.23.1
#1409 Create [GitHub Artifact Attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds)

https://github.com/suzuki-shunsuke/tfcmt/attestations

You can verify downloaded assets from GitHub Releases using GitHub CLI.

```sh
# Download assets from GitHub Releases.
gh release download -R suzuki-shunsuke/tfcmt v4.14.0 -p tfcmt_darwin_arm64.tar.gz
# Verify an asset.
gh attestation verify tfcmt_darwin_arm64.tar.gz \
  -R suzuki-shunsuke/tfcmt \
  --signer-workflow suzuki-shunsuke/go-release-workflow/.github/workflows/release.yaml
```
v4.14.1
Release published on the 2024-12-30 06:16:33 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.1

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.1) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.1) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.0...v4.14.1

This release is to pin JSON Schema version.
v4.14.10
Release published on the 2025-08-16 00:32:30 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.10

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.10) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.10) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.9...v4.14.10

## Fixes

#1871 Fix HasNoChanges condition in parser @nakamasato

Add `Plan: 0 to add, 0 to change, 0 to destroy.` to the regular expression condition for `no changes`.

Previously, in some cases `tfcmt plan` would set the label `add-or-update` even though no resources were added, changed, or destroyed.

e.g.

- Resources are moved using the `moved` block
- Output values are changed

This release updates the behaviour.
From now on, tfcmt will set the label `no-changes` if no resources are added, changed, or destroyed.
v4.14.11
Release published on the 2025-09-06 12:02:03 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.11

https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.10...v4.14.11

🛡️ Starting from this release, [Immutable Release](https://github.blog/changelog/2025-08-26-releases-now-support-immutability-in-public-preview/) is enabled!

## 🐛 Bug Fixes

#1940 Skip updating labels if it fails to get the pull request number
v4.14.12
Release published on the 2025-09-20 07:08:06 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.12

https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.11...v4.14.12

## Improvement

#1975 Validate the label length on the client side

The length of GitHub labels must be lower equal than 50.
tfcmt will validate the label length on the client side, not server side (GitHub).
This change reduces meaningless API call and improves the error message.

#1971 Support CodeBuild-hosted GitHub Actions runner
#1944 Update Go to v1.25.1

## Fixes

#1966 Fix Homebrew Cask for Linux
v4.14.13
Release published on the 2025-12-07 01:39:58 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.13

https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.12...v4.14.13

#2082 Replace logrus with slog
#2091 #2094 Refactoring

## Others

#2009 Check licenses
#2061 Fix typo in the document @rauny-brandao
v4.14.14
Release published on the 2026-01-15 08:09:59 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.14

https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.13...v4.14.14

## Fixes

#2143 Support `replace_triggered_by` lifecycle in plan parser

## Refactoring

#2102 Use Destination pattern for urfave/cli/v3 flags
v4.14.15
Release published on the 2026-02-20 00:21:47 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.15

https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.14...v4.14.15

## :bug: Bug Fixes

#2206 Fix a bug that empty error log is outputted

## Dependency Updates

Update module github.com/suzuki-shunsuke/slog-error to v0.2.2 in https://github.com/suzuki-shunsuke/tfcmt/pull/2150
Update dependency go to v1.26.0 in https://github.com/suzuki-shunsuke/tfcmt/pull/2195
Update module github.com/urfave/cli/v3 to v3.6.2 in https://github.com/suzuki-shunsuke/tfcmt/pull/2160
Update module github.com/suzuki-shunsuke/slog-util to v0.3.1 in https://github.com/suzuki-shunsuke/tfcmt/pull/2167
Update module golang.org/x/oauth2 to v0.35.0 in https://github.com/suzuki-shunsuke/tfcmt/pull/2188
Update module github.com/google/go-github/v81 to v83 in https://github.com/suzuki-shunsuke/tfcmt/pull/2204

Update actions/setup-go action to v6.2.0 in https://github.com/suzuki-shunsuke/tfcmt/pull/2148
Update dependency anchore/syft to v1.42.0 in https://github.com/suzuki-shunsuke/tfcmt/pull/2196
v4.14.2
Release published on the 2025-02-03 04:22:24 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.2

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.2) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.2) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.1...v4.14.2
v4.14.3
Release published on the 2025-04-05 11:44:57 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.3

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.3) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.3) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.2...v4.14.3
v4.14.4
Release published on the 2025-04-10 16:23:31 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.4

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.4) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.4) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.3...v4.14.4

## 🐛 Bug Fixes

#1733 Fix `version` command
v4.14.5
Release published on the 2025-04-16 21:08:15 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.5

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.5) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.5) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.4...v4.14.5

## Security

#1743 Upgrade crypto, net and sys packages @matthewrj

## Refactor

#1744 Refactor `version` command
v4.14.7
Release published on the 2025-05-01 10:22:30 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.7

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.7) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.7) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.6...v4.14.7

## 🐛 Bug Fixes

#1776 Fix a bug GitHub Access Token is required even if it's unused

This is a bug of tfcmt v4.14.6
v4.14.9
Release published on the 2025-07-17 00:50:50 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.14.9

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.14.9) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.14.9) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.14.8...v4.14.9

#1861 Fix Homebrew tap to remove the quarantine bit from the binary on a post install hook
v4.7.2
Release published on the 2023-12-08 00:07:47 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.7.2

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.7.2) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.7.2) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.7.1...v4.7.2

## Fixes

#1061 #1062 Change the default template to fix the issue that emojis aren't rendered

Recently, some emojis in tfcmt's comments aren't rendered properly.

<img width="1023" alt="image" src="https://github.com/suzuki-shunsuke/tfcmt/assets/13323303/2a1c6fd1-b35f-4e23-afbc-31e77c854e4c">

We guess this is a bug of GitHub itself.

- https://github.com/orgs/community/discussions/77605
- https://github.com/orgs/community/discussions/77606

We found the bug doesn't occur if we remove emojis from the end of lines.

Before

```
### :warning: Resource Deletion will happen :warning:
```

After

```
### :warning: Resource Deletion will happen
```

Until the bug will be fixed, we'll remove emojis from the end of lines.

## Others

Update dependencies

#1058 chore(deps): update dependency golang/go to v1.21.5
v4.7.3
Release published on the 2023-12-18 11:29:12 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.7.3

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.7.3) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.7.3) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.7.2...v4.7.3

## Bug Fixes

#1073 Fix a bug code blocks are broken if "```" are used in the command output @jemiam

> When triple backticks are in results for terraform command, wrapCode method uses HTML tags(pre + code) to escape it.
> But currently these tags are also escaped so it doesn't work as intended.

## New Contributor 🎉

Thank you for your contirbution!

@jemiam #1073
v4.8.0
Release published on the 2023-12-27 12:18:32 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.8.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.8.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.8.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.7.3...v4.8.0

## Features

#1090 #1091 Support passing GitHub Access token via the environment variable `TFCMT_GITHUB_TOKEN`

In addition to the environment variable `GITHUB_TOKEN`, tfcmt supports the environment variable `TFCMT_GITHUB_TOKEN` too.
v4.9.0
Release published on the 2024-02-01 07:30:13 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.9.0

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.9.0) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.9.0) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.8.0...v4.9.0

## Features

[#1083](https://github.com/suzuki-shunsuke/tfcmt/discussions/1083) #1115 Support masking sensitive data

You can mask sensitive data in outputs of terraform.
This feature prevents the leak of sensitive data.

The following outputs are masked.

- Standard output of terraform command
- Standard error output of terraform command
- Pull request comment of `tfcmt plan` and `tfcmt apply`
- [local files created by `--output` option](https://suzuki-shunsuke.github.io/tfcmt/output-file)

> [!CAUTION]
> Even if you maske secrets using this feature, secrets are still stored in Terraform States.
> Please see also [Sensitive Data in State](https://developer.hashicorp.com/terraform/language/state/sensitive-data).

You can use environment variables `TFCMT_MASKS` and `TFCMT_MASKS_SEPARATOR`.

- `TFCMT_MASKS`: A list of masks. Masks are joined by `TFCMT_MASKS_SEPARATOR`
- `TFCMT_MASKS_SEPARATOR`: A separator of masks. The default value is `,`

The format of each mask is `${type}:${value}`.
`${type}` must be either `env` or `regexp`.
If `${type}` is `env`, `${value}` is a masked environment variable name.
If `${type}` is `regexp`, `${value}` is a masked regular expression.

e.g. Mask GitHub access tokens and the environment variable `DATADOG_API_KEY`.

```sh
export TFCMT_MASKS='env:GITHUB_TOKEN,env:DATADOG_API_KEY,regexp:ghp_[^ ]+'
tfcmt plan -- terraform plan
```

e.g. Change the separator to `/`.

```sh
export TFCMT_MASKS_SEPARATOR=/
export TFCMT_MASKS='env:GITHUB_TOKEN/env:DATADOG_API_KEY/regexp:ghp_[^ ]+'
```

All matching strings are replaced with `***`.
Replacements are done in order of `TFCMT_MASKS`, so the result depends on the order of `TFCMT_MASKS`.
For example, if `TFCMT_MASKS` is `regexp:foo,regexp:foo.*`, `regexp:foo.*` has no meaning because all `foo` are replaced with `***` before replacing `foo.*` with `***` so `foo.*` doesn't match with anything.

### Example

This example creates a resource [google_cloudbuild_trigger](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloudbuild_trigger).
This resource has a GitHub Access token as a field `substitutions._GH_TOKEN`.

main.tf

```tf
resource "google_cloudbuild_trigger" "filename_trigger" {
  location = "us-central1"
  trigger_template {
    branch_name = "main"
    repo_name   = "my-repo"
  }
  substitutions = {
    _GH_TOKEN = var.gh_token # Secret
  }
  filename = "cloudbuild.yaml"
}
variable "gh_token" {
  type        = string
  description = "GitHub Access token"
}
terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "5.13.0"
    }
  }
}
```

If you run `terraform plan` without masking, the secret would be leaked.
To prevent the leak, let's mask the secret.

```sh
export TFCMT_MASKS=env:TF_VAR_gh_token # Mask the environment variable TF_VAR_gh_token
```

Please see `_GH_TOKEN` in the output of `tfcmt plan` and the pull request comment.
You can confirm `_GH_TOKEN` is masked as `***` properly.

```console
$ tfcmt plan -- terraform plan
tfcmt plan -- terraform plan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # google_cloudbuild_trigger.filename_trigger will be created
  + resource "google_cloudbuild_trigger" "filename_trigger" {
      + create_time   = (known after apply)
      + filename      = "cloudbuild.yaml"
      + id            = (known after apply)
      + location      = "us-central1"
      + name          = (known after apply)
      + project       = "hello"
      + substitutions = {
          + "_GH_TOKEN" = "***"
        }
      + trigger_id    = (known after apply)

      + trigger_template {
          + branch_name = "main"
          + project_id  = (known after apply)
          + repo_name   = "my-repo"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
```

![image](https://github.com/suzuki-shunsuke/tfcmt-docs/assets/13323303/7b79481b-923c-40cf-8bbb-f955b0685d1f)

### Terraform sensitive input variables and outputs and sensitive function

Terraform itself has features to prevent sensitive data from being leaked.

- https://developer.hashicorp.com/terraform/tutorials/configuration-language/sensitive-variables
- https://developer.hashicorp.com/terraform/language/functions/sensitive
- https://developer.hashicorp.com/terraform/language/values/outputs#sensitive-suppressing-values-in-cli-output
- https://developer.hashicorp.com/terraform/language/values/variables#suppressing-values-in-cli-output
- https://www.hashicorp.com/blog/terraform-0-14-adds-the-ability-to-redact-sensitive-values-in-console-output
- https://www.hashicorp.com/blog/announcing-hashicorp-terraform-0-15-general-availability

So first you should use these features.
But even if these features are available, it still makes sense for tfcmt to mask sensitive data.
Please imagine the situation that platform engineers manage Terraform workflows and product teams manage Terraform codes in a Monorepo.
Then platform engineers need to prevent sensitive data from being leaked, but if product teams forget to protect them with `sensitive` flags, sensitive data would be leaked.
By protecting sensitive data using tfcmt, platform engineers can prevent sensitive data from being leaked while delegating the management of Terraform codes to product teams.
tfcmt's masking feature works as a guardrail.
v4.9.1
Release published on the 2024-05-09 22:31:57 +0000 UTC at the url https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.9.1

[Pull Requests](https://github.com/suzuki-shunsuke/tfcmt/pulls?q=is%3Apr+milestone%3Av4.9.1) | [Issues](https://github.com/suzuki-shunsuke/tfcmt/issues?q=is%3Aissue+milestone%3Av4.9.1) | https://github.com/suzuki-shunsuke/tfcmt/compare/v4.9.0...v4.9.1

## Fix

#1187 #1257 #1258 Exit commands with non zero exit code if any error such as API rate limit happens

This update changes the exit code of tfcmt when an error happens.
The exit code was same with the exit code of `terraform plan` and `terraform apply`.
This means tfcmt might have exited with zero even if tfcmt failed to post a comment due to some reason such as API rate limit.
This was not a bug but a expected behavior.
But this behaviour was dangerous because people might have missed unexpected changes.

So this update changes the behaviour as tfcmt exits with non zero if any error such as API rate limit happens.

Updatecli logo

Created automatically by Updatecli

Options:

Most of Updatecli configuration is done via its manifest(s).

  • If you close this pull request, Updatecli will automatically reopen it, the next time it runs.
  • If you close this pull request and delete the base branch, Updatecli will automatically recreate it, erasing all previous commits made.

Feel free to report any issues at github.com/updatecli/updatecli.
If you find this tool useful, do not hesitate to star our GitHub repository as a sign of appreciation, and/or to tell us directly on our chat!

Made with ❤️️ by updatecli
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.7.2 [updatecli] Bump tfcmt version to v4.7.3 Dec 25, 2023
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.7.3 [updatecli] Bump tfcmt version to v4.8.0 Jan 1, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.8.0 [updatecli] Bump tfcmt version to v4.9.0 Feb 5, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.9.0 [updatecli] Bump tfcmt version to v4.9.1 May 13, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.9.1 [updatecli] Bump tfcmt version to v4.10.0 Jun 3, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.10.0 [updatecli] Bump tfcmt version to v4.11.0 Jul 15, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.11.0 [updatecli] Bump tfcmt version to v4.12.0 Aug 5, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.12.0 [updatecli] Bump tfcmt version to v4.13.0 Aug 19, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.13.0 [updatecli] Bump tfcmt version to v4.14.0 Oct 7, 2024
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.0 [updatecli] Bump tfcmt version to v4.14.1 Jan 6, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.1 [updatecli] Bump tfcmt version to v4.14.2 Feb 10, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.2 [updatecli] Bump tfcmt version to v4.14.3 Apr 7, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.3 [updatecli] Bump tfcmt version to v4.14.4 Apr 14, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.4 [updatecli] Bump tfcmt version to v4.14.5 Apr 21, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.5 [updatecli] Bump tfcmt version to v4.14.7 May 5, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.7 [updatecli] Bump tfcmt version to v4.14.9 Jul 21, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.9 [updatecli] Bump tfcmt version to v4.14.10 Aug 18, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.10 [updatecli] Bump tfcmt version to v4.14.11 Sep 8, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.11 [updatecli] Bump tfcmt version to v4.14.12 Sep 22, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.12 [updatecli] Bump tfcmt version to v4.14.13 Dec 8, 2025
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.13 [updatecli] Bump tfcmt version to v4.14.14 Jan 19, 2026
Made with ❤️️ by updatecli
@hmcts-dependency-updater hmcts-dependency-updater Bot changed the title [updatecli] Bump tfcmt version to v4.14.14 [updatecli] Bump tfcmt version to v4.14.15 Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants