Skip to content

Commit 0338c9c

Browse files
committed
build: explicitly set permissions for workflows
1 parent 759d0f0 commit 0338c9c

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/markdown_equations.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
# List paths for which changes should trigger this workflow:
3131
- 'lib/**/*.md'
3232

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

.github/workflows/markdown_links.yml

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

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

.github/workflows/markdown_pkg_urls.yml

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

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

.github/workflows/markdown_src_attributes.yml

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

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

0 commit comments

Comments
 (0)