Skip to content

Commit 301d4da

Browse files
committed
chore: clear gh token from env
1 parent cf16e17 commit 301d4da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/pr-validator.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@ jobs:
2727
PR_BODY: ${{ github.event.pull_request.body }}
2828
PRNUM: ${{ github.event.pull_request.number }}
2929
TITLE: ${{ github.event.pull_request.title }}
30-
GH_TOKEN: ${{ github.token }}
3130
GH_PR_VALIDATOR_TOKEN: ${{ secrets.GH_PR_VALIDATOR_TOKEN }}
3231
BASE_REPO: ${{ github.event.pull_request.base.repo.full_name }}
3332
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
3433
run: |
3534
echo "base or target repo : ${{ github.event.pull_request.base.repo.full_name }}"
3635
echo "head or source repo : ${{ github.event.pull_request.head.repo.full_name }}"
37-
36+
echo "$GH_PR_VALIDATOR_TOKEN" | gh auth login --with-token
37+
3838
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]]; then
3939
export forked=false
4040
else
4141
export forked=true
42-
echo "$GH_PR_VALIDATOR_TOKEN" | gh auth login --with-token
4342
fi
4443
4544
set -x

0 commit comments

Comments
 (0)