Skip to content

Commit ca8f7ff

Browse files
ci: fix gh-cli token propagation (#894)
1 parent 692e41e commit ca8f7ff

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/bug-report-response.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
bug-report-response:
1414
if: github.event.label.name == 'bug' && github.event.issue.state == 'open'
1515
uses: ./.github/workflows/issue-comment.yml
16+
secrets:
17+
token: ${{ secrets.ISSUE_BOT_TOKEN }}
1618
with:
1719
issue-number: ${{ github.event.issue.number }}
1820
message: >

.github/workflows/issue-comment.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ on:
1313
message:
1414
type: string
1515
required: true
16+
secrets:
17+
token:
18+
required: true
1619

1720
jobs:
1821
post-comment:
1922
runs-on: ubuntu-latest
2023
env:
21-
GH_TOKEN: ${{ secrets.ISSUE_BOT_TOKEN }}
24+
GH_TOKEN: ${{ secrets.token }}
2225
steps:
2326
- name: respond to issue
2427
run: |

.github/workflows/issue-support-label.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
support-response:
1414
if: github.event.label.name == 'support' && github.event.issue.state == 'open'
1515
uses: ./.github/workflows/issue-comment.yml
16+
secrets:
17+
token: ${{ secrets.ISSUE_BOT_TOKEN }}
1618
with:
1719
issue-number: ${{ github.event.issue.number }}
1820
message: >

0 commit comments

Comments
 (0)