Skip to content

Commit 9fd19e6

Browse files
authored
Update main.yml
1 parent f181092 commit 9fd19e6

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,26 @@ jobs:
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+

0 commit comments

Comments
 (0)