File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 3434 WIZ_CLIENT_SECRET : ${{ secrets.WIZ_CLIENT_SECRET }}
3535
3636 - name : Run wiz CLI IaC scan
37- run : ./wizcli iac scan --path $SCAN_PATH --policy "$POLICY"
37+ run : ./wizcli iac scan --path $SCAN_PATH
38+
39+ wiz-cli-dir-scan :
40+ name : " Wiz-cli Dir Scan"
41+ runs-on : ubuntu-latest
42+ env :
43+ SCAN_PATH : " ." # Set the relative path in the repo to scan
44+
45+ # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
46+ defaults :
47+ run :
48+ shell : bash
49+
50+ steps :
51+ - name : Authenticate to Wiz
52+ run : ./wizcli auth --id "$WIZ_CLIENT_ID" --secret "$WIZ_CLIENT_SECRET"
53+ env :
54+ WIZ_CLIENT_ID : ${{ secrets.WIZ_CLIENT_ID }}
55+ WIZ_CLIENT_SECRET : ${{ secrets.WIZ_CLIENT_SECRET }}
56+
57+ - name : Run wiz CLI Dir scan
58+ run : ./wizcli dir scan --path $SCAN_PATH
59+
You can’t perform that action at this time.
0 commit comments