Skip to content

Commit 65a5f20

Browse files
committedFeb 8, 2025
Add github actions -fix permission
1 parent fc865ab commit 65a5f20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
@@ -46,8 +49,7 @@ jobs:
4649
files: |
4750
build/${{ env.EXTENSION_NAME }}-${{ env.RELEASE_VERSION }}.zip
4851
build/${{ env.EXTENSION_NAME }}-${{ env.RELEASE_VERSION }}.sha256
49-
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
token: ${{ secrets.GITHUB_TOKEN }}
5153

5254
- name: Create development build
5355
run: make dev
@@ -57,8 +59,7 @@ jobs:
5759
with:
5860
files: |
5961
build/${{ env.EXTENSION_NAME }}-dev.zip
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
token: ${{ secrets.GITHUB_TOKEN }}
6263

6364
- name: Update release notes
6465
uses: softprops/action-gh-release@v1
@@ -84,5 +85,4 @@ jobs:
8485
```bash
8586
sha256sum -c ${{ env.EXTENSION_NAME }}-${{ env.RELEASE_VERSION }}.sha256
8687
```
87-
env:
88-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.