https://github.com/seqsense/terraform-lock-fix-action
GitHub Action to update .terraform.lock.hcl
https://github.com/seqsense/terraform-lock-fix-action
Last synced: 5 months ago
JSON representation
GitHub Action to update .terraform.lock.hcl
- Host: GitHub
- URL: https://github.com/seqsense/terraform-lock-fix-action
- Owner: seqsense
- License: apache-2.0
- Created: 2021-04-25T09:56:44.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-11-25T04:05:40.000Z (7 months ago)
- Last Synced: 2025-11-28T13:31:14.312Z (7 months ago)
- Language: Shell
- Size: 31.3 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-lock-fix-action
GitHub Action to update .terraform.lock.hcl
## Example
Example to automatically fix `.terraform.lock.hcl` in pull requests of [Renovate](https://github.com/renovatebot/renovate).
This action internally uses [tfutils/tfenv](https://github.com/tfutils/tfenv) to install Terraform.
It can automatically detect your project's Terraform versions.
See https://github.com/tfutils/tfenv#tfenv-install-version for more details.
If no version is specified, this action uses the latest version of Terraform.
```yaml
name: terraform-lock-fix
on:
push:
branches:
- renovate/*
jobs:
terraform-lock-fix:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: fix
uses: seqsense/terraform-lock-fix-action@v0
with:
git_user: @@MAINTAINER_NAME@@
git_email: @@MAINTAINER_EMAIL_ADDRESS@@
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_style: squash
push: force
```