chore: add OpenSSF Scorecard workflow - #1254
nirmal-joishi-auth0 wants to merge 1 commit into
Conversation
|
@auth0/project-dx-sdks-engineer-codeowner please review the files in the PR and merge the PR if all is green. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: auth0/auth0-react/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughA new GitHub Actions workflow runs OpenSSF Scorecard on pushes to ChangesScorecard analysis workflow
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Trigger as Push or weekly schedule
participant Workflow as Scorecard workflow
participant Checkout as Checkout action
participant Scorecard as Scorecard action
participant Artifact as Workflow artifact storage
participant CodeScanning as Code Scanning
Trigger->>Workflow: Start workflow
Workflow->>Checkout: Check out repository
Workflow->>Scorecard: Run analysis
Scorecard-->>Workflow: Return results.sarif
Workflow->>Artifact: Upload results.sarif
Workflow->>CodeScanning: Upload SARIF results
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The workflow can be merged after normal checks; its optional artifact does not contradict the decision not to publish results to the public Scorecard API. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
✏️ Changes
This pull request adds a security hardening workflow. No functional changes are introduced.
OpenSSF Scorecard
This PR adds
.github/workflows/scorecard.yml. It callsossf/scorecard-actiondirectly (SHA-pinned to v2.4.3) — no composite action wrapper, no cross-org dependency. Results are uploaded to the Code Scanning dashboard viagithub/codeql-action/upload-sarif.Placeholders to fill in before merging
publish_results: falsetrueto publish results to the public Scorecard API and enable the badge — also requires uncommentingid-token: writein the job permissions. Leave asfalseto keep results private (theid-token: writeline can remain commented out).🔮 Type of Change
🔗 References
This change applies a standard automated security-scanning workflow as part of routine repository hardening.
📖 Documentation
No user-facing changes have been introduced.
🎯 Testing
This change adds a CI workflow only; validated by the workflow running on this PR.
🚀 Deployment
🔥 Rollback
Reverting this PR removes the added workflow file — no further action required.
Summary by CodeRabbit