actions-marketplace-validations/PHP Code Sniffer (php-actions)

Run your PHP Code Sniffer tests in your Github Actions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Feb 10, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/php-actions_phpcs@139f5d222e0ba02519b5baf52fde2407bcba029f # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
versionWhat version of PHPCS to usenolatest
php_versionWhat version of PHP to usenolatest
vendored_phpcs_pathPath to a vendored phpcs binaryno
pathOne or more files and/or directories to checkyes
standardThe name or path of the coding standard to useyes
sniffsA comma separated list of sniff codes to include checking (all sniffs must be part of the specified standard)no
excludeA comma separated list of sniff codes to exclude from checking (all sniffs must be part of the specified standard)no
ignoreA comma separated list of patterns to ignore files and directoriesno
tab_widthThe number of spaces each tab representsno
reportPrint either the "full", "xml", "checkstyle", "csv", "json", "junit", "emacs", "source", "summary", "diff", "svnblame", "gitblame", "hgblame" or "notifysend" report, or specify the path to a custom report class, (the "full" report is printed by default)yesfull
report_fileWrite the report to the specified file pathno
report_widthHow many columns wide screen reports should be printed or set to "auto" to use current screen width, where supportedno
basepathA path to strip from the front of file paths inside reportsno
bootstrapA comma separated list of files to run before processing beginsno
encodingThe encoding of the files being checked (default is utf-8)no
extensionsA comma separated list of file extensions to check. The type of the file can be specified using: ext/type e.g., module/php,es/jsno
severityThe minimum severity required to display an error or warningno
error_severityThe minimum severity required to display an errorno
warning_severityThe minimum severity required to display a warningno
ignore_warnings_on_exitExit with a zero error code despite the presence of warningsno
ignore_errors_on_exitExit with a zero error code despite the presence of errorsno
argsExtra arguments to pass to the phpcs binaryno

no outputs