{"id":37071461,"url":"https://github.com/kokkonisd/macgrind","last_synced_at":"2026-01-14T08:23:05.891Z","repository":{"id":57438986,"uuid":"312010337","full_name":"kokkonisd/macgrind","owner":"kokkonisd","description":"Containerized Valgrind on macOS for C and C++ projects.","archived":false,"fork":false,"pushed_at":"2020-11-15T19:28:09.000Z","size":65,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T02:44:30.604Z","etag":null,"topics":["containers","docker","macos","osx","python","tool","valgrind"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/macgrind/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kokkonisd.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-11-11T15:25:28.000Z","updated_at":"2025-03-28T01:22:56.000Z","dependencies_parsed_at":"2022-09-17T07:50:22.197Z","dependency_job_id":null,"html_url":"https://github.com/kokkonisd/macgrind","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kokkonisd/macgrind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokkonisd%2Fmacgrind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokkonisd%2Fmacgrind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokkonisd%2Fmacgrind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokkonisd%2Fmacgrind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kokkonisd","download_url":"https://codeload.github.com/kokkonisd/macgrind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kokkonisd%2Fmacgrind/sbom","scorecard":{"id":566196,"data":{"date":"2025-08-11","repo":{"name":"github.com/kokkonisd/macgrind","commit":"020500015c09840f6ae5f9a84be97d8342345c84"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml: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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/kokkonisd/macgrind/ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:18","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand 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":"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":"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: GNU General Public License v3.0: 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":"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-20T15:02:31.381Z","repository_id":57438986,"created_at":"2025-08-20T15:02:31.381Z","updated_at":"2025-08-20T15:02:31.381Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["containers","docker","macos","osx","python","tool","valgrind"],"created_at":"2026-01-14T08:23:05.262Z","updated_at":"2026-01-14T08:23:05.874Z","avatar_url":"https://github.com/kokkonisd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# macgrind\n\n![CI](https://github.com/kokkonisd/macgrind/workflows/CI/badge.svg)\n![Stable version](https://img.shields.io/pypi/v/macgrind?label=stable%20version)\n![Latest version](https://img.shields.io/github/v/tag/kokkonisd/macgrind?color=yellow\u0026label=latest%20version)\n\nContainerized Valgrind on macOS for C and C++ projects.\n\n\n## why\n\nAs of the time of writing this, [Valgrind](https://www.valgrind.org/) is not natively supported on several recent\nversions of macOS. This tool allows you to run it in a [Docker](https://www.docker.com/) container without any code\nchanges or extra garbage.\n\n\n## how to install\n\nYou can install `macgrind` via `pip`:\n\n```text\n$ pip3 install macgrind\n```\n\nYou also need to install [Docker Desktop](https://www.docker.com/products/docker-desktop), and have it running.\n\n\n## how to use\n\nYou can use `macgrind` by specifying the project's directory, and a target binary to run `valgrind` on.\nPlease note that the target binary's path must be the one **relative to the project path** instead of the absolute one.\n\nFor example, say I have a C project with the following structure:\n\n```text\nmy_c_project/\n    src/\n        main.c\n    Makefile\n```\n\nI need to supply the full path to `my_c_project/`, but only the relative path to the target executable: `main` (and not\n`my_c_project/main`). The assumption here is that the `all` target in the `Makefile` builds `my_c_project/main`.\n\nSo, we could run `macgrind` like this:\n\n```text\n$ macgrind my_c_project/ main\nCreating temporary Dockerfile...\nBuilding Docker image...\nRunning Docker container...\n==========\nHere's the output of the container:\n==1== Memcheck, a memory error detector\n==1== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.\n==1== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info\n==1== Command: /valgrind_project_tmp/main\n==1==\nHello, World!\n==1==\n==1== HEAP SUMMARY:\n==1==     in use at exit: 0 bytes in 0 blocks\n==1==   total heap usage: 2 allocs, 2 frees, 4,196 bytes allocated\n==1==\n==1== All heap blocks were freed -- no leaks are possible\n==1==\n==1== For counts of detected and suppressed errors, rerun with: -v\n==1== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\nContainer exited without errors (exit code: 0)\nDone!\n```\n\nBy default, `macgrind` will build a Docker image based on `ubuntu:18.04`. It will then build your project by running\n`make all` in the project directory, then run the target using `valgrind --leak-check=full --error-exitcode=1\n\u003ctarget\u003e`.\n\n## more options\n\nYou can specify the image on which the container will be built by running `macgrind` with the `-i` (or `--image`)\noption:\n\n```text\n$ macgrind my_c_project/ main --image ubuntu:16.04\n```\n\nVery often, projects depend on additional libraries. You can specify dependencies to be installed with `apt-get` using\nthe `-d` (or `--dependencies`) option:\n\n```text\n$ macgrind my_curl_c_project/ main --dependencies libcurl4-openssl-dev\n```\n\nIf you wish to run a custom command to build your project or just one target, other than `make all`, you can specify\nit using the `-c` (or `--custom-command`) option. Be aware, as with the executable, **the custom command must assume\na relative address, as it will be run inside of your project directory**:\n\n```text\n$ macgrind my_c_project/ main --custom-command \"gcc src/main.c -o main\"\n```\n\nTo get the full option list, run:\n\n```text\n$ macgrind --help\n```\n\n\n## how it works\n\nI've written a small [blogpost](https://kokkonisd.github.io/2020/11/15/macgrind/) about it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokkonisd%2Fmacgrind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkokkonisd%2Fmacgrind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkokkonisd%2Fmacgrind/lists"}