Skip to content

Commit cf7d57f

Browse files
authored
tools: Restrict workflow permissions (nodejs#2115)
1 parent 2fb52ac commit cf7d57f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/cleanup-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request_target:
55
types: [closed]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest

.github/workflows/generate-preview.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request_target:
55
types: [labeled]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)