Skip to content

Commit

Permalink
Set permissions for nodejs and publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jibrang committed Sep 25, 2024
1 parent fa0afcd commit 20b719b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Node.js CI
on: [push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -14,3 +16,4 @@ jobs:
- run: npm test
env:
CI: true

5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
release:
types: [created]

permissions:
contents: read
packages: write
metadata: read

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 20b719b

Please sign in to comment.