Introduction
Allow plugin version to be specified as commit hash, as well as tag. Similar to pinning GitHub Actions versions to a commit.
Proposal
For example, instead of
plugin "aws" {
enabled = true
version = "0.16.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
I'd like to be able to use version = "fa6372da4fafa89fdc1052d966742a070a716725".
plugin "aws" {
enabled = true
version = "fa6372da4fafa89fdc1052d966742a070a716725" # "0.16.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
References
https://michaelheap.com/ensure-github-actions-pinned-sha/
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions