Skip to content

Instantly share code, notes, and snippets.

@alastairhm
Created November 1, 2021 14:21
Show Gist options
  • Save alastairhm/4c8856e287e3622e59026388876ea7f1 to your computer and use it in GitHub Desktop.
Save alastairhm/4c8856e287e3622e59026388876ea7f1 to your computer and use it in GitHub Desktop.
Print out latest versions of TFSec, TFLint and TFDoc
#!/bin/bash
echo -n "TFsec : "
curl -s https://github.com/aquasecurity/tfsec/releases | grep "releases/tag"|awk 'NR<2 { split($0,a,">|<"); print a[5] }'
echo -n "TFLint : "
curl -s https://github.com/terraform-linters/tflint/releases | grep "/terraform-linters/tflint/releases/tag"|awk 'NR<2 { split($0,a,">|<"); print a[5] }'
echo -n "TFDoc : "
curl -s https://github.com/terraform-docs/terraform-docs/releases | grep "/terraform-docs/terraform-docs/releases/tag"|awk 'NR<2 { split($0,a,">|<"); print a[5] }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment