-
Notifications
You must be signed in to change notification settings - Fork 23
Create scorecard.yml #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create scorecard.yml #199
Conversation
WalkthroughA new GitHub Actions workflow file, Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #199 +/- ##
=========================================
Coverage 34.58% 34.58%
Complexity 1043 1043
=========================================
Files 185 185
Lines 6980 6980
Branches 790 790
=========================================
Hits 2414 2414
Misses 4463 4463
Partials 103 103 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🔭 Outside diff range comments (1)
.github/workflows/scorecard.yml (1)
73-79: Upgrade SARIF upload to CodeQL v3 and pin to a fixed commit SHAPin the
upload-sarifstep to the v3.29.8 commit for stronger supply-chain guarantees:• File: .github/workflows/scorecard.yml (lines 73–79)
- name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@7273f08caa1dcf2c2837f362f1982de0ab4dc344 # v2.22.3 + uses: github/codeql-action/upload-sarif@46e53ea9b4aaece2ca70cd810d8e14b38b876f6f # v3.29.8 with: sarif_file: results.sarifThis switches you onto the current v3 series and pins to commit 46e53ea9b4aaece2ca70cd810d8e14b38b876f6f.
🧹 Nitpick comments (2)
.github/workflows/scorecard.yml (2)
17-23: Add workflow-level concurrency and a job timeout to avoid overlaps and hangsPrevent overlapping scheduled runs and ensure jobs don’t hang indefinitely.
permissions: read-all + +# Prevent overlapping runs of this workflow across refs +concurrency: + group: scorecard-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analysis: name: Scorecard analysis runs-on: ubuntu-latest + timeout-minutes: 15
41-46: Make uploads resilient by gating on analysis outcome; add step idEnsure artifacts and code scanning uploads still run appropriately and only when results exist.
- - name: "Run analysis" + - name: "Run analysis" + id: scorecard uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1 with: results_file: results.sarif results_format: sarif ... - name: "Upload artifact" + if: ${{ always() && steps.scorecard.outcome == 'success' }} uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 with: name: SARIF file path: results.sarif retention-days: 5 - name: "Upload to code-scanning" + if: ${{ always() && steps.scorecard.outcome == 'success' }} uses: github/codeql-action/upload-sarif@7273f08caa1dcf2c2837f362f1982de0ab4dc344 #v2.22.3 with: sarif_file: results.sarifAlso applies to: 64-79
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/scorecard.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: Test and Build OpenFGA (17)
- GitHub Check: Test and Build OpenFGA (21)
- GitHub Check: Test and Build OpenFGA (11)
- GitHub Check: Analyze (java)
- GitHub Check: Test and Build OpenFGA (11)
🔇 Additional comments (2)
.github/workflows/scorecard.yml (2)
35-46: Good: third-party actions are pinned by commit SHA and checkout is hardened
- Pinned SHAs for actions/checkout and ossf/scorecard-action are spot on.
persist-credentials: falseis a good hardening measure.
14-15: Default branch verified as “main”
The repository’s default branch is confirmed to bemain. No updates to the workflow are needed.
Description
What problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
mainSummary by CodeRabbit