Skip to content

Commit 5dd00aa

Browse files
committed
Use GH_API_TOKEN for publishing
1 parent 2fc4608 commit 5dd00aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
uses: levibostian/action-hide-sensitive-inputs@v1
2525
- uses: actions/checkout@v4
2626
- name: Setup git repo
27+
env:
28+
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
2729
run: |
2830
git config user.name $GITHUB_ACTOR
2931
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
30-
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
32+
git remote add gh-origin https://${GITHUB_ACTOR}:${GH_API_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
3133
- name: Set up Ruby
3234
uses: ruby/setup-ruby@v1
3335
with:

0 commit comments

Comments
 (0)