Sign inSign up

plus3it/dependabot-terraform-action

By plus3it

•Updated about 5 years ago

Image
0

10K+

plus3it/dependabot-terraform-action repository overview

⁠dependabot-terraform-action

Build & Test &  Release license GitHub tag

Github action for running dependabot on terraform repositories with HCL 2.0 support

⁠Introduction

This action provides the functionality of dependabot⁠ for updating terraform files that utilize the HCL 2.0 ( terraform 0.12 ) syntax. The github action was created, as dependabot currently does not yet officially support HCL 2.0⁠, however the community already started work⁠ on this.

⁠Usage

- uses: patrickjahns/dependabot-terraform-action@v1
  with:
    # Where to look for terraform files to check for dependency upgrades.
    # The directory is relative to the repository's root.
    # Multiple paths can be provided by splitting them with a new line.
    # Example:
    #   directory: |
    #     /path/to/first/module
    #     /path/to/second/module
    # Default: "/"
    directory: ''

    # Branch to create pull requests against.
    # By default your repository's default branch is used.
    target_branch: ''

    # Auth token used to push the changes back to github and create the pull request with.
    # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
    # default: ${{ github.token }}
    token: ''

    # Auth token used for checking terraform dependencies that are from github repositories.
    # Token requires read access to all modules that you want to automatically check for updates
    # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
    # default: ${{ github.token }}
    github_dependency_token:         

⁠Examples

⁠Basic example

In this basic example, the action will run everyday at 6 and check for dependency updates

name: Update terraform dependencies
on:
  schedule:
    # run everyday at 6
    - cron:  '0 6 * * *'

jobs:
  dependabot-terraform:
    runs-on: ubuntu-latest
    steps:
      - name: update terraform dependencies
        uses: patrickjahns/dependabot-terraform-action@v1
        with:
          github_dependency_token: ${{ secrets.DEPENDENCY_GITHUB_TOKEN }}

⁠License

The scripts and documentation in this project are released under the MIT License⁠

Tag summary

Content type

Image

Digest

Size

196.9 MB

Last updated

about 5 years ago

docker pull plus3it/dependabot-terraform-action