ufm-fixture-tool

command
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Command ufm-fixture-tool redacts a workflow data dump for use as a deterministic test fixture. UUIDs, emails, and sensitive metadata (including stable org-scoped URLs) are replaced with placeholders.

Usage:

# Step 1 — dump workflow data to disk via built-in env vars:
SNYK_TMP_PATH=./dump INTERNAL_IN_MEMORY_THRESHOLD_BYTES=1 INTERNAL_CLEANUP_GLOBAL_TEMP_DIR_ENABLED=false \
  snyk secrets test . --report --org=my-org

# Step 2 — redact the dump into a fixture:
go run ./cmd/ufm-fixture-tool --input=./dump/workflow.TestResult.12345 --output=my_fixture.testresult.json

Directories

Path Synopsis
Package redact normalises a raw UFM test-result JSON dump into a deterministic fixture by replacing UUIDs, emails, and Snyk org slugs inside URLs with stable placeholders.
Package redact normalises a raw UFM test-result JSON dump into a deterministic fixture by replacing UUIDs, emails, and Snyk org slugs inside URLs with stable placeholders.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL