Skip to content

Commit a048455

Browse files
committed
fix: update permissions and secrets
1 parent 711def2 commit a048455

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/prepare-tag.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: "(Tag): Prepare"
22

3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
actions: read
7+
38
on:
49
workflow_dispatch:
510
inputs:
@@ -36,6 +41,7 @@ jobs:
3641
changelog:
3742
uses: codesnippetspro/.github-private/.github/workflows/changelog.yml@main
3843
needs: get-version
44+
secrets: inherit
3945
with:
4046
repo: ${{ github.repository }}
4147
branch: ${{ github.ref_name }}
@@ -83,6 +89,6 @@ jobs:
8389
8490
- name: "Open pull request: chore(release): `v${{ needs.get-version.outputs.version }}`"
8591
env:
86-
GH_TOKEN: ${{ secrets.CS_GH_TOKEN }}
92+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8793
run: |
8894
gh pr create --title 'chore(release): `v${{ needs.get-version.outputs.version }}`' --body 'Release `v${{ needs.get-version.outputs.version }}`' --base main --head "tag/v${{ needs.get-version.outputs.version }}"

0 commit comments

Comments
 (0)