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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:

+1 −1
Original line number Diff line number Diff line
@@ -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
        }
      ]
+1 −1
Original line number Diff line number Diff line
@@ -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