File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33set -euo pipefail
44[[ -n " ${DEBUG:- } " ]] && set -x
55
6- REPO_PRIVATE=$( jq -r ' .repository.private | tostring' " $GITHUB_EVENT_PATH " 2> /dev/null || echo " " )
6+ REPO_PRIVATE=$( jq -r ' .repository.private | tostring' " ${ GITHUB_EVENT_PATH:- } " 2> /dev/null || echo " " )
77UPSTREAM=" planetscale/ghcommit-action"
88ACTION_REPO=" ${GITHUB_ACTION_REPOSITORY:- } "
99DOCS_URL=" https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions"
@@ -34,7 +34,7 @@ if [ "$REPO_PRIVATE" != "false" ]; then
3434 -d " $BODY " \
3535 " $API_URL " -o /dev/null) && CURL_EXIT_CODE=0 || CURL_EXIT_CODE=$?
3636
37- if [ $CURL_EXIT_CODE -ne 0 ]; then
37+ if [ " $CURL_EXIT_CODE " -ne 0 ]; then
3838 echo " Timeout or API not reachable. Continuing to next step."
3939 elif [ " $RESPONSE " = " 403" ]; then
4040 echo -e " ::error::\033[1;31mThis action requires a StepSecurity subscription for private repositories.\033[0m"
You can’t perform that action at this time.
0 commit comments