{"id":13506726,"url":"https://github.com/deep5050/cppcheck-action","last_synced_at":"2025-05-10T10:30:45.330Z","repository":{"id":49459297,"uuid":"258571945","full_name":"deep5050/cppcheck-action","owner":"deep5050","description":"A github action to perform C/C++ security checks automatically","archived":true,"fork":false,"pushed_at":"2023-05-03T05:58:20.000Z","size":145,"stargazers_count":41,"open_issues_count":6,"forks_count":24,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T11:50:07.169Z","etag":null,"topics":["analysis","c","code-quality","code-review","cpp","cppcheck-action","cppcheck-documentations","dangerous-coding-constructs","performance-analysis","security-testing","static-analysis","vulnerability-detection"],"latest_commit_sha":null,"homepage":"","language":"C","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/deep5050.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"deep5050","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://www.paypal.com/paypalme/deep5050"}},"created_at":"2020-04-24T16:58:03.000Z","updated_at":"2025-02-03T06:48:18.000Z","dependencies_parsed_at":"2024-06-18T15:43:15.974Z","dependency_job_id":null,"html_url":"https://github.com/deep5050/cppcheck-action","commit_stats":{"total_commits":105,"total_committers":9,"mean_commits":"11.666666666666666","dds":"0.22857142857142854","last_synced_commit":"4b0dd98648e763f4d391ef3b77fa01113e005160"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deep5050%2Fcppcheck-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deep5050%2Fcppcheck-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deep5050%2Fcppcheck-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deep5050%2Fcppcheck-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deep5050","download_url":"https://codeload.github.com/deep5050/cppcheck-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253400929,"owners_count":21902576,"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":["analysis","c","code-quality","code-review","cpp","cppcheck-action","cppcheck-documentations","dangerous-coding-constructs","performance-analysis","security-testing","static-analysis","vulnerability-detection"],"created_at":"2024-08-01T01:00:56.315Z","updated_at":"2025-05-10T10:30:45.117Z","avatar_url":"https://github.com/deep5050.png","language":"C","readme":"\n![cppcheck-action](https://socialify.git.ci/deep5050/cppcheck-action/image?description=1\u0026logo=https%3A%2F%2Fi.imgur.com%2FbDs8nfo.png\u0026theme=Light)\n\n\n\u003cdiv align=center\u003e\n\u003cp align=center\u003e\n\u003cp\u003e\u003ca href=https://www.youtube.com/channel/UCHE71XuJOPKlHSxSr40u5Lw\u003e \u003cimg alt=\"YouTube Channel Views\" src=\"https://img.shields.io/youtube/channel/views/UCHE71XuJOPKlHSxSr40u5Lw?style=social\"\u003e\u003c/a\u003e\n\u003ca href=https://www.youtube.com/channel/UCHE71XuJOPKlHSxSr40u5Lw\u003e \u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCHE71XuJOPKlHSxSr40u5Lw?style=social\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cimg align=center src=https://img.shields.io/github/v/release/deep5050/cppcheck-action?style=flat-square alt=release\u003e\n\u003c/p\u003e\n\n\u003c/div\u003e\n\n\n## [subscribe to service updates](https://github.com/deep5050/cppcheck-action/issues/11)\n\n\u003e ** Please participate on this\n\u003e [poll](https://github.com/deep5050/cppcheck-action/issues/10) for a feature\n\u003e planned by me **\n\n\n## What is cppcheck?\n\n[cppcheck](https://github.com/danmar/cppcheck) is a static analysis tool for\nC/C++ code. It provides unique code analysis to detect bugs and focuses on\ndetecting undefined behavior and dangerous coding constructs. The goal is to\nhave very few false positives. Cppcheck is designed to be able to analyze your\nC/C++ code even if it has non-standard syntax (common in embedded projects).\n\n## How to use?\n\nCreate `cppcheck.yml` under `.github/workflows` With the following contents\n\n### Default configuration\n\n```yml\nname: cppcheck-action-test\non: [push]\n\njobs:\n  build:\n    name: cppcheck-test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n          \n      - name: cppcheck\n        uses: deep5050/cppcheck-action@main\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN}}\n          \n        \n      - name: publish report    \n        uses: mikeal/publish-to-github-action@master\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          BRANCH_NAME: 'main' # your branch name goes here\n```\n\n### Advanced configuration\n\n```yml\nname: cppcheck-action\non: [push]\n\njobs:\n  build:\n    name: cppcheck\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: cppcheck\n        uses: deep5050/cppcheck-action@main\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN}}\n          check_library:\n          skip_preprocessor:\n          enable:\n          exclude_check:\n          inconclusive:\n          inline_suppression:\n          force_language:\n          force:\n          max_ctu_depth:\n          platform:\n          std:\n          output_file:\n          other_options:\n\n      - name: publish report    \n        uses: mikeal/publish-to-github-action@master\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          BRANCH_NAME: 'main' # your branch name goes here\n```\n\n### Input options\n\n| Option | Value | Description | Default |\n| :--- | :--- | :--- | :--- |\n| **check_library**  | `enable`, `disable` | Show information messages when library files have incomplete info | `disable` |\n| **skip_preprocessor** | `enable`, `disable` | Print preprocessor output on stdout and don't do any further processing | `disable` |\n| **enable** | `all`, `warning`, `style`, `performance`, `portability`, `information`, `unusedFunction`, `missingInclude` | Enable additional checks. if you want to enable multiple checking at once, separate them using `,` without any blank space. example: `style,warning,performance` | `all` |\n| **exclude_check** | `./path/to/ignore` | Give a file or directory path to exclude from checking. example: `./no_check.cpp` | nothing to ignore |\n| **inconclusive** | `enable`, `disable` | Allow that Cppcheck reports even though the analysis is inconclusive | `enable` |\n| **inline_suppression** | `enable`, `disable` | Enable inline suppressions. Use them by placing one or more comments, like: '// cppcheck-suppress warningId' | `disable` |\n| **force_language** | `c`, `c++` | Forces cppcheck to check all files as the given language. Valid values are: `c`, `c++` | auto-detected |\n| **force** | `enable`, `disable` | Force checking of all configurations in files | `disable` |\n| **max_ctu_depth** | `number` | Max depth in whole program analysis. A larger value will mean more errors can be found but also means the analysis will be slower. example: `4` | `2` |\n| **platform** | `unix32`, `unix64`, `win32A`, `win32W`, `win64`, `avr8`, `elbrus-e1cp`, `pic8`, `pic8-enhanced`, `pic16`, `mips32`, `native`, `unspecified`, | Specifies platform specific types and sizes | `unspecified` |\n| **std** | `c89`, `c99`, `c11`, `c++11`, `c++14`, `c++17`, `c++20` | Set the C/C++ standard | `c11`, `c++20` |\n| **output_file** | `./path/to/output/file.txt` | Give a filename for the output report | `./cppcheck_report.txt` |\n| **other_options** | `--option1 --option2=value -opt3` | Any other options you want to add, separate with a space, wrong options will cause a failure. example: `--bug-hunting --verbose`| `disable` |\n\n\n\u003cb\u003e For further details check\n[cppcheck documentations](http://cppcheck.sourceforge.net/manual.pdf) \u003c/b\u003e\n\n## License\n\n\u003e MIT License\n\n\u003e Copyright (c) 2021 Dipankar Pal\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n## Thanks\n\nIcons made by\n\u003ca href=\"https://www.flaticon.com/authors/freepik\" title=\"Freepik\"\u003eFreepik\u003c/a\u003e\nfrom \u003ca href=\"https://www.flaticon.com/\" title=\"Flaticon\"\u003e www.flaticon.com\u003c/a\u003e\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://badereddineouaich.herokuapp.com\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/49657842?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBader\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/deep5050/cppcheck-action/commits?author=BaderEddineOuaich\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://stefan-hagen.website\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/450800?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eStefan Hagen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-sthagen\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/deep5050/cppcheck-action/commits?author=sthagen\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/deep5050/cppcheck-action/commits?author=sthagen\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n### Related\n[![deep5050/count-comments-action - GitHub](https://gh-card.dev/repos/deep5050/count-comments-action.svg)](https://github.com/deep5050/count-comments-action)\n\n[![deep5050/MastJokeMara - GitHub](https://gh-card.dev/repos/deep5050/MastJokeMara.svg)](https://github.com/deep5050/MastJokeMara)\n\n[![deep5050/memes-on-issues-action - GitHub](https://gh-card.dev/repos/deep5050/memes-on-issues-action.svg)](https://github.com/deep5050/memes-on-issues-action)\n\n[![deep5050/smart-radio - GitHub](https://gh-card.dev/repos/deep5050/smart-radio.svg)](https://github.com/deep5050/smart-radio)\n","funding_links":["https://github.com/sponsors/deep5050","https://www.paypal.com/paypalme/deep5050"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeep5050%2Fcppcheck-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeep5050%2Fcppcheck-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeep5050%2Fcppcheck-action/lists"}