Repository navigation
feat: add copilot-setup-steps.yml for Copilot cloud agent - #301
Conversation
Pre-installs Node.js 20 dependencies via npm ci before each Copilot cloud agent session. Ensures the agent has all GAS/TypeScript/Jest deps pre-cached for faster and more reliable sessions. Stack: Node.js 20 / npm (Google Apps Script, TypeScript, Jest) Template source: petry-projects/.github/standards/workflows/copilot-setup-steps.yml Standard: ci-standards.md §11 Copilot Cloud Agent Setup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…teps.yml - Fork guard: replace github.event.repository.fork (reflects base repo, always false for org repos) with github.event_name != 'pull_request' || head.repo.fork == false so external fork PRs are skipped while direct pushes and manual runs still run - Verify step: guard find .github/instructions with [ -d ] check to prevent pipefail abort when the directory is absent Addresses review comments on combsmith/.github#328 (Codex P1 and P2). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Avoid executing package lifecycle scripts during Copilot environment setup, matching SonarCloud recommendation for workflow hardening. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update lockfile-resolved transitive dependencies from npm audit fix to address: - fast-uri host confusion vulnerability - brace-expansion DoS vulnerability Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Apply prettier formatting to copilot-setup-steps workflow so autofix job no longer needs to commit workflow-file changes (which are blocked for app token without workflows:write) - Keep npm audit lockfile remediations for fast-uri and brace-expansion vulnerabilities Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|



Summary
Adds
.github/workflows/copilot-setup-steps.ymlto pre-install Node.js dependencies before each Copilot cloud agent session.Why this matters
Without this file, Copilot discovers and installs dependencies itself via trial and error — slow, non-deterministic, and impossible for repos with private packages. Pre-installing with
npm ciensures the agent always starts with exact, cached dependencies matching CI.The verify step fails the job if
AGENTS.mdis missing — catching a misconfigured repo before the agent begins work.Stack
Node.js 20 / npm — Google Apps Script, TypeScript, Jest, Playwright.
Steps:
actions/checkout(SHA-pinned)actions/setup-node@v4with Node 20 + npm cachenpm ciStandard
petry-projects/.github/standards/workflows/copilot-setup-steps.yml