ci: add OpenSSF Scorecard workflow#71
Conversation
Add weekly Scorecard analysis that grades the repository on security practices. Results published to scorecard.dev and uploaded to the Security tab as code scanning alerts.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughA new GitHub Actions workflow ( Changes
Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub Actions
participant Repo as Repository
participant Scorecard as ossf/scorecard-action
participant CodeScan as GitHub Code Scanning API
participant Artifact as Actions Artifact Storage
GitHub->>Repo: trigger on push/main or schedule
GitHub->>Repo: checkout repository
GitHub->>Scorecard: run scorecard-action -> generate results.sarif
Scorecard-->>GitHub: provide SARIF (results.sarif)
GitHub->>CodeScan: upload SARIF via upload-sarif
GitHub->>Artifact: upload results.sarif as artifact (5-day retention)
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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/scorecard.yml:
- Around line 13-15: The job-level permissions block currently lists only
security-events and id-token but omits repository read access, causing
actions/checkout to fail; update the permissions block (the permissions: section
shown in the diff) to include contents: read alongside security-events: write
and id-token: write so actions/checkout can access repository files (i.e., add a
contents: read entry in the same permissions mapping).
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: db9ade25-4fd1-41d8-acd0-329dc8db5673
📒 Files selected for processing (1)
.github/workflows/scorecard.yml
Summary
Summary by CodeRabbit