File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
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 : Check local context
36
+ run : |
37
+ matches=$(find . -type d -name "target")
38
+ if [ -n "$matches" ]; then
39
+ echo "Target directory found at:"
40
+ echo "$matches"
41
+ else
42
+ echo "Target directory does not exist."
43
+ echo "$PWD"
44
+ exit 1
45
+ fi
46
+
35
47
- name : Download Wiz CLI
36
48
run : curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
37
49
42
54
WIZ_CLIENT_SECRET : ${{ secrets.WIZ_CLIENT_SECRET }}
43
55
44
56
- 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"
57
+ run : ./wizcli dir scan --path ./ --tag java="${{ matrix.java }}"
54
58
55
59
build-java8 :
56
-
57
60
runs-on : ubuntu-latest
58
61
strategy :
59
62
matrix :
You can’t perform that action at this time.
0 commit comments