Skip to content

fix(ci): skip staging deploy and team sync on forks - #2270

Merged
alanpeixinho merged 2 commits into
kernelci:mainfrom
profusion:fix/1550/skip-deploy-on-forks
Dec 4, 2026
Merged

alanpeixinho merged 2 commits into
kernelci:mainfrom
profusion:fix/1550/skip-deploy-on-forks

Conversation

@alanpeixinho

@alanpeixinho alanpeixinho commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1550.

What it is

call-deploy-staging and the dashboard team sync job run only when github.repository is kernelci/dashboard. A fork that pushes to its own main skips both jobs. Those jobs need the staging SSH key and the org admin token, which a fork does not have. Image publishing already uses this check.

How to test

This branch was pushed to profusion/dashboard main (50b6494f2).

  • CI run succeeded, and call-deploy-staging was skipped. The previous push to that main failed in deploy-staging.
  • Sync run skipped the sync job.

After merge, the next push to kernelci/dashboard main should still run call-deploy-staging.

Made with Cursor

Summary by CodeRabbit

  • Chores
    • Staging deployment automation runs only for pushes to the dashboard repository’s default branch.
    • Team synchronization automation runs only for pushes to the dashboard repository; pushes from other repositories do not trigger it.
    • These workflow conditions now distinguish between staging deployments, which require a push to the default branch, and team synchronization, which requires a push to the dashboard repository.

Forks have no staging SSH key or org admin token, so those jobs
fail on every push to main.

Closes kernelci#1550

Assisted-by: Grok 4.7
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Workflow job conditions

Layer / File(s) Summary
Restrict jobs to the original repository
.github/workflows/ci.yaml, .github/workflows/sync-dashboard-team.yaml
The staging deployment job now requires a push to the default branch in kernelci/dashboard. The team synchronization job now requires a push in kernelci/dashboard.

Suggested reviewers: nuclearcat

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · up to da8a3

This change makes the staging deployment and team sync jobs skip on forks, where they lack credentials. Runs on the original repository behave as before. No merge-blocking risk remains.

Architecture risk: Low · up to 50b64

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed areas: None identified.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b7abb5cd-e179-4a9d-b851-e459069042e5
Commits

Reviewing files that changed from the base of the PR and between 50b6494 and da8a3ef.

Files selected for processing: 1

  • .github/workflows/ci.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread .github/workflows/ci.yaml
# Call job in a a split file
call-deploy-staging:
needs: [pre-commit-checks, build-front, unit-test-django, integration-test-django]
# This 'if' ensures it only runs on pushes to main (the production requirement)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd keep the comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put it back in da8a3ef.

Keep the comment that explains the staging deploy condition.

Assisted-by: Grok 4.7
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho
alanpeixinho added this pull request to the merge queue Dec 4, 2026
Merged via the queue into kernelci:main with commit 7ae69fd Dec 4, 2026
10 checks passed
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.

Run deployments only on original repository

2 participants