Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terrascan 1.3.1 #69420

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions Formula/terrascan.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Terrascan < Formula
desc "Detect compliance and security violations across Infrastructure as Code"
homepage "https://www.accurics.com/products/terrascan/"
url "https://github.com/accurics/terrascan/archive/v1.2.0.tar.gz"
sha256 "8e9daa4e3b1a1e93d12925fe4facb8171f534dece6742c23ebb9049bf3dd739e"
url "https://github.com/accurics/terrascan/archive/v1.3.1.tar.gz"
sha256 "8be53cec9a55691bf14d035c99417b7566e43abeee1fd152e8fb9ef69ea67119"
license "Apache-2.0"
head "https://github.com/accurics/terrascan.git"

Expand Down Expand Up @@ -36,16 +36,14 @@ def install
EOS

expected = <<~EOS
results:
violations: []
count:
low: 0
medium: 0
high: 0
total: 0
\tPolicies Validated : 149
\tViolated Policies : 0
\tLow : 0
\tMedium : 0
\tHigh : 0
EOS

assert_match expected, shell_output("#{bin}/terrascan scan -f ami.tf -t aws")
assert_match expected, shell_output("#{bin}/terrascan scan -f #{testpath}/ami.tf -t aws")

assert_match "version: v#{version}", shell_output("#{bin}/terrascan version")
end
Expand Down