{"id":47664194,"url":"https://github.com/shirobrak/action-phpcs","last_synced_at":"2026-04-02T11:49:29.957Z","repository":{"id":45214320,"uuid":"291403754","full_name":"shirobrak/action-phpcs","owner":"shirobrak","description":"Run phpcs with reviewdog","archived":false,"fork":false,"pushed_at":"2022-11-16T12:38:21.000Z","size":239,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T16:24:26.161Z","etag":null,"topics":["github-actions","phpcs"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shirobrak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-30T05:04:56.000Z","updated_at":"2025-10-15T20:23:12.000Z","dependencies_parsed_at":"2023-01-04T18:32:15.088Z","dependency_job_id":null,"html_url":"https://github.com/shirobrak/action-phpcs","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.5625,"last_synced_commit":"182ecf7bce97e3d986b48123b7f5c4b8ae9e2394"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/shirobrak/action-phpcs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirobrak%2Faction-phpcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirobrak%2Faction-phpcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirobrak%2Faction-phpcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirobrak%2Faction-phpcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shirobrak","download_url":"https://codeload.github.com/shirobrak/action-phpcs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shirobrak%2Faction-phpcs/sbom","scorecard":{"id":819535,"data":{"date":"2025-08-11","repo":{"name":"github.com/shirobrak/action-phpcs","commit":"182ecf7bce97e3d986b48123b7f5c4b8ae9e2394"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/depup.yaml:1","Warn: no topLevel permission defined: .github/workflows/dockerimage.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/reviewdog.yaml:1","Warn: no topLevel permission defined: .github/workflows/update_semver.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/depup.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/depup.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/depup.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/depup.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/depup.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/depup.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dockerimage.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/dockerimage.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/reviewdog.yaml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/reviewdog.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update_semver.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/update_semver.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update_semver.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/shirobrak/action-phpcs/update_semver.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating php:alpine3.14 to php:alpine3.14@sha256:11d03446b02a6d5f0c4f4311c1ed41eee96a2b29e69f9d9b63366c22cec9518e","Warn: downloadThenRun not pinned by hash: Dockerfile:27","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T15:05:07.976Z","repository_id":45214320,"created_at":"2025-08-23T15:05:07.976Z","updated_at":"2025-08-23T15:05:07.976Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31305809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","phpcs"],"created_at":"2026-04-02T11:49:29.494Z","updated_at":"2026-04-02T11:49:29.951Z","avatar_url":"https://github.com/shirobrak.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action: Run phpcs with reviewdog\n\n[![Docker Image CI](https://github.com/shirobrak/action-phpcs/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/shirobrak/action-phpcs/actions)\n[![depup](https://github.com/shirobrak/action-phpcs/workflows/depup/badge.svg)](https://github.com/shirobrak/action-phpcs/actions?query=workflow%3Adepup)\n[![release](https://github.com/shirobrak/action-phpcs/workflows/release/badge.svg)](https://github.com/shirobrak/action-phpcs/actions?query=workflow%3Arelease)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/shirobrak/action-phpcs?logo=github\u0026sort=semver)](https://github.com/shirobrak/action-phpcs/releases)\n[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github\u0026link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)\n\nThis action runs [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) with [reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve code review experience.\n\n![](imgs/github-checks.png)\n![](imgs/github-pr-review.png)\n\n## Inputs\n\n### `github_token`\n\n**Required**. Default is `${{ github.token }}`.\n\n### `level`\n\nOptional. Report level for reviewdog [info,warning,error]. It's same as -level flag of reviewdog.\n\n### `reporter`\n\nReporter of reviewdog command [github-pr-check,github-check,github-pr-review]. Default is github-pr-check. It's same as -reporter flag of reviewdog.\n\ngithub-pr-review can use Markdown and add a link to rule page in reviewdog reports.\n\n### `filter_mode`\n\nOptional. Filtering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is added.\n\n### `fail_on_error`\n\nOptional. Exit code for reviewdog when errors are found [true,false]. Default is false.\n\n### `reviewdog_flags`\n\nOptional. Additional reviewdog flags\n\n### `phpcs_flags`\n\nOptional. Flags and args of phpcs command. Default: '.'\n\n### `workdir`\n\nOptional. The directory from which to look for and run phpcs. Default '.'\n\n## Example usage\n\nYou also need to install [phpcs](https://github.com/squizlabs/PHP_CodeSniffer).\n\nHow to install phpcs is [here](https://github.com/squizlabs/PHP_CodeSniffer#installation).\n\n### [.github/workflows/reviewdog.yaml](./.github/workflows/reviewdog.yaml)\n\n```yaml\nname: reviewdog\non: [pull_request]\njobs:\n  phpcs:\n    name: runner / phpcs\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: phpcs\n        uses: shirobrak/action-phpcs@v1.0.0\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          reporter: github-pr-review  # Change reporter.\n          phpcs_flags: '--standard=phpcs.xml src/'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshirobrak%2Faction-phpcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshirobrak%2Faction-phpcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshirobrak%2Faction-phpcs/lists"}