Created
November 1, 2021 14:21
-
-
Save alastairhm/4c8856e287e3622e59026388876ea7f1 to your computer and use it in GitHub Desktop.
Print out latest versions of TFSec, TFLint and TFDoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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