File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 32
32
- name : Build with Maven
33
33
run : mvn -B -U verify --file pom.xml
34
34
35
+ - name : Download Wiz CLI
36
+ run : curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
37
+
38
+ - name : Authenticate to Wiz
39
+ run : ./wizcli auth --id "$WIZ_CLIENT_ID" --secret "$WIZ_CLIENT_SECRET"
40
+ env :
41
+ WIZ_CLIENT_ID : ${{ secrets.WIZ_CLIENT_ID }}
42
+ WIZ_CLIENT_SECRET : ${{ secrets.WIZ_CLIENT_SECRET }}
43
+
44
+ - name : Scan Maven build directory with Wiz
45
+ run : |
46
+ ./wizcli dir scan \
47
+ --path . \
48
+ --policy "$POLICY" \
49
+ --tag repo="${{ github.repository }}" \
50
+ --tag commit="${{ github.sha }}" \
51
+ --tag java="${{ matrix.java }}" > /dev/null 2>&1
52
+ env :
53
+ POLICY : " SmartBear default vulnerabilities policy"
54
+
35
55
build-java8 :
36
56
37
57
runs-on : ubuntu-latest
57
77
restore-keys : |
58
78
${{ runner.os }}-maven-
59
79
- name : Build with Maven
60
- run : mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml
80
+ run : mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml
You can’t perform that action at this time.
0 commit comments