Skip to content

Commit 18b3a3d

Browse files
committed
PRODSEC-1585 current directory testing
1 parent cabbcee commit 18b3a3d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/maven-master-pulls.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ jobs:
3232
- name: Build with Maven
3333
run: mvn -B -U verify --file pom.xml
3434

35+
- name: Check local context
36+
run: |
37+
if find . -type d -name "target" | grep -q .; then
38+
echo "Target directory exists."
39+
echo "$PWD"
40+
else
41+
echo "Target directory does not exist."
42+
echo "$PWD"
43+
exit 1
44+
fi
45+
3546
- name: Download Wiz CLI
3647
run: curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
3748

0 commit comments

Comments
 (0)