Skip to content

Enhance Dependabot config for multiple ecosystems#20

Merged
simongdavies merged 1 commit intomainfrom
simongdavies-patch-1
Apr 8, 2026
Merged

Enhance Dependabot config for multiple ecosystems#20
simongdavies merged 1 commit intomainfrom
simongdavies-patch-1

Conversation

@simongdavies
Copy link
Copy Markdown
Member

Updated Dependabot configuration to include GitHub Actions, Cargo, and NPM with daily update schedules.

Updated Dependabot configuration to include GitHub Actions, Cargo, and NPM with daily update schedules.
Copilot AI review requested due to automatic review settings April 8, 2026 21:20
@simongdavies simongdavies merged commit a8b5ccc into main Apr 8, 2026
12 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Dependabot configuration intended to enable daily dependency update PRs across multiple ecosystems in this repo.

Changes:

  • Introduces .github/dependabot.yml with update entries for GitHub Actions, Cargo, and npm.
  • Configures daily schedules (03:00) for each ecosystem.

Comment thread .github/dependabot.yml
Comment on lines +14 to +18
directories:
- "/"
schedule:
interval: "daily"
time: "03:00"
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Cargo update config points to the repo root ("/") but this repository’s Cargo workspaces live under src/code-validator/guest/ and src/sandbox/runtime/; there is no Cargo.toml at "/". Dependabot will fail to run for Cargo unless the directory is updated to the actual workspace roots (and typically each workspace root is a separate update entry).

Suggested change
directories:
- "/"
schedule:
interval: "daily"
time: "03:00"
directory: "/src/code-validator/guest"
schedule:
interval: "daily"
time: "03:00"
- package-ecosystem: "cargo"
directory: "/src/sandbox/runtime"
schedule:
interval: "daily"
time: "03:00"

Copilot uses AI. Check for mistakes.
Comment thread .github/dependabot.yml
Comment on lines +14 to +15
directories:
- "/"
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Cargo entry uses directories: (plural) while other entries use directory:. Dependabot’s v2 config uses directory per update; if you need to cover multiple Cargo workspaces, add multiple - package-ecosystem: cargo entries (one per workspace root) instead of directories to avoid the key being ignored / config validation failing.

Suggested change
directories:
- "/"
directory: "/"

Copilot uses AI. Check for mistakes.
Comment thread .github/dependabot.yml
interval: "daily"
time: "03:00"
- package-ecosystem: "npm"
directory: "/src/js-host-api"
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The npm update config points to directory: "/src/js-host-api", but there is no src/js-host-api directory in this repo (the root npm manifest is at /package.json, and @hyperlight/js-host-api is referenced as a file:deps/js-host-api dependency). This directory should be updated to the actual location(s) of package.json you want Dependabot to manage (e.g. / and possibly /src/code-validator/guest).

Suggested change
directory: "/src/js-host-api"
directory: "/"

Copilot uses AI. Check for mistakes.
Comment thread .github/dependabot.yml
Comment on lines +7 to +14
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "03:00"
- package-ecosystem: "cargo"
directories:
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are trailing spaces after the updates: and directories: keys. YAML will still parse, but trimming avoids noise in future diffs and satisfies whitespace-focused linters/editors.

Suggested change
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "03:00"
- package-ecosystem: "cargo"
directories:
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: "03:00"
- package-ecosystem: "cargo"
directories:

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants