Skip to content

Commit eb0497c

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

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/check_licenses.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ name: check_licenses
2222
# Workflow triggers:
2323
on: [pull_request]
2424

25+
# Global permissions:
26+
permissions:
27+
# Allow read-only access to the repository contents:
28+
contents: read
29+
2530
# Workflow jobs:
2631
jobs:
2732

.github/workflows/first_time_greeting.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ name: first_time_greeting
2222
# Workflow triggers:
2323
on: [pull_request_target, issues]
2424

25+
# Global permissions:
26+
permissions:
27+
# Allow read-only access to the repository contents:
28+
contents: read
29+
2530
# Workflow jobs:
2631
jobs:
2732

.github/workflows/lint_changed_files.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
- synchronize
3131
- reopened
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/make.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
env:
3131
description: Environment variables to set.
3232
required: false
33+
34+
# Global permissions:
35+
permissions:
36+
# Allow read-only access to the repository contents:
37+
contents: read
3338

3439
# Workflow jobs:
3540
jobs:

0 commit comments

Comments
 (0)