diff --git a/.github/workflows/pr-visual-tests-report.yml b/.github/workflows/pr-visual-tests-report.yml index d32f328d..ade5b3c1 100644 --- a/.github/workflows/pr-visual-tests-report.yml +++ b/.github/workflows/pr-visual-tests-report.yml @@ -15,7 +15,7 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} - name: Extract PR Number id: pr @@ -23,8 +23,8 @@ jobs: shell: bash - name: Upload to S3 env: - AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_KEY_ID }} + AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} AWS_DEFAULT_REGION: ru-central1 AWS_EC2_METADATA_DISABLED: true run: aws s3 cp playwright-report s3://diplodoc-playwright-reports/components/test-report/${{ steps.pr.outputs.id}}/ --endpoint-url=https://storage.yandexcloud.net --recursive @@ -32,7 +32,7 @@ jobs: - name: Create Comment uses: marocchino/sticky-pull-request-comment@v2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }} number: ${{ steps.pr.outputs.id }} header: visual tests report message: '[Visual Tests Report](https://storage.yandexcloud.net/diplodoc-playwright-reports/components/test-report/${{ steps.pr.outputs.id }}/index.html) is ready.'