From 05c118782fbbd43de1ddd0e92ff00678579f2626 Mon Sep 17 00:00:00 2001 From: Pavel <87060818+Pavel-Tyan@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:26:29 +0300 Subject: [PATCH] chore: change secrets in test report CI (#337) --- .github/workflows/pr-visual-tests-report.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.'