{"id":13683725,"url":"https://github.com/actions-rs/clippy-check","last_synced_at":"2025-04-30T13:31:48.995Z","repository":{"id":37319009,"uuid":"211062488","full_name":"actions-rs/clippy-check","owner":"actions-rs","description":"📎 GitHub Action for PR annotations with clippy warnings","archived":true,"fork":false,"pushed_at":"2023-01-10T02:12:22.000Z","size":2235,"stargazers_count":292,"open_issues_count":44,"forks_count":41,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T23:14:43.800Z","etag":null,"topics":["cargo","clippy","github","lint","linter","pull-requests","rust","rust-lang"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/rust-clippy-check","language":"TypeScript","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/actions-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"liberapay":"svartalf","patreon":"svartalf","custom":["https://svartalf.info/donate/","https://www.buymeacoffee.com/svartalf"]}},"created_at":"2019-09-26T10:26:28.000Z","updated_at":"2025-03-20T00:14:20.000Z","dependencies_parsed_at":"2023-02-08T16:45:35.762Z","dependency_job_id":null,"html_url":"https://github.com/actions-rs/clippy-check","commit_stats":{"total_commits":41,"total_committers":6,"mean_commits":6.833333333333333,"dds":0.5365853658536586,"last_synced_commit":"b5b5f21f4797c02da247df37026fcd0a5024aa4d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rs%2Fclippy-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rs%2Fclippy-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rs%2Fclippy-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-rs%2Fclippy-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-rs","download_url":"https://codeload.github.com/actions-rs/clippy-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249850084,"owners_count":21334423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cargo","clippy","github","lint","linter","pull-requests","rust","rust-lang"],"created_at":"2024-08-02T13:02:26.777Z","updated_at":"2025-04-30T13:31:48.638Z","avatar_url":"https://github.com/actions-rs.png","language":"TypeScript","readme":"# Rust `clippy-check` Action\n\n![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)\n[![Gitter](https://badges.gitter.im/actions-rs/community.svg)](https://gitter.im/actions-rs/community)\n\n\u003e Clippy lints in your Pull Requests\n\nThis GitHub Action executes [`clippy`](https://github.com/rust-lang/rust-clippy)\nand posts all lints as annotations for the pushed commit, as in the live example [here](https://github.com/actions-rs/example/pull/2/files).\n\n![Screenshot](./.github/screenshot.png)\n\n## Example workflow\n\nThis example is utilizing [`toolchain`](https://github.com/actions-rs/toolchain) Actions\nto install the most recent `nightly` clippy version.\n\n```yaml\non: push\nname: Clippy check\njobs:\n  clippy_check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - uses: actions-rs/toolchain@v1\n        with:\n            toolchain: nightly\n            components: clippy\n            override: true\n      - uses: actions-rs/clippy-check@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          args: --all-features\n```\n\n### With stable clippy\n\n```yaml\non: push\nname: Clippy check\njobs:\n  clippy_check:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - run: rustup component add clippy\n      - uses: actions-rs/clippy-check@v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          args: --all-features\n```\n\n## Inputs\n\n| Name        | Required | Description                                                                                                                            | Type   | Default |\n| ------------| :------: | ---------------------------------------------------------------------------------------------------------------------------------------| ------ | --------|\n| `token`     | ✓        | GitHub secret token, usually a `${{ secrets.GITHUB_TOKEN }}`                                                                           | string |         |\n| `toolchain` |          | Rust toolchain to use; override or system default toolchain will be used if omitted                                                    | string |         |\n| `args`      |          | Arguments for the `cargo clippy` command                                                                                               | string |         |\n| `use-cross` |          | Use [`cross`](https://github.com/rust-embedded/cross) instead of `cargo`                                                               | bool   | false   |\n| `name`      |          | Name of the created GitHub check. If running this action multiple times, each run must have a unique name.                             | string | clippy  |\n\nFor extra details about the `toolchain`, `args` and `use-cross` inputs,\nsee [`cargo` Action](https://github.com/actions-rs/cargo#inputs) documentation.\n\n**NOTE**: if your workflow contains multiple instances of the `clippy-check` action you will need to give each invocation a unique name, using the `name` property described above.\nCheck runs must have a unique name, and this prevents a later check run overriding a previous one within the same workflow.\n\n## Limitations\n\nDue to [token permissions](https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions),\nthis Action **WILL NOT** be able to post `clippy` annotations for Pull Requests from the forked repositories.\n\nThis is a pretty big problem, which can be solved only by Github themselves,\nsee [#2](https://github.com/actions-rs/clippy-check/issues/2) for details.\\\nAs a fallback this Action will output all clippy messages into the stdout\nand fail the result correspondingly.\n","funding_links":["https://liberapay.com/svartalf","https://patreon.com/svartalf","https://svartalf.info/donate/","https://www.buymeacoffee.com/svartalf"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rs%2Fclippy-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-rs%2Fclippy-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-rs%2Fclippy-check/lists"}