Skip to content

Repository for instructional youtube video demonstrating dependabot and terraform

Notifications You must be signed in to change notification settings

TheSudoYT/terraform-dependabot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-dependabot-tutorial

This link is the official documentation for the GitHub Dependabot Terraform support.

Configure Dependabot

If you do not already have a dependabot.yml file create .github/dependabot.yml. This link provides detailed documentaion for each of the configuration items.

Add the following configuration:

version: 2
updates:
  - package-ecosystem: "terraform"
    directory: "/" # Dependabot doesn't recursively search for directories
    schedule:
      interval: "daily" # weekdays only
      time: "09:00"
      timezone: "America/New_York"
    open-pull-requests-limit: 10 
    allow:
      - dependency-type: "all"

Dependencies supported by terraform ecosystem:

  • Modules hosted on Terraform Registry or a publicly reachable Git repository.
  • Terraform providers.
  • Private Terraform Registry.

You can also enable it by navigating to the security tab for the repository -> Dependabot alerts -> Enable Dependabot Alerts -> Dependabot version updates and click Configure

Triggering Dependabot

Dependabot will check your dependencies at the interval define, but you can also manually trigger it.

  • First commit: Dependabot will perform a dependency scan the first time you commit a dependabot.yml file to a repository.
  • Dependency Graph: You can go to the security tab for the repository -> Dependabot alerts -> Enable Dependabot Alerts and enable Dependabot dependency graph. Then you can do to insights -> Dependency Graph -> Dependabot -> Recent job updates and click Check for updates

About

Repository for instructional youtube video demonstrating dependabot and terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages