chore: oss-hygiene — dependabot + dep-review + scorecard, harden workflow permissions#95
Merged
jahala merged 1 commit intoMay 16, 2026
Conversation
Add three supply-chain hygiene workflows and tighten GITHUB_TOKEN permissions on existing workflows. All free for public repos. New: - .github/dependabot.yml — weekly version updates for cargo, npm, github-actions - .github/workflows/dependency-review.yml — block PRs that introduce vulnerable or disallowed-license deps (free on public repos) - .github/workflows/scorecard.yml — OpenSSF Scorecard analysis and badge publication Hardened: - ci.yml — add top-level `permissions: contents: read` (least privilege) - release.yml — drop top-level `contents: write`; scope it to the `build` job that actually needs it for softprops/action-gh-release. Publish jobs use CARGO_REGISTRY_TOKEN / NPM_TOKEN secrets and don't need any GITHUB_TOKEN write scope. Generated via the /oss-hygiene skill from skillz-that-grillz.
This was referenced May 16, 2026
Owner
|
Thank you so much, again, @paulnsorensen for contributing this! As I've mentioned, I'm not really a developer - so these things you are helping improve now, are things I'm completely blank about. Thank you! 🙏🏻 Much appreciated |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the free supply-chain and workflow-hardening gaps surfaced by an
/oss-hygieneaudit. No paid GitHub features required — everything here is free for public repos.Added
.github/dependabot.yml— weekly version updates for the three ecosystems present in this repo:cargo(rootCargo.toml)npm(npm/package.json— the install wrapper)github-actions(keeps action versions current, with minor/patch grouping)benchmark/is skipped — it's the evaluation harness, no top-level manifest..github/workflows/dependency-review.yml— fails PRs that introduce moderate-or-worse vulnerable deps or disallowed licenses. Free on public repos..github/workflows/scorecard.yml— publishes OpenSSF Scorecard SARIF + badge data. Runs on push tomainand weekly.CodeQL is not added: Rust isn't supported by
actions/codeql-action, and thenpm/surface is just a binary-download proxy — signal would be near-zero.Hardened
Per OSSF Scorecard's
Token-Permissionscheck:ci.yml— adds top-levelpermissions: { contents: read }. The workflow only reads; no reason to inherit write defaults.release.yml— top-levelcontents: writeis too broad. Tightened tocontents: readand the write scope moved to only thebuildjob, which actually needs it forsoftprops/action-gh-release.version-check,publish-crate, andpublish-npminherit read-only — the publish jobs useCARGO_REGISTRY_TOKEN/NPM_TOKENsecrets, notGITHUB_TOKEN, so this is safe.Dangerous-Workflowaudit: clean. Neither workflow usespull_request_target.Follow-ups (filed as separate issues)
Test plan
cargo fmt / clippy / testjob, now withcontents: read).dependency-reviewjob runs on this PR and passes (no new deps were introduced).scorecard.ymlruns onmainand uploads SARIF without error.cargo/npm/actionsdeps within ~24h.🧀 Generated via the
/oss-hygieneskill fromskillz-that-grillz.