Skip to content

Commit 23f100a

Browse files
committed
make: omit github token flag by default
1 parent f7cdd78 commit 23f100a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
SHELL := /bin/bash
1616

1717
# available for override
18-
GITHUB_TOKEN_PATH ?= /etc/github-token/token
18+
GITHUB_TOKEN_PATH ?=
1919
TEST_INFRA_PATH ?= $(OUTPUT_DIR)/tmp/test-infra
2020

2121
# intentionally hardcoded list to ensure it's high friction to remove someone
@@ -65,7 +65,7 @@ deploy: config test peribolos
6565
--fix-org-members \
6666
--fix-teams \
6767
--fix-team-members \
68-
--github-token-path=$(GITHUB_TOKEN_PATH) \
68+
$(shell [ -n "${GITHUB_TOKEN_PATH}" ] && echo "--github-token-path=${GITHUB_TOKEN_PATH}") \
6969
$(patsubst %, --required-admins=%, $(ADMINS)) \
7070
$@
7171

0 commit comments

Comments
 (0)