Skip to content

Commit 213d929

Browse files
committed
fix: permissions and discussion secret names in reusables workflow
Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent bc45d2c commit 213d929

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ jobs:
132132
permissions:
133133
discussions: write
134134
env:
135-
DISCUSSION_REPOSITORY_ID: ${{ secrets.release-discussion-repository-id }}
136-
DISCUSSION_CATEGORY_ID: ${{ secrets.release-discussion-category-id }}
135+
DISCUSSION_REPOSITORY_ID: ${{ secrets.discussion-repository-id }}
136+
DISCUSSION_CATEGORY_ID: ${{ secrets.discussion-category-id }}
137137
steps:
138138
- name: Check for Discussion Repository ID
139139
if: ${{ env.DISCUSSION_REPOSITORY_ID == '' }}

.github/workflows/test-auto-labeler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ permissions:
88
contents: read
99
jobs:
1010
auto_labeler:
11+
permissions:
12+
contents: write
13+
pull-requests: write
1114
uses: ./.github/workflows/auto-labeler.yaml
1215
with:
1316
config-name: release-drafter.yaml

.github/workflows/test-labeler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ permissions:
77
contents: read
88
jobs:
99
labeler:
10+
permissions:
11+
contents: read
12+
pull-requests: write
1013
uses: ./.github/workflows/labeler.yaml
1114
secrets:
1215
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-pr-title.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ permissions:
88
contents: read
99
jobs:
1010
lint_pr_title:
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
statuses: write
1115
uses: ./.github/workflows/test-pr-title.yaml
1216
secrets:
1317
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)