From 377ebfe74657376e69b6b78dc419ac8a7860d237 Mon Sep 17 00:00:00 2001 From: "Michael H." Date: Sun, 16 Aug 2026 23:03:01 +0200 Subject: [PATCH] fix: remove modrinth-bot from commentss --- .github/workflows/changelog-comment.yml | 4 +++- .github/workflows/frontend-preview.yml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog-comment.yml b/.github/workflows/changelog-comment.yml index c59d96bdac..238ab9be79 100644 --- a/.github/workflows/changelog-comment.yml +++ b/.github/workflows/changelog-comment.yml @@ -14,12 +14,14 @@ jobs: comment: name: Post changelog comment runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Post or update changelog comment uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: - github-token: ${{ secrets.CROWDIN_GH_TOKEN }} + github-token: ${{ github.token }} script: | const marker = ''; const mergedMarker = ''; diff --git a/.github/workflows/frontend-preview.yml b/.github/workflows/frontend-preview.yml index 355045e435..df17e1786c 100644 --- a/.github/workflows/frontend-preview.yml +++ b/.github/workflows/frontend-preview.yml @@ -118,6 +118,8 @@ jobs: && needs.deploy.result == 'success' runs-on: ubuntu-latest needs: [metadata, deploy, deploy-storybook] + permissions: + pull-requests: write steps: - name: Download deployment URLs uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 @@ -158,7 +160,7 @@ jobs: uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0 id: fc with: - token: ${{ secrets.CROWDIN_GH_TOKEN }} + token: ${{ github.token }} issue-number: ${{ github.event.pull_request.number }} body-includes: Frontend previews @@ -166,7 +168,7 @@ jobs: if: github.event_name == 'pull_request' uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0 with: - token: ${{ secrets.CROWDIN_GH_TOKEN }} + token: ${{ github.token }} issue-number: ${{ github.event.pull_request.number }} comment-id: ${{ steps.fc.outputs.comment-id }} body: |