Skip to content

Commit 80fe486

Browse files
committed
build: explicitly set permissions for workflow
1 parent 7a60bb0 commit 80fe486

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/markdown_tocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
# Allow the workflow to be manually run:
3131
workflow_dispatch:
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/namespace_declarations.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ on:
3333
# Allow the workflow to be manually run:
3434
workflow_dispatch:
3535

36+
# Global permissions:
37+
permissions:
38+
# Allow read-only access to the repository contents:
39+
contents: read
40+
3641
# Workflow jobs:
3742
jobs:
3843

0 commit comments

Comments
 (0)