Skip to content

Commit 23cade6

Browse files
committed
Add explicit workflow permissions
1 parent b4fa6b1 commit 23cade6

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/check-pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
types: [opened, labeled, unlabeled, synchronize]
66

7+
permissions:
8+
contents: read
9+
issues: read
10+
pull-requests: read
11+
712
jobs:
813
validate-pr-label:
914
name: Validate the Pull Request's labels

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "*"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
run-checks:
1013
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches-ignore: [main]
66

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

0 commit comments

Comments
 (0)