Skip to content

Commit 7128fee

Browse files
authored
Merge pull request #11 from step-security/fix/github-context
fix: fixed github context issue for docker-based actions
2 parents 6eec22f + f5d76cc commit 7128fee

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LABEL \
55
"repository"="https://github.com/step-security/repo-sync-pull-request" \
66
"maintainer"="step-security"
77

8-
RUN apk add --no-cache git github-cli bash curl
8+
RUN apk add --no-cache git github-cli bash curl jq
99

1010
ADD *.sh /
1111

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ runs:
6666
image: 'docker://ghcr.io/step-security/repo-sync-pull-request:v2.12.1@sha256:d2871db8601f971f250d0ddb7a4cd64651cfd4e81af9e0c5024bda67f80557ac' # v2.12.1
6767
env:
6868
GITHUB_TOKEN: ${{ inputs.github_token }}
69-
REPO_PRIVATE: ${{ github.event.repository.private }}

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -o pipefail
77
UPSTREAM="repo-sync/pull-request"
88
ACTION_REPO="${GITHUB_ACTION_REPOSITORY:-}"
99
DOCS_URL="https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions"
10+
REPO_PRIVATE=$(jq -r '.repository.private | tostring' "$GITHUB_EVENT_PATH" 2>/dev/null || echo "")
1011

1112
echo ""
1213
echo -e "\033[1;36mStepSecurity Maintained Action\033[0m"

0 commit comments

Comments
 (0)