fix(ci): check_dependencies - remove check_auth run#23
fix(ci): check_dependencies - remove check_auth run#23BenjaminLangenakenSF merged 3 commits intomainfrom
Conversation
silverfin-cli now requires API credentials at startup (including -V). Caller repos should use secrets: inherit when calling this workflow. Made-with: Cursor
WalkthroughRemoved the dedicated "Setup Node and Silverfin CLI" step from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/check_dependencies.yml:
- Around line 26-29: The SF_API_CLIENT_ID and SF_API_SECRET are currently set at
job scope (env block) and thus exposed to all steps; move these two secrets from
the job-level env to the specific step-level env entries for the two CLI steps
that actually need them (the steps that run your CLI commands), leaving other
steps (e.g., actions/checkout, actions/github-script) without those secrets;
update the two CLI step definitions to include env: SF_API_CLIENT_ID: ${{
secrets.SF_API_CLIENT_ID }} and SF_API_SECRET: ${{ secrets.SF_API_SECRET }} and
remove them from the job env block.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 485319f7-0bec-4223-b6a5-09241f2fead4
📒 Files selected for processing (1)
.github/workflows/check_dependencies.yml
Drop the unnecessary execution from setup and keep only installation before running check-dependencies. Made-with: Cursor
Remove the separate setup step; npm install must still run before cli.js. Made-with: Cursor
Summary
The Check dependencies reusable workflow failed during setup because it ran
silverfin-cli -Vafternpm install. That invocation triggers the CLI’s credential check, even thoughcheck-dependenciesonly scans local Liquid test YAML and does not need Silverfin API access for that work.This PR removes the unnecessary
cli.js -Vcall and keeps setup as install only, before runningcheck-dependenciesper handle.Changes
node ./node_modules/silverfin-cli/bin/cli.js -Vfrom the “Setup Node and Silverfin CLI” step.check_auth/ token refresh in this workflow).Notes
SF_API_CLIENT_ID/SF_API_SECRETinto this workflow solely to satisfy a redundant version check.silverfin-cli check-dependenciesitself enforces credentials at runtime in the future, that would be a separate CLI/product concern; this change only removes the extra step that caused the failure you observed.