Skip to content

Commit ab27182

Browse files
code linted
code linted
1 parent 77ffd61 commit ab27182

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -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 "")
77
UPSTREAM="planetscale/ghcommit-action"
88
ACTION_REPO="${GITHUB_ACTION_REPOSITORY:-}"
99
DOCS_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"

0 commit comments

Comments
 (0)