Repository navigation
Let Renovate detect phpcs and phive versions - #21
Merged
Merged
Conversation
Move the phpcs version from the workflow build-arg into the Dockerfile with a renovate annotation, pin phive to a versioned GitHub release asset (GPG signature check kept), and enable customManagers:dockerfileVersions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Until now the phpcs/phpcbf version only lived in a
VERSION=4.0.4build-arg in.github/workflows/build.yml, so Renovate never saw it. phive was downloaded unversioned from phar.io.Changes
ARG PHPCS_VERSION=4.0.4with# renovate: datasource=packagist depName=squizlabs/php_codesniffer, used by the phive install lines for phpcs and phpcbf. 4.0.4 is the latest release on Packagist.ARG PHIVE_VERSION=0.16.0(latest release), annotated# renovate: datasource=github-releases depName=phar-io/phive. It is downloaded fromgithub.com/phar-io/phive/releases/download/<ver>/phive-<ver>.phar, along with the.asc. The GPG signature check is unchanged.VERSIONbuild-arg is removed. Image tags come from git refs and semver tags throughdocker/metadata-action, which never readVERSION, so tagging is unchanged.customManagers:dockerfileVersions.What Renovate now detects
squizlabs/php_codesnifferphar-io/phiveVerification
renovate-config-validator --strict renovate.jsonpasses.renovate --platform=local --dry-run=extractlists both deps above inDockerfile.docker build .with no build args succeeds, including the GPG verification.phpcs --versionandphpcbf --versionin the image both printPHP_CodeSniffer version 4.0.4.🤖 Generated with Claude Code