diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-10-19 13:37:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-19 13:37:05 +0200 |
| commit | 86ae1a3b6c5e881d9e81a92918a6e0c9a7f097b8 (patch) | |
| tree | 73f5a00f32d11545ccff9603fa00c1ce4c45ab2a /.github | |
| parent | 3b255d72cf73e89ac1dc94d74467e5e4c487f5f2 (diff) | |
Fixed permissions for GitHub action with screenshots.
Follow up to 97b7970c6479ef414175f22a009240ed0df8ce46.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/screenshots.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index 2b4c4150b7..c70395efad 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -1,7 +1,7 @@ name: Visual Regression Tests on: - pull_request: + pull_request_target: types: [labeled, synchronize, opened, reopened] paths-ignore: - 'docs/**' @@ -58,6 +58,7 @@ jobs: if: steps.find-comment.outputs.comment-id == '' uses: peter-evans/create-or-update-comment@v3 with: + token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.pull_request.number }} body: | 🖼️ **Screenshots created** @@ -72,6 +73,7 @@ jobs: if: steps.find-comment.outputs.comment-id != '' uses: peter-evans/create-or-update-comment@v3 with: + token: ${{ secrets.GITHUB_TOKEN }} comment-id: ${{ steps.find-comment.outputs.comment-id }} body: | - Generated screenshots for ${{ github.event.pull_request.head.sha }} at ${{ steps.generate-screenshots.outputs.date }} ([download](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})). |
