Skip to content

Commit 0332253

Browse files
committed
fix: add contents write permission for release
1 parent d10c136 commit 0332253

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
build-linux:
1313
runs-on: ubuntu-22.04
14+
permissions:
15+
contents: write
1416

1517
steps:
1618
- uses: actions/checkout@v6.0.2
@@ -54,7 +56,7 @@ jobs:
5456
- name: Trigger CoreOS-repo package build
5557
if: startsWith(github.ref, 'refs/tags/')
5658
env:
57-
TAG: ${{ github.ref_name }} # e.g. v1.0.0
59+
TAG: ${{ github.ref_name }} # e.g. v1.0.0
5860
run: |
5961
VERSION="${TAG#v}" # strip leading v → 1.0.0
6062
curl -s -X POST \
@@ -65,6 +67,8 @@ jobs:
6567
6668
build-windows:
6769
runs-on: windows-latest
70+
permissions:
71+
contents: write
6872

6973
env:
7074
VCPKG_DEFAULT_TRIPLET: x64-windows-static

0 commit comments

Comments
 (0)