Repository navigation
Description
Summary
Dependabot opens version update pull requests, but vulnerability alerts are disabled for the repository, so an advisory in a transitive package is not surfaced.
Where
.github/dependabot.yml:3.github/dependabot.yml:7
Details
gh api repos/TMHSDigital/GH-Arcade/dependabot/alerts answers HTTP 403 "Dependabot alerts are disabled for this repository." .github/dependabot.yml configures version updates only: weekly npm and github-actions updates, grouped for minor and patch (lines 3-10, 19-25). Version updates bump the packages named in package.json; they do not raise advisories and do not refresh a transitive package whose parent did not change. The finding above is the live example: two advisories with fixes sit in the lockfile, the open weekly PR #148 leaves both in place, and nothing in the repo or CI runs npm audit (ci.yml:28-31 and deploy.yml:31-34 run npm ci, lint, test, build only). CONTRIBUTING.md:41 relies on "npm audit flags" for the glob override, which is a manual step.
Impact
A new advisory in Phaser (the one package shipped to players) or in the build chain (vite, workbox-build, vite-plugin-pwa, which write the deployed service worker) is noticed only if someone runs npm audit by hand. No alert, no security update PR.
Steps to reproduce
Run the gh api call above; or open the repository's Security tab and see Dependabot alerts off.
Suggested fix
In repository Settings > Advanced Security, turn on the dependency graph, Dependabot alerts and Dependabot security updates (the existing dependabot.yml groups then apply to security PRs too if a applies-to: security-updates group is added). Optionally add a non-blocking npm audit --audit-level=high step to ci.yml. This is a repository setting like the ones in open issue #61 (private vulnerability reporting, required CI check) and could be handled with it.
Related
Related: #61 (repository security settings).
Acceptance criteria
- Dependabot alerts are enabled in the repository settings
- Security updates are enabled or the choice not to is noted in SECURITY.md
Getting started
- Relevant files:
.github/dependabot.yml - How to run the checks:
npm run lint,npm test,npm run build - Related docs:
CONTRIBUTING.md
Filed by repo-audit/full-audit at 0391275. Severity: low. Effort: S. audit-key: dependencies|.github/dependabot.yml|dependabot-alerts
Activity