mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-15 20:25:22 +02:00
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.
This commit is contained in:
6
.github/workflows/onPushToMain.yml
vendored
6
.github/workflows/onPushToMain.yml
vendored
@@ -12,8 +12,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- uses: pnpm/action-setup@v6
|
||||
with:
|
||||
@@ -43,7 +41,7 @@ jobs:
|
||||
echo "tag=v$package_version" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Create Github Release
|
||||
if: steps.version-check.outputs.skipped == 'false'
|
||||
@@ -52,7 +50,7 @@ jobs:
|
||||
name: ${{ steps.version-check.outputs.tag }}
|
||||
tag: ${{ steps.version-check.outputs.tag }}
|
||||
commit: ${{ github.ref_name }}
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
token: ${{ github.token }}
|
||||
skipIfReleaseExists: true
|
||||
|
||||
- name: Publish to npm
|
||||
|
||||
Reference in New Issue
Block a user