Skip to content

Commit e933c25

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ jobs:
1414
env:
1515
SCAN_PATH: "." # Set the relative path in the repo to scan
1616

17-
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
1817
defaults:
1918
run:
2019
shell: bash
2120

2221
steps:
23-
# Checkout the repository to the GitHub Actions runner
2422
- name: Check out repository
2523
uses: actions/checkout@v2
2624

@@ -42,12 +40,17 @@ jobs:
4240
env:
4341
SCAN_PATH: "." # Set the relative path in the repo to scan
4442

45-
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
4643
defaults:
4744
run:
4845
shell: bash
4946

5047
steps:
48+
- name: Check out repository
49+
uses: actions/checkout@v2
50+
51+
- name: Download Wiz CLI
52+
run: curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
53+
5154
- name: Authenticate to Wiz
5255
run: ./wizcli auth --id "$WIZ_CLIENT_ID" --secret "$WIZ_CLIENT_SECRET"
5356
env:
@@ -56,4 +59,3 @@ jobs:
5659

5760
- name: Run wiz CLI Dir scan
5861
run: ./wizcli dir scan --path $SCAN_PATH
59-

0 commit comments

Comments
 (0)