Skip to content

Commit ed6a9e4

Browse files
authored
chore: restrict GitHub workflow permissions - future-proof (#1884)
Signed-off-by: Melissa Kilby <mkilby@apple.com>
1 parent 5a075dc commit ed6a9e4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Nightly
22

3+
permissions:
4+
contents: read
5+
36
on:
47
schedule:
58
- cron: "0 0 * * *"

.github/workflows/pull_request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Pull request
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
types: [opened, reopened, synchronize]

0 commit comments

Comments
 (0)