github RoseSecurity/terrafetch v0.3.0

latest releases: v0.4.1, v0.4.0, v0.3.4...
3 months ago

GitHub Action

Give your infrastructure repositories some flair by injecting Terrafetch statistics right into your documentation.

  1. Add report markers somewhere in your README.md (or any file you point the action at):
<!-- TER​RAFETCH:START -->
<!-- TER​RAFETCH:END -->
  1. Make sure your repo permissions allow the default GITHUB_TOKEN to contents: write so the bot can push the updated file.

Example Workflow

name: Terrafetch

on:
  schedule:
    - cron: "0 3 * * *"   # every night at 03:00
  workflow_dispatch:        # manual trigger when you need it

permissions:
  contents: write           # let the action push changes

jobs:
  terrafetch:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Generate README stats with Terrafetch
        uses: RoseSecurity/terrafetch@v0.2.0
        with:
          terraform_directory: infra
          output_file: README.md      # file with the START/END markers
          terrafetch_version: 0.2.0   # "latest" also works

What's Changed

Full Changelog: v0.2.0...v0.3.0

Don't miss a new terrafetch release

NewReleases is sending notifications on new releases.