safe-anything 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -90,6 +90,12 @@ The full list is in [docs/rules.md](docs/rules.md).
|
|
|
90
90
|
| **Config** | Docker (unpinned base, root, secrets in `ENV`, `ADD <url>`), GitHub Actions (`pull_request_target`, `write-all`, actions on `@main`, script injection from PR titles), privileged containers, `hostNetwork`, open Terraform ingress, public buckets, nginx autoindex, TLS 1.0/1.1 |
|
|
91
91
|
| **Dependencies** | every locked version in `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `Cargo.lock`, `requirements*.txt`, `poetry.lock`, `uv.lock`, `go.mod`, `Gemfile.lock` and `composer.lock`, checked against [OSV.dev](https://osv.dev), with the nearest fixed version |
|
|
92
92
|
|
|
93
|
+
<p align="center">
|
|
94
|
+
<img src="docs/assets/nextjs-public-env.gif" alt="safe-anything on the with-mqtt-js example from the Next.js repository: 2 high findings, an MQTT password read from a NEXT_PUBLIC_ variable in app/page.tsx and environment.d.ts, which Next.js ships in the client bundle." width="820">
|
|
95
|
+
<br>
|
|
96
|
+
<sub>Of the 73 <a href="https://github.com/vercel/next.js/tree/canary/examples">Next.js examples</a> that come with env files, scanned one by one, the env checks flag one: a password behind <code>NEXT_PUBLIC_</code>.</sub>
|
|
97
|
+
</p>
|
|
98
|
+
|
|
93
99
|
## For AI agents
|
|
94
100
|
|
|
95
101
|
safe-anything is also an MCP server, so your agent can scan before it commits, and before you
|
|
@@ -113,7 +119,7 @@ Tools: `scan` (path, offline, severity, include_tests) and `list_rules`. The ski
|
|
|
113
119
|
## In CI
|
|
114
120
|
|
|
115
121
|
```yaml
|
|
116
|
-
- uses: erkamyaman/safe-anything@v1.0.
|
|
122
|
+
- uses: erkamyaman/safe-anything@v1.0.2
|
|
117
123
|
with:
|
|
118
124
|
fail-on: high
|
|
119
125
|
- uses: github/codeql-action/upload-sarif@v4
|
|
@@ -142,6 +148,12 @@ doing.
|
|
|
142
148
|
| [rust-anything](https://github.com/erkamyaman/rust-anything) | 3,134 | 6 | `innerHTML` in GIF demo pages (5), an action on `@master` |
|
|
143
149
|
| safe-anything itself | 53 | 0 | checked in CI on every push |
|
|
144
150
|
|
|
151
|
+
<p align="center">
|
|
152
|
+
<img src="docs/assets/express-clean.gif" alt="safe-anything on expressjs/express: no problems found, 216 files scanned in 0.03 s." width="820">
|
|
153
|
+
<br>
|
|
154
|
+
<sub>Quiet on good code: expressjs/express, 216 files, no findings.</sub>
|
|
155
|
+
</p>
|
|
156
|
+
|
|
145
157
|
The noisiest rule is `code.xss-inner-html`: it fires on any HTML built from a variable, and most of
|
|
146
158
|
those in local tooling are not reachable by an attacker. It stays on, because real XSS looks the
|
|
147
159
|
same. Status per family: [docs/STATUS.md](docs/STATUS.md).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "safe-anything",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Find the holes before someone else does. One fast command scans code, secrets, mobile and cloud config, dependencies and AI agent setups. 100% Rust.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"security",
|