avatarnewyork/JSON Drift Validator

JSON drift detection with critical, medium, and ignore rules using wildcard matching. Supports file, base64, or raw JSON.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Nov 21, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: avatarnewyork/json-drift-validator@24fb05ad9bcbbb2f7253971538d57a84aa970d0b # v1.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
baseline_jsonBaseline JSON string (discouraged; may require escaping).no""
baseline_json_filePath to a file containing baseline JSON (recommended).no""
baseline_json_base64Base64-encoded baseline JSON string.no""
compare_jsonJSON string to compare against baseline (discouraged).no""
compare_json_filePath to a file containing JSON to compare (recommended).no""
compare_json_base64Base64-encoded JSON string to compare.no""
critical_keysComma-separated key patterns for critical drift. Supports wildcards.no""
medium_keysComma-separated key patterns for medium drift. Supports wildcards.no""
ignore_keysComma-separated key patterns to ignore. Highest precedence. Supports wildcards.no""
namedescription
critical_fail1 if critical drift is detected, otherwise 0.
medium_warn1 if medium drift is detected, otherwise 0.