avatarnewyork/JSON Drift Validator
JSON drift detection with critical, medium, and ignore rules using wildcard matching. Supports file, base64, or raw JSON.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Nov 21, 2025
- License
- MIT
Pinned Snippet
uses: avatarnewyork/json-drift-validator@24fb05ad9bcbbb2f7253971538d57a84aa970d0b # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| baseline_json | Baseline JSON string (discouraged; may require escaping). | no | "" |
| baseline_json_file | Path to a file containing baseline JSON (recommended). | no | "" |
| baseline_json_base64 | Base64-encoded baseline JSON string. | no | "" |
| compare_json | JSON string to compare against baseline (discouraged). | no | "" |
| compare_json_file | Path to a file containing JSON to compare (recommended). | no | "" |
| compare_json_base64 | Base64-encoded JSON string to compare. | no | "" |
| critical_keys | Comma-separated key patterns for critical drift. Supports wildcards. | no | "" |
| medium_keys | Comma-separated key patterns for medium drift. Supports wildcards. | no | "" |
| ignore_keys | Comma-separated key patterns to ignore. Highest precedence. Supports wildcards. | no | "" |
Outputs
| name | description |
|---|---|
| critical_fail | 1 if critical drift is detected, otherwise 0. |
| medium_warn | 1 if medium drift is detected, otherwise 0. |