Skip to content

Commit edb15fd

Browse files
committed
chore: update GitHub Actions workflow to use GitHub token
- Replaced the usage of secrets.GH_TOKEN with github.token in onPushToMain.yml for improved security and access management during the release process.
1 parent edb0e37 commit edb15fd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/onPushToMain.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
with:
16-
token: ${{ secrets.GH_TOKEN }}
1715

1816
- uses: pnpm/action-setup@v6
1917
with:
@@ -43,7 +41,7 @@ jobs:
4341
echo "tag=v$package_version" >> $GITHUB_OUTPUT
4442
fi
4543
env:
46-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
44+
GH_TOKEN: ${{ github.token }}
4745

4846
- name: Create Github Release
4947
if: steps.version-check.outputs.skipped == 'false'
@@ -52,7 +50,7 @@ jobs:
5250
name: ${{ steps.version-check.outputs.tag }}
5351
tag: ${{ steps.version-check.outputs.tag }}
5452
commit: ${{ github.ref_name }}
55-
token: ${{ secrets.GH_TOKEN }}
53+
token: ${{ github.token }}
5654
skipIfReleaseExists: true
5755

5856
- name: Publish to npm

0 commit comments

Comments
 (0)