Skip to content

Commit 670306a

Browse files
committed
build: explicitly set permissions for workflows
1 parent 5d21a2f commit 670306a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/lint_random_files.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ on:
6868
schedule:
6969
- cron: '0 0 * * *'
7070

71+
# Global permissions:
72+
permissions:
73+
# Allow read-only access to the repository contents:
74+
contents: read
75+
7176
# Workflow jobs:
7277
jobs:
7378

.github/workflows/npm_downloads.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
# Allow the workflow to be manually run:
3030
workflow_dispatch:
3131

32+
# Global permissions:
33+
permissions:
34+
# Allow read-only access to the repository contents:
35+
contents: read
36+
3237
# Workflow jobs:
3338
jobs:
3439

0 commit comments

Comments
 (0)