Skip to content

Routine dependency hygiene: Dependabot coverage, action majors, pins, templates #62

Open

Description

@TMHSDigital

Summary

Routine dependency hygiene items: Dependabot covers only GitHub Actions, two action majors are behind, the docs build installs an unpinned mkdocs-material, the NUI templates start new projects on older majors, the JS template uses "latest" typings, and six framework templates include oxmysql without declaring it.

Where

  • .github/dependabot.yml:1-6
  • .github/workflows/deploy-docs.yml:24, 29, 43, .github/workflows/validate.yml:240, .github/workflows/update-natives.yml:18, .github/workflows/update-docs-index.yml:18, .github/workflows/stale.yml:17
  • templates/nui-vite/web/package.json:17-19, templates/nui-svelte/web/package.json:15-16
  • templates/javascript/package.json:7-8
  • templates/{esx,qbcore,qbox,oxcore,rsg,vorp}/fxmanifest.lua:19

Details

  • Dependabot coverage. Only package-ecosystem: "github-actions" is configured. There is no pip entry for /mcp-server and no npm entries for templates/nui-vite/web, templates/nui-svelte/web or templates/javascript. The nui-svelte peer conflict tracked in "nui-svelte fails npm install: vite-plugin-svelte 4 needs vite 5, pins vite 6" would likely have been surfaced.
  • Action majors. actions/setup-python@v6 (4 workflows) has a v7 major available; actions/stale@v10 has v11. If Dependabot PRs for these exist, check why they were not merged.
  • mkdocs-material unpinned. deploy-docs.yml:29 runs pip install mkdocs-material with no version and builds with mkdocs build --strict, so any upstream release can break the deploy with no repo change. Its base package mkdocs has had no release since 2024-08.
  • NUI templates behind. Both templates use vite ^6.0.0, typescript ^5.7.0, and nui-vite @vitejs/plugin-react ^4.4.0, two majors behind current releases. This is staleness, not a known vulnerability.
  • "latest" typings. @citizenfx/client and @citizenfx/server are "latest", so different users get different typings.
  • Undeclared oxmysql. Six framework manifests list '@oxmysql/lib/MySQL.lua' in server_scripts but declare only the framework dependency, and no template server file uses MySQL. On a server without oxmysql the resource fails to load, and start order is not guaranteed.

Impact

No automated alerts for Python or template dependency issues, a docs deploy that can break on any upstream release, and new resources that start on outdated tooling or carry an unused hard database dependency.

Suggested fix

  • Add pip (/mcp-server, weekly) and optionally npm entries for each template web/ directory with versioning-strategy: increase.
  • Bump actions/setup-python to v7 and actions/stale to v11 (or SHA-pin them per "Pin workflow actions to commit SHAs and narrow release write scope").
  • Pin docs dependencies (for example mkdocs-material==9.8.* in docs/requirements.txt) and let Dependabot track them.
  • Migrate both NUI templates to current vite with matching plugin majors in one change, verifying npm run build.
  • Replace "latest" with a caret range on the current @citizenfx/* version.
  • Either remove the oxmysql include from the six templates or add oxmysql to their dependencies with a comment that it is only needed for DB access.

Acceptance criteria

  • Dependabot covers pip (and optionally npm) manifests.
  • Workflows use current action majors.
  • The docs build installs pinned versions.
  • Template package versions are explicit ranges and both NUI templates build.
  • No template includes a resource file it does not declare as a dependency.

Getting started

  • Relevant files: .github/dependabot.yml, .github/workflows/*.yml, templates/*/package.json, templates/*/web/package.json, templates/*/fxmanifest.lua
  • How to run checks: there is no test suite yet; run the MCP server with cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in .github/workflows/validate.yml
  • Related docs: GitHub Dependabot configuration reference

Filed by repo-audit/full-audit at 701824d. Severity: low. Effort: S. audit-key: dependencies|.github/dependabot.yml|routine

Activity

  1. added
    dependencies
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Partially fixed in e061709.

    Dependabot now covers pip (/mcp-server) and npm (templates/javascript, nui-vite/web, nui-svelte/web); mkdocs-material is pinned to >=9.8.2,<10; the "latest" @citizenfx typings are pinned to ^2.0.38781-1 in the JS template and scaffold output.

    Verified: Config files parse; npm install of the JS template succeeds; tests pass.

    Remaining: action major bumps (setup-python v7, stale v11) and NUI template major upgrades are left for the Dependabot PRs this enables, and the undeclared @oxmysql/lib/MySQL.lua include in framework templates still needs a decision (declare dependency 'oxmysql' or drop the include), so this issue stays open.

  3. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Update: at the maintainer's request Dependabot has been turned off (082fed1 removes .github/dependabot.yml) and its open PRs were closed. The "Dependabot coverage" item is therefore withdrawn rather than fixed; action and template upgrades will be done by hand. The mkdocs-material pin and the @citizenfx typings pins from c5c34eb/e061709 remain. Still open here: action major bumps (setup-python v7, stale v11), NUI template major upgrades, and the undeclared oxmysql include in framework templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions