Skip to content

Commit

Permalink
🔒️ Move permissions to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
stoe committed Apr 21, 2024
1 parent 8a4871f commit 06c357b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ on:
tags:
- 'v*.*.*'

permissions:
contents: read
packages: write
id-token: write

jobs:
publish:
uses: stoe/policies/.github/workflows/policy-node-publish.yml@main
permissions:
contents: read
packages: write
id-token: write
with:
npm: true
gh: true
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
paths-ignore:
- '*.md'

permissions:
contents: read
packages: read

jobs:
test:
uses: stoe/policies/.github/workflows/policy-node-test.yml@main
permissions:
contents: read
packages: read

0 comments on commit 06c357b

Please sign in to comment.