Skip to content

Commit 915519f

Browse files
Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#3)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 49e105f commit 915519f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
33

44
name: Publish NPM
5+
permissions:
6+
contents: read
57
on:
68
push:
79
branches:
@@ -21,6 +23,8 @@ jobs:
2123
publish-npm:
2224
needs: build
2325
runs-on: ubuntu-latest
26+
permissions:
27+
contents: write
2428
steps:
2529
- uses: actions/checkout@v4
2630
- uses: actions/setup-node@v4

0 commit comments

Comments
 (0)