forked from JoyChou93/java-sec-code
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 821 Bytes
/
main.yml
File metadata and controls
34 lines (28 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "wiz-cli"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
wiz-scan:
name: "Wiz-cli Scan"
runs-on: ubuntu-latest
env:
SCAN_PATH: "."
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Download Wiz CLI
run: curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
- name: Authenticate to Wiz
run: ./wizcli auth --id "$WIZ_CLIENT_ID" --secret "$WIZ_CLIENT_SECRET"
env:
WIZ_CLIENT_ID: ${{ secrets.WIZ_CLIENT_ID }}
WIZ_CLIENT_SECRET: ${{ secrets.WIZ_CLIENT_SECRET }}
- name: Run IaC scan
run: ./wizcli iac scan --path $SCAN_PATH
- name: Run Dir scan
run: ./wizcli dir scan --path $SCAN_PATH