mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
add file-metadata config options to docs
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
1d87f07da1
commit
4bde850f04
2
Makefile
2
Makefile
@ -18,7 +18,7 @@ SUCCESS := $(BOLD)$(GREEN)
|
|||||||
COVERAGE_THRESHOLD := 68
|
COVERAGE_THRESHOLD := 68
|
||||||
# CI cache busting values; change these if you want CI to not use previous stored cache
|
# CI cache busting values; change these if you want CI to not use previous stored cache
|
||||||
COMPARE_CACHE_BUSTER="f7e689d76a9"
|
COMPARE_CACHE_BUSTER="f7e689d76a9"
|
||||||
INTEGRATION_CACHE_BUSTER="789bacdf"
|
INTEGRATION_CACHE_BUSTER="23493ba738c3d2f"
|
||||||
CLI_CACHE_BUSTER="789bacdf"
|
CLI_CACHE_BUSTER="789bacdf"
|
||||||
BOOTSTRAP_CACHE="789bacdf"
|
BOOTSTRAP_CACHE="789bacdf"
|
||||||
|
|
||||||
|
|||||||
27
README.md
27
README.md
@ -1,7 +1,6 @@
|
|||||||
# syft
|
# syft
|
||||||
|
|
||||||
[](https://github.com/anchore/syft/actions?query=workflow%3A%22Static+Analysis+%2B+Unit+%2B+Integration%22)
|
[](https://github.com/anchore/syft/workflows/validations.yaml)
|
||||||
[](https://github.com/anchore/syft/actions?query=workflow%3AAcceptance)
|
|
||||||
[](https://goreportcard.com/report/github.com/anchore/syft)
|
[](https://goreportcard.com/report/github.com/anchore/syft)
|
||||||
[](https://github.com/anchore/syft/releases/latest)
|
[](https://github.com/anchore/syft/releases/latest)
|
||||||
[](https://github.com/anchore/syft/blob/main/LICENSE)
|
[](https://github.com/anchore/syft/blob/main/LICENSE)
|
||||||
@ -22,28 +21,28 @@ If you encounter an issue, please [let us know using the issue tracker](https://
|
|||||||
|
|
||||||
To generate an SBOM for a Docker or OCI image:
|
To generate an SBOM for a Docker or OCI image:
|
||||||
```
|
```
|
||||||
syft <image>
|
syft packages <image>
|
||||||
```
|
```
|
||||||
|
|
||||||
The above output includes only software that is visible in the container (i.e., the squashed representation of the image).
|
The above output includes only software that is visible in the container (i.e., the squashed representation of the image).
|
||||||
To include software from all image layers in the SBOM, regardless of its presence in the final image, provide `--scope all-layers`:
|
To include software from all image layers in the SBOM, regardless of its presence in the final image, provide `--scope all-layers`:
|
||||||
|
|
||||||
```
|
```
|
||||||
syft <image> --scope all-layers
|
syft packages <image> --scope all-layers
|
||||||
```
|
```
|
||||||
|
|
||||||
Syft can generate a SBOM from a variety of sources:
|
Syft can generate a SBOM from a variety of sources:
|
||||||
```
|
```
|
||||||
# catalog a container image archive (from the result of `docker image save ...`, `podman save ...`, or `skopeo copy` commands)
|
# catalog a container image archive (from the result of `docker image save ...`, `podman save ...`, or `skopeo copy` commands)
|
||||||
syft path/to/image.tar
|
syft packages path/to/image.tar
|
||||||
|
|
||||||
# catalog a directory
|
# catalog a directory
|
||||||
syft path/to/dir
|
syft packages path/to/dir
|
||||||
```
|
```
|
||||||
|
|
||||||
The output format for Syft is configurable as well:
|
The output format for Syft is configurable as well:
|
||||||
```
|
```
|
||||||
syft <image> -o <format>
|
syft packages <image> -o <format>
|
||||||
```
|
```
|
||||||
|
|
||||||
Where the `format`s available are:
|
Where the `format`s available are:
|
||||||
@ -93,19 +92,28 @@ quiet: false
|
|||||||
# same as SYFT_CHECK_FOR_APP_UPDATE env var
|
# same as SYFT_CHECK_FOR_APP_UPDATE env var
|
||||||
check-for-app-update: true
|
check-for-app-update: true
|
||||||
|
|
||||||
|
# cataloging packages is exposed through the packages and power-user subcommands
|
||||||
packages:
|
packages:
|
||||||
|
# enable/disable cataloging of packages
|
||||||
|
# SYFT_PACKAGES_CATALOGING_ENABLED env var
|
||||||
|
cataloging-enabled: true
|
||||||
|
|
||||||
# the search space to look for packages (options: all-layers, squashed)
|
# the search space to look for packages (options: all-layers, squashed)
|
||||||
# same as -s ; SYFT_SCOPE env var
|
# same as -s ; SYFT_PACKAGES_SCOPE env var
|
||||||
scope: "squashed"
|
scope: "squashed"
|
||||||
|
|
||||||
|
# cataloging file metadata is exposed through the power-user subcommand
|
||||||
file-metadata:
|
file-metadata:
|
||||||
# enable/disable cataloging if file metadata
|
# enable/disable cataloging of file metadata
|
||||||
|
# SYFT_FILE_METADATA_CATALOGING_ENABLED env var
|
||||||
cataloging-enabled: true
|
cataloging-enabled: true
|
||||||
|
|
||||||
# the search space to look for file metadata (options: all-layers, squashed)
|
# the search space to look for file metadata (options: all-layers, squashed)
|
||||||
|
# SYFT_FILE_METADATA_SCOPE env var
|
||||||
scope: "squashed"
|
scope: "squashed"
|
||||||
|
|
||||||
# the file digest algorithms to use when cataloging files (options: "sha256", "md5", "sha1")
|
# the file digest algorithms to use when cataloging files (options: "sha256", "md5", "sha1")
|
||||||
|
# SYFT_FILE_METADATA_DIGESTS env var
|
||||||
digests: ["sha256"]
|
digests: ["sha256"]
|
||||||
|
|
||||||
log:
|
log:
|
||||||
@ -121,6 +129,7 @@ log:
|
|||||||
# same as SYFT_LOG_FILE env var
|
# same as SYFT_LOG_FILE env var
|
||||||
file: ""
|
file: ""
|
||||||
|
|
||||||
|
# uploading package SBOM is exposed through the packages subcommand
|
||||||
anchore:
|
anchore:
|
||||||
# (feature-preview) the Anchore Enterprise Host or URL to upload results to (supported on Enterprise 3.0+)
|
# (feature-preview) the Anchore Enterprise Host or URL to upload results to (supported on Enterprise 3.0+)
|
||||||
# same as -H ; SYFT_ANCHORE_HOST env var
|
# same as -H ; SYFT_ANCHORE_HOST env var
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user