Repository navigation
chore(security): add OpenSSF Scorecard workflow - #1090
nirmal-joishi-a0 wants to merge 1 commit into
Conversation
|
@auth0/project-dx-sdks-engineer-codeowner please review the files in the PR. This automated security-hardening workflow is untested in this repo — before merging, confirm it triggers and passes (and is not silently ignoring failures); do not merge on a green result alone. |
|
An internal service ticket has been filed for the owning team to review and merge this PR. |
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
| push: | ||
| branches: ['main'] | ||
| pull_request: | ||
| branches: ['main'] # EXPERIMENTAL per OSSF: smoke test only, not an authoritative result |
There was a problem hiding this comment.
What exactly is the trigger we are targeting here. since we don't directly push to main all changes are merged via PRs to main. This trigger will run the check two times.
Is this also expected to run for external PRs?
There was a problem hiding this comment.
The exact trigger that openssf scorecard mainly works on as of now is a push to default branch and a cron schedule, hence we are targeting those. As mentioned in the comment, the PR trigger is experimental and is used mainly for smoke testing this workflow before merging, you can remove it once you verify this works pre or post merge. We don't expect this workflow to run for every PR including external, that is a decision for you and your team.
✏️ 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).🟠 Declining this workflow
This is an organization-enforced security-hardening workflow, so closing this PR is not enough — the tool treats a plain close as a discard and opens a fresh replacement PR on its next run.
To permanently decline this category, a maintainer must close this PR and add one of these labels to it:
remediation: not-requiredremediation: not-applicableApplying a label requires write, triage, or admin access, so the label is a trusted maintainer signal. Once a closed PR carries one of these labels, the tool respects the decline and will not reopen a replacement.
🔮 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
🚀 Deployment
🔥 Rollback
Reverting this PR removes the added workflow file — no further action required.
Summary by CodeRabbit