Skip to content

Commit 006ab8a

Browse files
committed
ci: add the required permission for github-release job
1 parent 0eb50f1 commit 006ab8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ jobs:
99
name: Publish to pub.dev
1010
permissions:
1111
id-token: write # Required for authentication using OIDC to publish to pub.dev
12-
contents: write # Required for creating a GitHub release and uploading the LICENSE file
1312
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
1413
github-release:
1514
name: Create GitHub Release
1615
needs: publish
1716
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write # Required for creating a GitHub release and uploading the LICENSE file
1819
steps:
1920

2021
- name: 📥 Checkout Repository

0 commit comments

Comments
 (0)