Skip to content

[TASK] Configure Dependabot for ci/ and tests/serverspec/ - #606

Merged
Kanti merged 1 commit into
webdevops:masterfrom
andersundsehr:chore/dependabot
Nov 11, 2026
Merged

Kanti merged 1 commit into
webdevops:masterfrom
andersundsehr:chore/dependabot

Conversation

@Kanti

@Kanti Kanti commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Until now Dependabot only opened security updates, one pull request per package. Between advisories the lock files aged: tests/serverspec/Gemfile.lock is from 2021, and the security update #569 for excon (0.81.0 → 1.5.0) has been open since July. .github/dependabot.yml adds monthly version updates for the PHP tools in ci/ and the serverspec gems in tests/serverspec/.

Changes

  • .github/dependabot.yml, for composer in /ci and bundler in /tests/serverspec:
    • once a month, one pull request per directory with all minor and patch updates (groups), also of the packages the listed ones depend on (allow: dependency-type: all); every new major version gets a pull request of its own
    • a release is only proposed after seven days (cooldown); security updates are not delayed
    • commit messages and titles start with [TASK]
  • Left out, because the files are generated and an update by Dependabot would fail "Validate Automation":
    • the GitHub Actions in .github/workflows/build.yaml; their versions are in ci/src/GithubJobBuilder.php and use major tags such as actions/checkout@v7, so minor and patch releases apply without a change
    • the base images of the Dockerfiles; the nightly build pulls them anew, and a new tag such as a new Alpine or Debian release is a decision with documentation

Docs

Change Check
CONTRIBUTING.md "Building in CI": what Dependabot updates, and that the action versions are in ci/src/GithubJobBuilder.php ci/src/GithubJobBuilder.php holds the uses: lines of build.yaml; the paths and schedule are those of .github/dependabot.yml

How it was verified

Check Result
.github/dependabot.yml against the schema of schemastore.org (dependabot-2.0.json) No error. A misspelt key and an invalid dependency-type are reported, so the check works
GrumPHP (make check) All tasks pass. GrumPHP only checks files under ci/, so for .github/dependabot.yml the schema check above is the one that counts
Dependabot itself Reads the configuration only from the default branch, so it runs after the merge; its log is under Insights → Dependency graph → Dependabot

Until now Dependabot only opened security updates, one pull request per
package, so the lock files of the PHP tools in ci/ and of the serverspec
gems aged between advisories.

.github/dependabot.yml adds monthly version updates for both
directories: one pull request per directory with all minor and patch
updates, also of the packages the listed ones depend on, and one per
new major version. A release is only proposed after seven days. The
commit messages start with [TASK].

The GitHub Actions in .github/workflows/build.yaml and the base images
of the Dockerfiles are left out: both files are generated, so an update
by Dependabot would fail the check of the generated files.
CONTRIBUTING.md names where the action versions are.
@sonarqubecloud

Copy link
Copy Markdown

@Kanti
Kanti marked this pull request as ready for review November 11, 2026 07:59
@Kanti
Kanti merged commit 417dba3 into webdevops:master Nov 11, 2026
178 checks passed
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.

1 participant