Skip to content
Snippets Groups Projects
Commit d83edb06 authored by Marc Barussaud's avatar Marc Barussaud
Browse files

fix(sbom): disable file catalogers for Syft SBOM (to minimize SBOM file)

warning: this commit will break on syft version <1.20.0
parent 2e34a774
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@ It is bound to the `test` stage, and uses the following variables:
| `TBC_SBOM_MODE` | Controls when SBOM reports are generated (`onrelease`: only on `$INTEG_REF`, `$PROD_REF` and `$RELEASE_REF` pipelines; `always`: any pipeline).<br/>:warning: `sbom-disabled` / `PYTHON_SBOM_DISABLED` takes precedence | `onrelease` |
| `sbom-syft-url` / `PYTHON_SBOM_SYFT_URL` | Url to the `tar.gz` package for `linux_amd64` of Syft to use (ex: `https://github.com/anchore/syft/releases/download/v0.62.3/syft_0.62.3_linux_amd64.tar.gz`)<br/>_When unset, the latest version will be used_ | _none_ |
| `sbom-name` / `PYTHON_SBOM_NAME` | Component name of the emitted SBOM | `$CI_PROJECT_PATH/$PYTHON_PROJECT_DIR` |
| `sbom-opts` / `PYTHON_SBOM_OPTS` | Options for syft used for SBOM analysis | `--override-default-catalogers python-package-cataloger` |
| `sbom-opts` / `PYTHON_SBOM_OPTS` | Options for syft used for SBOM analysis | `--override-default-catalogers python-package-cataloger --select-catalogers -file` |
In addition to logs in the console, this job produces the following reports, kept for one week:
......
......@@ -184,7 +184,7 @@
{
"name": "PYTHON_SBOM_OPTS",
"description": "Options for syft used for SBOM analysis",
"default": "--override-default-catalogers python-package-cataloger",
"default": "--override-default-catalogers python-package-cataloger --select-catalogers -file",
"advanced": true
}
]
......
......@@ -125,7 +125,7 @@ spec:
default: $CI_PROJECT_PATH/$PYTHON_PROJECT_DIR
sbom-opts:
description: Options for syft used for SBOM analysis
default: --override-default-catalogers python-package-cataloger
default: --override-default-catalogers python-package-cataloger --select-catalogers -file
release-enabled:
description: Enable Release
type: boolean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment