Skip to content

Commit 60701bb

Browse files
authored
./entrypoints.sh: updated SCORECARD_IS_FORK (#98)
1 parent 869bc60 commit 60701bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export SCORECARD_POLICY_FILE="/policy.yml" # Copied at docker image creation.
3030
export SCORECARD_RESULTS_FILE="$INPUT_RESULTS_FILE"
3131
export SCORECARD_RESULTS_FORMAT="$INPUT_RESULTS_FORMAT"
3232
export SCORECARD_PUBLISH_RESULTS="$INPUT_PUBLISH_RESULTS"
33-
export SCORECARD_IS_FORK="$(jq '.repository.fork' $GITHUB_EVENT_PATH)"
3433
export SCORECARD_BIN="/scorecard"
3534
export ENABLED_CHECKS=
3635

@@ -51,6 +50,7 @@ export ENABLED_CHECKS=
5150
curl -s -H "Authorization: Bearer $GITHUB_AUTH_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY > repo_info.json
5251
export SCORECARD_PRIVATE_REPOSITORY="$(cat repo_info.json | jq -r '.private')"
5352
export SCORECARD_DEFAULT_BRANCH="refs/heads/$(cat repo_info.json | jq -r '.default_branch')"
53+
export SCORECARD_IS_FORK="$(cat repo_info.json | jq -r '.fork')"
5454
rm repo_info.json
5555

5656
# If the repository is private, never publish the results.

0 commit comments

Comments
 (0)