Skip to content

Commit af831e0

Browse files
committed
[cli] Rename env var GITHUB_PERSONAL_ACCESS_TOKEN to ANTI_GITHUB_PAT
1 parent 5426af0 commit af831e0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

cli/justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ build:
3333
E2E match="":
3434
#!/usr/bin/env bash
3535
mkdir -p tmp/bin
36-
if [ -z "${GITHUB_PERSONAL_ACCESS_TOKEN:-}" ]; then
37-
echo "Please set GITHUB_PERSONAL_ACCESS_TOKEN environment variable, this is a valid GitHub personal access token with access to the public github API"
36+
if [ -z "${ANTI_GITHUB_PAT:-}" ]; then
37+
echo "Please set ANTI_GITHUB_PAT environment variable, this is a valid GitHub personal access token with access to the public github API"
3838
exit 1
3939
fi
4040
if [ -z "${ANTI_SSH_PASSWORD:-}" ]; then

cli/src/Options.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ githubAuthOption =
7474
)
7575
]
7676
<|> setting
77-
[ env "GITHUB_PERSONAL_ACCESS_TOKEN"
77+
[ env "ANTI_GITHUB_PAT"
7878
, metavar "PASSPHRASE"
7979
, help
8080
"A GitHub personal access token with access to public repositories"

cli/test-E2E/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ main = hspec $ do
2121
userSpec
2222

2323
tryGetPAT :: IO (Maybe Auth)
24-
tryGetPAT = fmap (OAuth . BC.pack) <$> lookupEnv "GITHUB_PERSONAL_ACCESS_TOKEN"
24+
tryGetPAT = fmap (OAuth . BC.pack) <$> lookupEnv "ANTI_GITHUB_PAT"
2525

2626
getPAT :: IO Auth
2727
getPAT = do

cli/test-E2E/scenarios/lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ check() {
5050
available in 1password vault at the same record."
5151
exit 1
5252
fi
53-
if [ -z "${GITHUB_PERSONAL_ACCESS_TOKEN:-}" ]; then
54-
echo "Please set GITHUB_PERSONAL_ACCESS_TOKEN environment variable, this is a valid GitHub personal access token with access to the public github API \
53+
if [ -z "${ANTI_GITHUB_PAT:-}" ]; then
54+
echo "Please set ANTI_GITHUB_PAT environment variable, this is a valid GitHub personal access token with access to the public github API \
5555
Or use the pat available in 1password vault at the same record."
5656
exit 1
5757
fi

cli/test-E2E/scenarios/validateUserRegAddRole.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ outputRegRef1=$(getOutputRef "$resultReg1")
3434

3535
log "Created registration request with valid public key with output reference: $outputRegRef1"
3636

37-
if [ -z "$GITHUB_PERSONAL_ACCESS_TOKEN" ]; then
38-
log "Error: GITHUB_PERSONAL_ACCESS_TOKEN is not set. Please refer to \"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\#creating-a-fine-grained-personal-access-token\""
37+
if [ -z "$ANTI_GITHUB_PAT" ]; then
38+
log "Error: ANTI_GITHUB_PAT is not set. Please refer to \"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\#creating-a-fine-grained-personal-access-token\""
3939
exit 1
4040
fi
4141

0 commit comments

Comments
 (0)