ci: split pr quality gates for mobile and desktop #268
Reference in New Issue
Block a user
Delete Branch "fix-pr-quality-gates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
📝 Walkthrough
Walkthrough
The PR separates the PR quality gate workflows by platform: the desktop workflow is narrowed to desktop-only changes, and a new mobile-specific workflow is created to enforce the same lint and format checks for mobile code independently.
Changes
Platform-specific CI workflows
.github/workflows/pr-quality-gate-desktop.yml,.github/workflows/pr-quality-gate-mobile.ymljs/desktop/**changes with a singleverifyjob; new mobile workflow created to independently enforceyarn lintandyarn format:checkonjs/mobile/**changes, both using Node.js 20 with immutable dependency installation.Estimated code review effort
🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
fix-pr-quality-gatesComment
@coderabbitai helpto get the list of available commands and usage tips.Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
c764ac6d-9a10-4f74-8aa6-42ef51a52823📥 Commits
Reviewing files that changed from the base of the PR and between
95f2362947and05ce208a8a.📒 Files selected for processing (2)
.github/workflows/pr-quality-gate-desktop.yml.github/workflows/pr-quality-gate-mobile.yml@@ -0,0 +22,4 @@- name: Set up Node.jsuses: actions/setup-node@v4with:node-version: '20'⚠️ Potential issue | 🟠 Major
🧩 Analysis chain
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 103
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 104
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 103
🏁 Script executed:
Repository: flowy-live/llink
Length of output: 1941
Pin actions to commit SHAs and disable persisted checkout credentials in CI
.github/workflows/pr-quality-gate-mobile.ymluses mutable tag refs (actions/checkout@v4at line 20,actions/setup-node@v4at line 23) and the checkout step does not setpersist-credentials: false, increasing supply-chain and token exposure risk.Suggested hardening diff
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 19-20: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
[error] 20-20: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
[error] 23-23: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents
Source: Linters/SAST tools