Skip to content

ci(github-actions): split replay tests into workflow_run to fix secrets access on external PRs#173

Merged
fbraz3 merged 5 commits into
mainfrom
fix-ci-workflow-run
Jun 21, 2026
Merged

ci(github-actions): split replay tests into workflow_run to fix secrets access on external PRs#173
fbraz3 merged 5 commits into
mainfrom
fix-ci-workflow-run

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Description

Fixes the issue where external pull requests fail on the replay tests step due to missing ASSETS_KEY secret.

Changes

  • Removed replay tests from ci.yml
  • Added ci-replays.yml which triggers on workflow_run after ci.yml completes. This runs in the base repository context and has access to secrets.
  • Updated replay-tests.yml to accept an optional run-id to download artifacts from the triggering build instead of its own run.
  • Added a GitHub API step to post the final commit status back to the PR to keep the checks visible in the UI.

@fbraz3 fbraz3 force-pushed the fix-ci-workflow-run branch from 99ab94d to 1420a1e Compare June 21, 2026 03:31
…ts access on external PRs

External PRs (from forks) do not have access to repository secrets like ASSETS_KEY for security reasons. This causes replay tests to fail when attempting to extract game assets. We've split the CI pipeline so that ci.yml handles the build, and ci-replays.yml (triggered via workflow_run) handles the replay tests with secure access to secrets.
@fbraz3 fbraz3 force-pushed the fix-ci-workflow-run branch from 1420a1e to 78ddbb1 Compare June 21, 2026 03:34
@fbraz3 fbraz3 force-pushed the fix-ci-workflow-run branch from 7e977b3 to 3af504c Compare June 21, 2026 03:40
@fbraz3 fbraz3 merged commit 63ff809 into main Jun 21, 2026
8 checks passed
@fbraz3 fbraz3 deleted the fix-ci-workflow-run branch June 21, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant