Skip to content

Commit 9775f7d

Browse files
committed
Changes related to compliance scan for Mend
1 parent aef20ab commit 9775f7d

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/mend.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,16 @@ jobs:
8888
WS_USER_KEY: ${{ secrets.WS_USER_KEY }}
8989

9090
run: |
91-
if [ -z "$WS_APIKEY_NGINX" ]; then
91+
if [ -z "$WS_APIKEY_NGINX" ] || [ -z "$WS_USER_KEY" ]; then
9292
echo "Secret is empty"
93-
exit 1
94-
else
95-
echo "Secret is available"
93+
exit 1
9694
fi
9795
98-
if [ -z "$WS_USER_KEY" ]; then
99-
echo "User Key is empty"
100-
exit 1
101-
else
102-
echo "User Key is available"
96+
if [ -z "$PRODUCT_NAME" ] || [ -z "$PROJECT_NAME" ]; then
97+
echo "Project Name is empty"
98+
exit 1
10399
fi
104100
105-
if [ -z "$PRODUCT_NAME" || -z "$PROJECT_NAME"]; then
106-
echo "Name is empty"
107-
exit 1
108-
fi
109-
110101
java -jar wss-unified-agent.jar -noConfig true -wss.url $WS_URL -apiKey $WS_APIKEY_NGINX -userKey $WS_USER_KEY -product $PRODUCT_NAME -project $PROJECT_NAME -d ./
111102
exit_code=$?
112103

0 commit comments

Comments
 (0)