socket.json
A file containing local project settings to be used by the CLI
The socket.json file is a local configuration file to be consumed by the CLI.
The file contains project/repository level default override for flags and args.
For example, if you do socket scan create --branch=foo, you can instead also run socket scan setup, set a default for the --branch flag to foo, and next time you run socket scan create it will automatically set --branch=foo. And if you use --branch=xyz instead then it will happily use xyz.
Each project root dir needs its own socket.json. Many things here are specific to a project, anyways. Repo name, branch name, manifest configuration, etc.
Inheritance applies in one place only: in a repository with multiple independent builds, the defaults.manifest section of a nested socket.json inherits from the files above it whenever dynamic SBOM inference runs (socket manifest dynamic-sbom-inference, socket manifest setup --dynamic-sbom-inference, or socket scan create --reach --dynamic-sbom-inference). The nearest file wins field by field; set a field to null to clear an inherited value instead of restating it. Nothing else in the file inherits.
This file is meant to make your life easier when using the Socket CLI. You can do whatever you want with it:
- Commit it to repo to ease collaboration
- Ignore it in your
.gitignorebecause you don't like the clutter - Delete it because you don't need this
- Edit it because you're curious
- Do nothing
Updated 9 days ago