Skip to content

Commit 93b1b48

Browse files
mikethemancarlocab
andcommitted
zizmor 0.1.1 (new formula)
Co-authored-by: Carlo Cabrera <github@carlo.cab> Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 6d25c48 commit 93b1b48

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Formula/z/zizmor.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
class Zizmor < Formula
2+
desc "CLI tool for finding security issues in GitHub Actions setups"
3+
homepage "https://github.com/woodruffw/zizmor"
4+
url "https://github.com/woodruffw/zizmor/archive/refs/tags/v0.1.1.tar.gz"
5+
sha256 "d743533d553538b5392ea3bfc45b27d1b55606280babd9418f9cfe7af0273ec0"
6+
license "MIT"
7+
8+
depends_on "pkg-config" => :build
9+
depends_on "rust" => :build
10+
11+
on_linux do
12+
depends_on "openssl@3"
13+
end
14+
15+
def install
16+
system "cargo", "install", *std_cargo_args
17+
end
18+
19+
test do
20+
(testpath/"action.yaml").write <<~YAML
21+
on: push
22+
jobs:
23+
vulnerable:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
YAML
29+
30+
output = shell_output("#{bin}/zizmor --format plain #{testpath}/action.yaml")
31+
assert_match "does not set persist-credentials: false", output
32+
end
33+
end

0 commit comments

Comments
 (0)