🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

driftcheck-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

driftcheck-cli - npm Package Compare versions

Comparing version
0.1.0
to
0.2.0
dist/darwin-x64/driftcheck

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

+2
-2

@@ -33,6 +33,6 @@ 'use strict';

console.error(
'driftcheck currently ships macOS arm64 binaries. On other platforms,'
'driftcheck ships binaries for macOS and Linux (arm64 + x64). On other'
);
console.error(
`build from source with go and point ${name.toUpperCase()}_BIN at the binary.`
`platforms, build from source with go and point ${name.toUpperCase()}_BIN at the binary.`
);

@@ -39,0 +39,0 @@ process.exit(2);

{
"name": "driftcheck-cli",
"version": "0.1.0",
"version": "0.2.0",
"description": "Semantic diffing of config files (.env, JSON, YAML, TOML) across environments — typed drift detection with a CI exit-code gate.",

@@ -16,6 +16,8 @@ "bin": {

"os": [
"darwin"
"darwin",
"linux"
],
"cpu": [
"arm64"
"arm64",
"x64"
],

@@ -22,0 +24,0 @@ "engines": {

@@ -33,5 +33,5 @@ # driftcheck

This installs the `driftcheck` command as a prebuilt native binary (the CLI
is written in Go). Currently
macOS arm64 only; on other platforms build from source and point
`DRIFTCHECK_BIN` at the binary.
is written in Go). Ships macOS and Linux, arm64 and x64 — including the
GitHub Actions / GitLab CI runners this tool is designed to gate. Elsewhere,
build from source and point `DRIFTCHECK_BIN` at the binary.

@@ -45,4 +45,6 @@ ## Usage

Flags: `--json` (CI output), `--verbose`, `--show-secrets`, `--config PATH`,
`--no-color`.
Flags: `--json` (CI output), `--verbose`, `--show-secrets`, `--strict`
(parse warnings fail the run), `--fail-on missing,value,type,files`,
`--format env|json|yaml|toml` (stdin / extension-less files),
`--config PATH`, `--no-color`.

@@ -59,4 +61,8 @@ **Exit codes** — designed as a CI gate: `0` no unexpected drift, `1` drift

`[redacted]`, in both human and `--json` output.
- **Ignore rules**: a `.driftcheck.yaml` lists keys expected to differ per
environment (`DATABASE_URL`, `features.*`) so they never page you.
- **Keyed-list matching**: Kubernetes-style lists (`env:`, `ports:`) are
matched by their `name`/`key`/`id` field — inserting one element is one
drift, not a misaligned cascade.
- **Ignore rules**: `.driftcheck.yaml` `ignore_values:` forgives per-
environment value differences (`DATABASE_URL`) while still failing if the
key goes missing; `ignore_files:` silences expected per-env overlay files.

@@ -63,0 +69,0 @@ Full documentation: https://github.com/adamsjack711-ux/driftcheck

Sorry, the diff of this file is not supported yet