Skip to content

Commit

Permalink
Merge pull request #34 from github/jibrang/set-workflow-permissions
Browse files Browse the repository at this point in the history
Set permissions for nodejs and publish workflows
  • Loading branch information
jibrang authored Sep 25, 2024
2 parents fa0afcd + 0c8240f commit 5ec4395
Show file tree
Hide file tree
Showing 2 changed files with 6 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

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

permissions:
contents: read

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

0 comments on commit 5ec4395

Please sign in to comment.