From c5843bee239c04cce98e1d59897b50fec31c9507 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 15 Feb 2025 20:07:41 +0530 Subject: [PATCH] chore: Update argos token We have added a check in e2e, to ensure events in forks will not trigger the visual tests. This will not protect against malicious users, but there is no other way to support PRs from forks. A proposal has been sent to Argos team to add a secure approach for public repos, fingers crossed. --- .github/workflows/e2e.yml | 2 +- cypress.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 7aa73a5db..b4f75a817 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -29,7 +29,7 @@ env: github.event.before }} RUN_VISUAL_TEST: >- - ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }} + ${{ github.repository == 'mermaid-js/mermaid' && (github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/')) }} jobs: cache: runs-on: ubuntu-latest diff --git a/cypress.config.ts b/cypress.config.ts index 253e4b7cc..d6f83fb20 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -27,7 +27,7 @@ export default eyesPlugin( if (config.env.useArgos) { registerArgosTask(on, config, { - token: 'fc3a35cf5200db928d65b2047861582d9444032b', + token: 'argos_cde7ec66b3c53730a7bbe4059a517f4a76', }); } else { addMatchImageSnapshotPlugin(on, config);