envs

Snyk — CLI and API

snyk/cli · version 1

envs add snyk/cli

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
SNYK_TOKEN required secret Snyk never labels it secret in those words, but it says to map a stored token into this variable from your CI secret store, and that a personal access token is shown only at creation. There is no browser side to Snyk. Revoke and create another; there is no rotation in place.. where to get it
SNYK_OAUTH_TOKEN optional secret The name the CLI reads when authentication is OAuth rather than a token.. where to get it

The JSON the CLI reads