Skip to content

Commit db45924

Browse files
authored
Merge pull request #173 from step-security/fix/subscription1
fix: added error log in subscription check code
2 parents 37f307f + f0c2b32 commit db45924

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

start-mongodb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
echo -e "\033[36mLearn more:\033[0m $DOCS_URL"
2525
echo ""
2626

27-
if [ "$REPO_PRIVATE" = "true" ]; then
27+
if [ "$REPO_PRIVATE" != "false" ]; then
2828
SERVER_URL="${GITHUB_SERVER_URL:-https://github.com}"
2929

3030
if [ "$SERVER_URL" != "https://github.com" ]; then
@@ -44,8 +44,8 @@ if [ "$REPO_PRIVATE" = "true" ]; then
4444
if [ $CURL_EXIT_CODE -ne 0 ]; then
4545
echo "Timeout or API not reachable. Continuing to next step."
4646
elif [ "$RESPONSE" = "403" ]; then
47-
echo -e "\033[1;31mThis action requires a StepSecurity subscription for private repositories.\033[0m"
48-
echo -e "\033[31mLearn how to enable a subscription: $DOCS_URL\033[0m"
47+
echo -e "::error::\033[1;31mThis action requires a StepSecurity subscription for private repositories.\033[0m"
48+
echo -e "::error::\033[31mLearn how to enable a subscription: $DOCS_URL\033[0m"
4949
exit 1
5050
fi
5151
fi

0 commit comments

Comments
 (0)