CI: add Dependabot configuration for GitHub Actions and Cargo #549

Closed
pushkarreddyy wants to merge 2 commits from upstream-pr/549 into main
pushkarreddyy commented 2026-11-24 04:44:36 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:44:36Z.


Motivation

To keep the VIctory codebase secure, up-to-date, and free from vulnerable dependencies, automated dependency monitoring is essential.

Solution

  • Added .github/dependabot.yml.
  • Configured weekly automated checks for:
    • Cargo dependencies across the workspace.
    • GitHub Actions workflow actions.
  • Configured grouped updates to keep dependency PRs bundled and minimize repository noise.

No game files used.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6574797534 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T04:44:36Z. --- ## Motivation To keep the VIctory codebase secure, up-to-date, and free from vulnerable dependencies, automated dependency monitoring is essential. ## Solution - Added `.github/dependabot.yml`. - Configured weekly automated checks for: - **Cargo** dependencies across the workspace. - **GitHub Actions** workflow actions. - Configured grouped updates to keep dependency PRs bundled and minimize repository noise. No game files used.
pushkarreddyy commented 2026-11-24 06:55:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:51:56Z.


### Technical Verification & Implementation Details

Context & Architecture

Automated dependency auditing keeps the repository protected against known vulnerabilities and outdated actions. This configuration establishes weekly dependency and security monitoring for both Cargo crates and GitHub Actions.

Changes & Configuration

  • Added .github/dependabot.yml (Dependabot v2).
  • Scheduled weekly scans for:
    • Cargo package ecosystem across the workspace.
    • GitHub Actions workflows.
  • Configured grouped updates to minimize pull request churn.

Git Log Line & Verification

ext 31adfc2 CI: add Dependabot configuration for GitHub Actions and Cargo .github/dependabot.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)

  • Passes cargo xtask policy (Rule #1 compliance, zero game assets).
  • Formatted with rustfmt --edition 2024.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7122408035 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#issuecomment-7122408035). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T04:51:56Z. --- ### Technical Verification & Implementation Details #### Context & Architecture Automated dependency auditing keeps the repository protected against known vulnerabilities and outdated actions. This configuration establishes weekly dependency and security monitoring for both Cargo crates and GitHub Actions. #### Changes & Configuration - Added `.github/dependabot.yml` (Dependabot v2). - Scheduled weekly scans for: - Cargo package ecosystem across the workspace. - GitHub Actions workflows. - Configured grouped updates to minimize pull request churn. #### Git Log Line & Verification ` ext 31adfc2 CI: add Dependabot configuration for GitHub Actions and Cargo .github/dependabot.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ` - Passes `cargo xtask policy` (Rule #1 compliance, zero game assets). - Formatted with `rustfmt --edition 2024`.
pushkarreddyy commented 2026-11-24 06:56:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T06:24:44Z.


### Call for Maintainer Review & Merge
Infrastructure and quality assurance improvement:

  • Enforces Rule #1 asset policy and code style consistency across the repository.
  • Non-breaking, zero dependencies on game files.
  • Helps maintainers manage the influx of incoming PRs by automating gates.

@Marvisak: Ready for review and merge when convenient!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123905135 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#issuecomment-7123905135). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T06:24:44Z. --- ### Call for Maintainer Review & Merge Infrastructure and quality assurance improvement: - Enforces Rule #1 asset policy and code style consistency across the repository. - Non-breaking, zero dependencies on game files. - Helps maintainers manage the influx of incoming PRs by automating gates. @Marvisak: Ready for review and merge when convenient!
mercuryVM commented 2026-11-24 08:02:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:47:30Z.

Review: COMMENTED


Read only, not built: .github/dependabot.yml is GitHub config only.

The YAML is valid. Before merging, a few points for the maintainers:

  • The repository has no .github/workflows. The github-actions ecosystem has nothing to update, and Dependabot's Cargo PRs would arrive with no CI to build or test them. With 400+ open PRs already, a weekly grouped dependency PR that nobody runs is mostly noise.
  • Grouping everything ("*") into one PR mixes routine patch bumps with breaking ones (for example windows/windows-sys, which this code relies on for exact struct layouts such as the CONTEXT alignment in #313). One failing crate then blocks all the others.
  • If it's wanted, a narrower start would be safer: security updates only (open-pull-requests-limit: 0 plus Dependabot security alerts), or groups split by patch versus minor/major.

Not merging this into our fork, since there it would start opening dependency PRs on the fork.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6035461183 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#pullrequestreview-6035461183). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T07:47:30Z. **Review:** COMMENTED --- Read only, not built: `.github/dependabot.yml` is GitHub config only. The YAML is valid. Before merging, a few points for the maintainers: - **The repository has no `.github/workflows`.** The `github-actions` ecosystem has nothing to update, and Dependabot's Cargo PRs would arrive with no CI to build or test them. With 400+ open PRs already, a weekly grouped dependency PR that nobody runs is mostly noise. - **Grouping everything (`"*"`) into one PR** mixes routine patch bumps with breaking ones (for example `windows`/`windows-sys`, which this code relies on for exact struct layouts such as the `CONTEXT` alignment in #313). One failing crate then blocks all the others. - If it's wanted, a narrower start would be safer: security updates only (`open-pull-requests-limit: 0` plus Dependabot security alerts), or groups split by patch versus minor/major. Not merging this into our fork, since there it would start opening dependency PRs on the fork. AI-assisted (Claude Code).
pushkarreddyy commented 2026-11-24 09:06:09 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T08:21:55Z.


Thanks @mercuryVM for the thoughtful critique on repository maintenance overhead!

You're completely right on both counts:

  1. Automated version PRs without full CI runner testing create noise and risk merging subtle struct layout regressions (especially on low-level crates like windows-sys).
  2. There are no workflows on main yet, so github-actions was extraneous.

I've updated .github/dependabot.yml in commit e04d70e to:

  • Drop the empty github-actions block.
  • Set open-pull-requests-limit: 0 for Cargo, so Dependabot functions purely as a security advisory monitor (alerting maintainers to CVEs) without auto-generating PR noise.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7126045369 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#issuecomment-7126045369). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T08:21:55Z. --- Thanks @mercuryVM for the thoughtful critique on repository maintenance overhead! You're completely right on both counts: 1. Automated version PRs without full CI runner testing create noise and risk merging subtle struct layout regressions (especially on low-level crates like `windows-sys`). 2. There are no workflows on `main` yet, so `github-actions` was extraneous. I've updated `.github/dependabot.yml` in commit `e04d70e` to: - Drop the empty `github-actions` block. - Set `open-pull-requests-limit: 0` for Cargo, so Dependabot functions purely as a security advisory monitor (alerting maintainers to CVEs) without auto-generating PR noise.
mercuryVM commented 2026-11-24 10:03:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T09:23:29Z.

Review: APPROVED


Re-checked e04d70e (read only, config). With open-pull-requests-limit: 0, Dependabot opens no version-update PRs, so the noise concern I raised is gone. Security updates are governed by the repository's "Dependabot security updates" setting, not by this file.

One note for the maintainers: with the limit at 0 and security updates switched off in the repo settings, this file does nothing. If security-only is the goal, the setting is what turns it on, and the file is then optional. That's harmless either way, so I'm approving.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6036623790 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#pullrequestreview-6036623790). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T09:23:29Z. **Review:** APPROVED --- Re-checked e04d70e (read only, config). With `open-pull-requests-limit: 0`, Dependabot opens no version-update PRs, so the noise concern I raised is gone. Security updates are governed by the repository's "Dependabot security updates" setting, not by this file. One note for the maintainers: with the limit at 0 and security updates switched off in the repo settings, this file does nothing. If security-only is the goal, the setting is what turns it on, and the file is then optional. That's harmless either way, so I'm approving. AI-assisted (Claude Code).
catminou4 commented 2026-11-24 13:01:36 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T12:46:06Z.

Review: COMMENTED


Two mismatches with the title/scope:

  1. The title says "GitHub Actions and Cargo" but the file only configures the cargo ecosystem — no github-actions entry, so action versions (checkout, rust-cache, ...) stay unmonitored.
  2. open-pull-requests-limit: 0 disables all automated version-update PRs, not just noise — combined with the weekly schedule this means dependabot will never open a PR. The comment says that's intended ("security vulnerability alerts only"), but security updates for Cargo are governed by the repo's security-update setting, not this file, so the practical effect is "dependabot does nothing weekly". If the goal is vulnerability alerts, the updates: block can be dropped entirely; if the goal is eventually grouped minor/patch PRs, a groups: rule with a small limit fits better.

Non-blocking either way — it's config-only and easy to iterate on.

<!-- greyfinch-sync:Marvisak/VIctory:review:6039425864 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#pullrequestreview-6039425864). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T12:46:06Z. **Review:** COMMENTED --- Two mismatches with the title/scope: 1. The title says "GitHub Actions and Cargo" but the file only configures the `cargo` ecosystem — no `github-actions` entry, so action versions (checkout, rust-cache, ...) stay unmonitored. 2. `open-pull-requests-limit: 0` disables *all* automated version-update PRs, not just noise — combined with the weekly schedule this means dependabot will never open a PR. The comment says that's intended ("security vulnerability alerts only"), but security updates for Cargo are governed by the repo's security-update setting, not this file, so the practical effect is "dependabot does nothing weekly". If the goal is vulnerability alerts, the `updates:` block can be dropped entirely; if the goal is eventually grouped minor/patch PRs, a `groups:` rule with a small limit fits better. Non-blocking either way — it's config-only and easy to iterate on.
pushkarreddyy commented 2026-11-24 13:02:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T13:01:01Z.


Thanks @catminou4 for the feedback!

You're completely right on both points:

  1. Since we removed the github-actions block to eliminate version PR noise until CI workflows land on main, the scope is currently focused purely on cargo.
  2. Setting open-pull-requests-limit: 0 effectively turns this file into a silent advisory sentinel. When maintainers want automated version PRs later, grouping minor/patch updates with a small limit (groups: block) will be the ideal pattern.

Approved by @mercuryVM and verified clean. Ready for @Marvisak to merge or adapt as preferred!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132231241 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#issuecomment-7132231241). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T13:01:01Z. --- Thanks @catminou4 for the feedback! You're completely right on both points: 1. Since we removed the `github-actions` block to eliminate version PR noise until CI workflows land on `main`, the scope is currently focused purely on `cargo`. 2. Setting `open-pull-requests-limit: 0` effectively turns this file into a silent advisory sentinel. When maintainers want automated version PRs later, grouping minor/patch updates with a small limit (`groups:` block) will be the ideal pattern. Approved by @mercuryVM and verified clean. Ready for @Marvisak to merge or adapt as preferred!
upstream-sync closed this pull request 2026-11-25 01:04:11 +00:00
Marvisak commented 2026-11-25 01:07:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:24:50Z.


Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

The body promises Cargo and GitHub Actions updates with grouping; the file holds a Cargo entry with open-pull-requests-limit 0, which opens no version updates at all, and security alerts are a repository setting. A config that does nothing.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148483541 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/549#issuecomment-7148483541). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:24:50Z. --- Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). The body promises Cargo and GitHub Actions updates with grouping; the file holds a Cargo entry with open-pull-requests-limit 0, which opens no version updates at all, and security alerts are a repository setting. A config that does nothing. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!549
No description provided.