Repository navigation
ci(docker): have Dependabot propose PHP patch releases as fix(docker) - #7
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlso Dependabot opens a PR for each new 8.3 patch release.allow: php+ignoreminor/majorphp, and only 8.3.x patches. A new minor version is a decision rather than an update, andcomposer:2never reaches a published image.commit-message.prefix: fix(docker)).cooldown.default-days: 10would 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: dailyAGENTS.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 upgradeadded in #6.Validation:
check-jsonschemapasses with both its bundled Dependabot schema and the current SchemaStoredependabot-2.0.json.