Skip to content

Commit 16f7095

Browse files
committed
build: explicitly set permissions for workflows
1 parent 3009d90 commit 16f7095

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/check_required_files.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ on:
2525
pull_request_target:
2626
types: [review_requested]
2727

28+
# Global permissions:
29+
permissions:
30+
# Allow read-only access to the repository contents:
31+
contents: read
32+
2833
# Workflow jobs:
2934
jobs:
3035

.github/workflows/deprecate_packages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
message:
3131
description: 'Custom deprecation message:'
3232

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

.github/workflows/discussion_bot_response.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
discussion:
2525
types: [created]
2626

27+
# Global permissions:
28+
permissions:
29+
# Allow read-only access to the repository contents:
30+
contents: read
31+
2732
# Workflow jobs:
2833
jobs:
2934
respond:

.github/workflows/discussion_comment_bot_response.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
discussion_comment:
2525
types: [created]
2626

27+
# Global permissions:
28+
permissions:
29+
# Allow read-only access to the repository contents:
30+
contents: read
31+
2732
# Workflow jobs:
2833
jobs:
2934
respond:

0 commit comments

Comments
 (0)