Skip to content

Commit 92083b5

Browse files
📖 Fix recommended command to test the image in development (#1583)
Because no testdata files are actually copied to the image, we fail to read the event file and fallback to fetching the information from GitHub API. Howver, that's not actually working because the `GITHUB_API_URL` environment is missing. To fix it, we could pass the `GITHUB_API_URL`. However, I think actually making the testdata file available to the container mimics better what happens in real life. Signed-off-by: David Rodríguez <[email protected]>
1 parent 7975ea6 commit 92083b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/development.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ docker run -e INPUT_REPO_TOKEN="$GITHUB_AUTH_TOKEN" \
3838
-e GITHUB_EVENT_NAME="branch_protection_rule" \
3939
-e GITHUB_EVENT_PATH="/testdata/fork.json" \
4040
-e GITHUB_REPOSITORY="ossf/scorecard" \
41+
--mount type=bind,source=./options/testdata/fork.json,destination=/testdata/fork.json,readonly \
4142
scorecard-action:testing
4243
```
4344

0 commit comments

Comments
 (0)