Skip to content

ci(docker): have Dependabot propose PHP patch releases as fix(docker) - #7

Merged
DManavi merged 1 commit into
mainfrom
dmanavi-php-cve-image-updates
Nov 27, 2026
Merged

DManavi merged 1 commit into
mainfrom
dmanavi-php-cve-image-updates

Conversation

@DManavi

@DManavi DManavi commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Follow-up to #6. The images went three PHP security releases without a rebuild. Now that the base is pinned to php:8.3.37-cli-alpine, nothing would move it either. This adds .github/dependabot.yml so Dependabot opens a PR for each new 8.3 patch release.

Setting Why
allow: php + ignore minor/major Only php, and only 8.3.x patches. A new minor version is a decision rather than an update, and composer:2 never reaches a published image.
commit-message.prefix: fix(docker) Merging the PR is what releases it. This is the rule AGENTS.md gives for manual bumps. Dependabot adds the colon itself after ).
cooldown.default-days: 1 Version updates otherwise wait 3 days after a release. One day is the shortest GitHub accepts ("must be between 1 and 90"), and 0 would make the whole file invalid. The PR still has to pass CI, which builds the image and runs the suite in it, and still has to be merged by hand.
interval: daily The official image follows a PHP release within hours.

AGENTS.md's PHP-bump Trap now mentions Dependabot. The commit type is ci, so merging this does not cut a release.

Not covered: Alpine package fixes between PHP releases. They still arrive when a release rebuilds the image, through the runtime stage's apk upgrade added in #6.

Validation:

  • check-jsonschema passes with both its bundled Dependabot schema and the current SchemaStore dependabot-2.0.json.
  • The file is LF-only.
  • 8.3.37 is the newest 8.3 patch today, so the first Dependabot run should open nothing.

The images went three PHP security releases without a rebuild because
nothing noticed php:8.3-cli-alpine move, and now that the base is pinned to
a patch version nothing would move it either. Dependabot now watches that
one tag and opens a pull request for each new 8.3 patch release.

- Only php, and only patch releases. A new minor version is a decision
  rather than an update, and composer:2 never reaches a published image.
- Prefixed fix(docker), so that merging the pull request is what releases
  it - the rule AGENTS.md gives for doing it by hand. Dependabot adds the
  colon itself after a closing parenthesis.
- A one-day cooldown, the shortest GitHub accepts. Version updates otherwise
  wait three days after a release, which for a PHP security release is three
  more days of a vulnerable image; the pull request still has to pass CI and
  be merged by hand.
- Checked daily: the official image follows a PHP release within hours.

Alpine package fixes between PHP releases are still not proposed. They
arrive when a release rebuilds the image, through the apk upgrade in the
runtime stage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@DManavi
DManavi merged commit 1e251ce into main Nov 27, 2026
8 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