Categorygithub.com/champ-oss/update-terraform-lockfile
modulepackage
1.0.42-b96eb12
Repository: https://github.com/champ-oss/update-terraform-lockfile.git
Documentation: pkg.go.dev

# README

update-terraform-lockfile

A GitHub Action which updates the Terraform lockfile

Note: This project has been deprecated and will no longer be maintained since Dependabot now updates Terraform lockfiles. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#terraform

.github/workflows/gotest.yml .github/workflows/golint.yml .github/workflows/release.yml .github/workflows/sonar.yml

SonarCloud

Quality Gate Status Vulnerabilities Reliability Rating

Features

  • Updates the Terraform lockfile automatically
  • Opens a pull request if updates are available

Example Usage

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

      - uses: hashicorp/[email protected]
        with:
          terraform_version: 1.1.4
          terraform_wrapper: false

      - uses: champ-oss/update-terraform-lockfile
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

Token

By default the GITHUB_TOKEN should be passed to the actions/checkout step as well as this action (see example usage). This is necessary for the action to be allowed to push changes to a branch as well as open a pull request.

Parameters

ParameterRequiredDescription
tokenfalseGitHub Token or PAT
target-branchfalseTarget branch for pull request
pull-request-branchfalseBranch to push changes
userfalseGit username
emailfalseGit email
commit-messagefalseCommit message to use

Contributing