Skip to content

Commit 1eff72c

Browse files
committed
build: explicitly set permissions for workflows
1 parent b1cfcb4 commit 1eff72c

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/run_affected_benchmarks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ on:
3535
# List paths for which changes should trigger this workflow:
3636
- 'lib/**/benchmark/**'
3737

38+
# Global permissions:
39+
permissions:
40+
# Allow read-only access to the repository contents:
41+
contents: read
42+
3843
# Workflow jobs:
3944
jobs:
4045

.github/workflows/run_affected_examples.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ on:
3636
# List paths for which changes should trigger this workflow:
3737
- 'lib/**/examples/**'
3838
- 'lib/**/README.md'
39+
40+
# Global permissions:
41+
permissions:
42+
# Allow read-only access to the repository contents:
43+
contents: read
3944

4045
# Workflow jobs:
4146
jobs:

.github/workflows/run_affected_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ on:
7272
directories:
7373
description: 'List of changed directories for which to run affected tests (space separated):'
7474

75+
# Global permissions:
76+
permissions:
77+
# Allow read-only access to the repository contents:
78+
contents: read
79+
7580
# Workflow jobs:
7681
jobs:
7782

.github/workflows/run_tests_coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ on:
7272
directories:
7373
description: 'List of changed directories for which to run tests (space separated):'
7474

75+
# Global permissions:
76+
permissions:
77+
# Allow read-only access to the repository contents:
78+
contents: read
79+
7580
# Workflow jobs:
7681
jobs:
7782

0 commit comments

Comments
 (0)