Skip to content

Commit

Permalink
Improve comment describing how to create a token for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalfield committed Aug 30, 2023
1 parent d4bb77d commit 5459316
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/fast-forward.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@ REPO=${REPO:-fast-forward-unit-tests}
# - Developer Settings
# - Personal access tokens
# - Tokens (classic)
# - Generate a personal access token
# - Generate new token
# - Generate new token (fine-grained, repo-scoped)
#
# Create a token with "repo" permission.
# - Token name: fast-forward
# - Resource owner: sequoia-pgp
# - Only select repositories
# - sequoia-pgp/fast-forward-unit-tests
# - Permissions: Actions, Commit statuses, Contents, Issues, Pull requests, Workflows
# - Generate token
#
# Then you can locally run:
#
# $ OWNER=sequoia-pgp REPO=fast-forward-unit-tests GITHUB_ACTOR=nwalfield \
# GITHUB_TOKEN=github_pat_... tests/fast-forward.sh
if test "x$GITHUB_TOKEN" = x -a "x$FAST_FORWARD_UNIT_TESTS_TOKEN" = x
then
echo "Either the GITHUB_TOKEN or the FAST_FORWARD_UNIT_TESTS_TOKEN environment variable needs to be set."
Expand Down

0 comments on commit 5459316

Please sign in to comment.