Skip to content

Commit 4653540

Browse files
committed
ci(label-actions): actions can't directly access secrets
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
1 parent 7cbdb80 commit 4653540

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/actions/add-labels/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: adds label(s) to labelable
33
inputs:
44
gh_token:
55
description: gh api access token to use
6-
default: ${{ secrets.GITHUB_TOKEN }}
6+
required: true
77
repository:
88
description: the OWNER/REPOSITORY to operate on
99
default: ${{ github.repository }}

.github/actions/delete-labels/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: delete Label(s)
33
inputs:
44
gh_token:
55
description: gh api access token to use
6-
default: ${{ secrets.GITHUB_TOKEN }}
6+
required: true
77
repository:
88
description: the OWNER/REPOSITORY to operate on
99
default: ${{ github.repository }}

.github/workflows/manual-add-label.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manual workflow to apply labels in bulk
1+
name: Apply labels in bulk
22

33
on:
44
workflow_dispatch:
@@ -38,6 +38,7 @@ jobs:
3838
- name: Run Label Action
3939
uses: ./.github/actions/add-labels
4040
with:
41+
gh_token: ${{ secrets.GITHUB_TOKEN }}
4142
issues: ${{ inputs.issues }}
4243
labels: ${{ inputs.labels }}
4344
colors: ${{ inputs.colors }}

.github/workflows/manual-delete-labels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: Manual workflow to delete labels in bulk
2+
name: Delete labels in bulk
33

44
on:
55
workflow_dispatch:
@@ -26,4 +26,5 @@ jobs:
2626
- name: Run Label Action
2727
uses: ./.github/actions/delete-labels
2828
with:
29+
gh_token: ${{ secrets.GITHUB_TOKEN }}
2930
labels: ${{ inputs.labels }}

0 commit comments

Comments
 (0)