Skip to content

Commit 91e5a38

Browse files
Potential fix for code scanning alert no. 4: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent cd7b817 commit 91e5a38

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main
88
tags:
99
- '*'
10+
permissions:
11+
contents: read
1012
env:
1113
FORCE_COLOR: 1
1214
jobs:
@@ -54,6 +56,8 @@ jobs:
5456
run: yarn lint
5557

5658
build:
59+
permissions:
60+
contents: write
5761
needs: [verify-version, lint]
5862
runs-on: ${{ matrix.os }}
5963
strategy:
@@ -166,6 +170,8 @@ jobs:
166170
if: matrix.node == 24 && startsWith(github.ref, 'refs/tags/')
167171

168172
build-musl:
173+
permissions:
174+
contents: write
169175
needs: [verify-version]
170176
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
171177
strategy:

0 commit comments

Comments
 (0)