Skip to content

Commit db7589f

Browse files
authored
Set minimal GITHUB_TOKEN permissions to each job (#378)
2 parents 4c45d25 + d376976 commit db7589f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Node CI
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
draft_release:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: read
1013
outputs:
1114
tag_name: ${{ steps.release-drafter.outputs.tag_name }}
1215
steps:
@@ -23,6 +26,7 @@ jobs:
2326
url: https://www.npmjs.com/package/junit2json
2427
permissions:
2528
contents: write
29+
pull-requests: read
2630
id-token: write
2731
needs: draft_release
2832
if: github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)