{"score":90,"grade":"A","scannedAt":"2026-12-05T23:10:04.319Z","scanner":"grades-0.2","signals":{"ecosystem":"pypi","name":"diffsense","version":"2.3.1","license":"Apache-2.0","firstPublished":"2026-05-19T13:34:39.889595Z","lastPublished":"2026-10-12T08:17:35.855127Z","versions":4,"files":91,"bytes":524111,"hosts":["gitlab.com","json.schemastore.org"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"adapters/github_adapter.py","line":21,"snippet":"…orization': f'token {self.gh.get_user().login if False else os.environ.get(\"GITHUB_TOKEN\")}',"},{"rule":"network","severity":"info","title":"Makes network requests","file":"adapters/github_adapter.py","line":56,"snippet":"response = requests.get(self.pr.url, headers=headers)"},{"rule":"network","severity":"info","title":"Makes network requests","file":"adapters/github_adapter.py","line":94,"snippet":"response = requests.get(self.pr.url, headers=headers)"},{"rule":"network","severity":"info","title":"Makes network requests","file":"adapters/gitlab_adapter.py","line":40,"snippet":"response = requests.get(diff_url, headers=headers)"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"banner.py","line":28,"snippet":"result = subprocess.run("},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"cli.py","line":238,"snippet":"path = metrics_file or os.environ.get(\"DIFFSENSE_RULE_METRICS\") or os.path.join(os.getcwd(), \"rule_metrics.json\")"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"cli.py","line":366,"snippet":"os.remove(path)"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"cli.py","line":399,"snippet":"env = {**os.environ, \"DIFFSENSE_CACHE_DIR\": tmp}"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"cli.py","line":405,"snippet":"r0 = subprocess.run(cmd, env=env, cwd=pkg_dir, capture_output=True, timeout=60)"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"cli.py","line":408,"snippet":"r1 = subprocess.run(cmd, env=env, cwd=pkg_dir, capture_output=True, timeout=60)"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"cli.py","line":419,"snippet":"shutil.rmtree(tmp, ignore_errors=True)"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"cli.py","line":433,"snippet":"with open(output, \"w\", encoding=\"utf-8\") as f:"}],"vulns":[],"installScripts":[],"server":{"name":"io.github.GoldenSupremeSaltedFish/diffsense","title":"DiffSense","description":"MR/PR risk audit MCP server: semantic diff + rule engine, strict read-only. Run as image or pip.","repository":"https://github.com/GoldenSupremeSaltedFish/DiffSense","version":"2.3.1"}}