Skip to content

Commit 47bec2e

Browse files
authored
Merge pull request #152 from kubestellar/fix/all-workflow-permissions
🐛 Fix all caller workflow permissions
2 parents c563e0d + c60c196 commit 47bec2e

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.github/workflows/add-help-wanted.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: Add Help Wanted Label
22

33
on:
44
issues:
5-
types: [opened]
5+
types: [labeled]
6+
7+
permissions:
8+
issues: write
69

710
jobs:
8-
add-label:
11+
label:
912
uses: kubestellar/infra/.github/workflows/reusable-add-help-wanted.yml@main
1013
secrets: inherit

.github/workflows/assignment-helper.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
issue_comment:
55
types: [created]
66

7+
permissions:
8+
issues: write
9+
710
jobs:
811
assignment-helper:
912
uses: kubestellar/infra/.github/workflows/reusable-assignment-helper.yml@main

.github/workflows/pr-verifier.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
name: pr-verifier
1+
name: PR Verifier
22

33
on:
44
pull_request_target:
5-
types: [opened, edited, reopened, synchronize]
5+
types: [opened, edited, synchronize, reopened]
6+
7+
permissions:
8+
checks: write
9+
pull-requests: read
610

711
jobs:
812
verify:

.github/workflows/scorecard.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches: [ "main" ]
99
workflow_dispatch:
1010

11+
permissions:
12+
security-events: write
13+
contents: read
14+
actions: read
15+
1116
jobs:
1217
analysis:
1318
uses: kubestellar/infra/.github/workflows/reusable-scorecard.yml@main

0 commit comments

Comments
 (0)