diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 9bbc7a29..ca9b9a9b 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -65,6 +65,8 @@ jobs: - name: Find Comment id: fc + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | COMMENT_ID=$(dart pub global run firehose:comment find --issue ${{ github.event.number }} --author github-actions[bot] --body-includes "## Ecosystem testing") echo "comment-id=$COMMENT_ID" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index c14c15c5..016f3785 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -180,6 +180,8 @@ jobs: run: dart pub global activate --source git https://github.com/dart-lang/ecosystem --git-path pkgs/firehose/ - name: Find Comment id: fc + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | COMMENT_ID=$(dart pub global run firehose:comment find --issue ${{ github.event.number }} --author github-actions[bot] --body-includes "## PR Health") echo "comment-id=$COMMENT_ID" >> "$GITHUB_OUTPUT" @@ -332,6 +334,8 @@ jobs: - name: Find Comment id: fc + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | COMMENT_ID=$(dart pub global run firehose:comment find --issue ${{ github.event.number }} --author github-actions[bot] --body-includes "## PR Health") echo "comment-id=$COMMENT_ID" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2c7913be..31569aa5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -186,10 +186,14 @@ jobs: - name: Create comment if: ${{ (hashFiles('output/comment.md') != '') && inputs.write-comments && (steps.comment-id.outputs.comment == '') }} continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: dart pub global run firehose:comment create-or-update --issue ${{ github.event.number }} --body-path output/comment.md - name: Update comment if: ${{ (hashFiles('output/comment.md') != '') && inputs.write-comments && (steps.comment-id.outputs.comment != '') }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: dart pub global run firehose:comment create-or-update --comment-id ${{ steps.comment-id.outputs.comment }} --body-path output/comment.md - name: Save PR number