File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments