Skip to content

Commit c7219d5

Browse files
authored
Merge pull request #68 from step-security/fix/github-context
fix: fixed github context issue for docker-based actions
2 parents fdd9860 + ea3f862 commit c7219d5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ RUN apk add --no-cache \
88
git \
99
wget \
1010
curl \
11-
bash
11+
bash \
12+
jq
1213

1314
# Build reviewdog
1415
RUN git clone --depth 1 --branch ${REVIEWDOG_VERSION} https://github.com/reviewdog/reviewdog.git /reviewdog \

action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ inputs:
4343
runs:
4444
using: 'docker'
4545
image: 'docker://ghcr.io/step-security/action-misspell:v1.27.2@sha256:48851cc796153d2a4486364f250f671156d56c31cab2a8bbcf215423512552cd' #v1.27.2
46-
env:
47-
REPO_PRIVATE: ${{ github.event.repository.private }}
4846
branding:
4947
icon: 'edit'
5048
color: 'gray-dark'

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
# validate subscription status
4+
REPO_PRIVATE=$(jq -r '.repository.private | tostring' "$GITHUB_EVENT_PATH" 2>/dev/null || echo "")
45
UPSTREAM="reviewdog/action-misspell"
56
ACTION_REPO="${GITHUB_ACTION_REPOSITORY:-}"
67
DOCS_URL="https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions"

0 commit comments

Comments
 (0)