Skip to content

Commit

Permalink
ci: fix gh-cli token propagation (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
bduranleau-nr authored May 10, 2024
1 parent 692e41e commit ca8f7ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/bug-report-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
bug-report-response:
if: github.event.label.name == 'bug' && github.event.issue.state == 'open'
uses: ./.github/workflows/issue-comment.yml
secrets:
token: ${{ secrets.ISSUE_BOT_TOKEN }}
with:
issue-number: ${{ github.event.issue.number }}
message: >
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ on:
message:
type: string
required: true
secrets:
token:
required: true

jobs:
post-comment:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.ISSUE_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.token }}
steps:
- name: respond to issue
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/issue-support-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
support-response:
if: github.event.label.name == 'support' && github.event.issue.state == 'open'
uses: ./.github/workflows/issue-comment.yml
secrets:
token: ${{ secrets.ISSUE_BOT_TOKEN }}
with:
issue-number: ${{ github.event.issue.number }}
message: >
Expand Down

0 comments on commit ca8f7ff

Please sign in to comment.