Skip to content

Commit 5bb9509

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

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

.github/workflows/linux_benchmark.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ concurrency:
3939
# Specify whether to cancel any currently running workflow in the same concurrency group:
4040
cancel-in-progress: true
4141

42+
# Global permissions:
43+
permissions:
44+
# Allow read-only access to the repository contents:
45+
contents: read
46+
4247
# Workflow jobs:
4348
jobs:
4449

.github/workflows/linux_examples.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ concurrency:
3939
# Specify whether to cancel any currently running workflow in the same concurrency group:
4040
cancel-in-progress: true
4141

42+
# Global permissions:
43+
permissions:
44+
# Allow read-only access to the repository contents:
45+
contents: read
46+
4247
# Workflow jobs:
4348
jobs:
4449

.github/workflows/linux_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ concurrency:
3737
# Specify whether to cancel any currently running workflow in the same concurrency group:
3838
cancel-in-progress: true
3939

40+
# Global permissions:
41+
permissions:
42+
# Allow read-only access to the repository contents:
43+
contents: read
44+
4045
# Workflow jobs:
4146
jobs:
4247

.github/workflows/linux_test_cov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ concurrency:
3939
# Specify whether to cancel any currently running workflow in the same concurrency group:
4040
cancel-in-progress: true
4141

42+
# Global permissions:
43+
permissions:
44+
# Allow read-only access to the repository contents:
45+
contents: read
46+
4247
# Workflow jobs:
4348
jobs:
4449

.github/workflows/linux_test_install.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ concurrency:
3737
# Specify whether to cancel any currently running workflow in the same concurrency group:
3838
cancel-in-progress: true
3939

40+
# Global permissions:
41+
permissions:
42+
# Allow read-only access to the repository contents:
43+
contents: read
44+
4045
# Workflow jobs:
4146
jobs:
4247

0 commit comments

Comments
 (0)