From 9bbe00c84b73684b69933dc0ae91701ed316b4ab Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 23 Jul 2024 09:56:16 +0200 Subject: [PATCH] fix(ci): use a PAT for release-notes-assistant GITHUB_TOKEN does not have permission to write the repository and is not allowed to edit or comment on pull requests because of that. A PAT from a regular user who does **not** have permission to write to the repository either but who is in a the contributors team will have permissions to do that because there is a "write pull request" permission given to the team. --- .forgejo/workflows/release-notes-assistant.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/release-notes-assistant.yml b/.forgejo/workflows/release-notes-assistant.yml index 3b520cbad..98dd8dac2 100644 --- a/.forgejo/workflows/release-notes-assistant.yml +++ b/.forgejo/workflows/release-notes-assistant.yml @@ -28,4 +28,4 @@ jobs: - name: release-notes-assistant preview run: | - go run code.forgejo.org/forgejo/release-notes-assistant@1.0.0 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token $GITHUB_TOKEN preview ${{ github.event.pull_request.number }} + go run code.forgejo.org/forgejo/release-notes-assistant@v1.0.0 --config .release-notes-assistant.yaml --storage pr --storage-location ${{ github.event.pull_request.number }} --forgejo-url $GITHUB_SERVER_URL --repository $GITHUB_REPOSITORY --token ${{ secrets.RELEASE_NOTES_ASSISTANT_TOKEN }} preview ${{ github.event.pull_request.number }}