File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ API_URL="https://agent.api.stepsecurity.io/v1/github/$GITHUB_REPOSITORY/actions/
77RESPONSE=$( curl --max-time 3 -s -w " %{http_code}" " $API_URL " -o /dev/null) || true
88CURL_EXIT_CODE=${?}
99
10- # Check if the response code is not 200
11- if [ $CURL_EXIT_CODE -ne 0 ] || [ " $RESPONSE " != " 200" ]; then
12- if [ -z " $RESPONSE " ] || [ " $RESPONSE " == " 000" ] || [ $CURL_EXIT_CODE -ne 0 ]; then
13- echo " Timeout or API not reachable. Continuing to next step."
14- else
15- echo " Subscription is not valid. Reach out to support@stepsecurity.io"
16- exit 1
17- fi
10+ if [ $CURL_EXIT_CODE -ne 0 ]; then
11+ echo " Timeout or API not reachable. Continuing to next step."
12+ elif [ " $RESPONSE " = " 200" ]; then
13+ :
14+ elif [ " $RESPONSE " = " 403" ]; then
15+ echo " Subscription is not valid. Reach out to support@stepsecurity.io"
16+ exit 1
17+ else
18+ echo " Timeout or API not reachable. Continuing to next step."
1819fi
1920
2021cd " ${GITHUB_WORKSPACE} " || exit 1
You can’t perform that action at this time.
0 commit comments