cli-extension-secrets

module
v0.0.0-...-f06bde7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0

README

Snyk Secrets Test CLI Extension

Overview

This module implements the Snyk CLI Extension for Secrets workflows.

Workflows

  • snyk secrets test
Excluding files and directories

You can exclude files or directories from secrets scans using the --exclude flag. This performs basename matching, excluding the specified names anywhere they appear in the project tree.

Note: Paths containing slashes (/ or \) are not allowed.

snyk secrets test --exclude=node_modules,config.json
snyk secrets test --exclude "dist,vendor,temp.log"

Only user-provided exclude patterns are applied by this flag.

Contributing

This repository is closed to public contributions.

Directories

Path Synopsis
cmd
develop command
Package main is the entry point for the cli-extension-secrets.
Package main is the entry point for the cli-extension-secrets.
internal
clients/snykclient
Package snykclient provides a client for interacting with the Snyk API.
Package snykclient provides a client for interacting with the Snyk API.
clients/testshim
Package testshim provides a client for the Snyk test shim API.
Package testshim provides a client for the Snyk test shim API.
clients/testshim/mocks
Package mock_testshim is a generated GoMock package.
Package mock_testshim is a generated GoMock package.
clients/upload
Package upload provides a client for uploading files to the Snyk API.
Package upload provides a client for uploading files to the Snyk API.
clients/upload/mocks
Package mock_upload is a generated GoMock package.
Package mock_upload is a generated GoMock package.
commands/cmdctx
Package cmdctx manages context values for the secrets command workflow.
Package cmdctx manages context values for the secrets command workflow.
commands/secretstest
Package secretstest implements the Snyk secrets test workflow.
Package secretstest implements the Snyk secrets test workflow.
instrumentation
Package instrumentation provides analytics recording for the secrets workflow.
Package instrumentation provides analytics recording for the secrets workflow.
mocks/clients
Package clients is a generated GoMock package.
Package clients is a generated GoMock package.
pkg
filefilter
Package filefilter provides a concurrent pipeline for filtering files by size, content type, and glob patterns.
Package filefilter provides a concurrent pipeline for filtering files by size, content type, and glob patterns.
secrets
Package secrets is the entry point for the secrets workflow.
Package secrets is the entry point for the secrets workflow.

Jump to

Keyboard shortcuts

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