You need to sign in or sign up before continuing.
unknown flag --override-default-catalogers
Describe the bug
Py-sbom job is failaing starting from version 6.6.3
with the following error message:
unknown flag: --override-default-catalogers
I'm aware of #62 (closed) and using the gitlab-ci env var workaround:
PYTHON_SBOM_SYFT_URL: https://github.com/anchore/syft/releases/download/v0.100.0/syft_0.100.0_linux_amd64.tar.gz
I also see that the --override-default-catalogers
flag was introduced in this commit 69531a8e
The issue was experienced with versions 6.6.3
, 6.6.5
, and 6.7.0
of TBC/Python.
Expected behavior
py-sbob
job passes without issues.
Actual behavior
py-sbob
job fails with the following error:
unknown flag: --override-default-catalogers
Logs and/or screenshots
...
Successfully installed MarkupSafe-2.1.5 PrettyTable-3.10.0 ansible-runner-2.3.6 bcrypt-4.1.2 behave-1.2.6 behave-html-formatter-0.9.10 boto3-1.34.69 botocore-1.34.69 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 cryptography-42.0.5 docutils-0.20.1 idna-3.6 iniconfig-2.0.0 iso8601-2.1.0 jinja2-3.1.3 jmespath-1.0.1 junitxml-0.7 lockfile-0.12.2 lxml-5.1.0 mock-5.1.0 os-testr-3.0.0 packaging-24.0 paramiko-3.4.0 parse-1.20.1 parse-type-0.6.2 pbr-6.0.0 pexpect-4.9.0 pluggy-1.4.0 ptyprocess-0.7.0 pycparser-2.21 pynacl-1.5.0 pytest-8.1.1 pytest-html-4.1.1 pytest-metadata-3.1.1 python-daemon-3.0.1 python-dateutil-2.9.0.post0 python-subunit-1.4.4 pyyaml-6.0.1 requests-2.31.0 robotframework-7.0 s3transfer-0.10.1 six-1.16.0 stevedore-5.2.0 testtools-2.7.1 urllib3-2.2.1 wcwidth-0.2.13 xtesting-0.98.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
$ case "$PYTHON_BUILD_SYSTEM" in # collapsed multi-line command
$ if [[ -z "$PYTHON_SBOM_SYFT_URL" ]] # collapsed multi-line command
$ $python_sbom_syft dir:. --source-name $PYTHON_SBOM_NAME $PYTHON_SBOM_OPTS -o cyclonedx-json > reports/py-sbom.cyclonedx.json
unknown flag: --override-default-catalogers
Uploading artifacts for failed job 00:02
Uploading artifacts...
...
Context & Configuration
The issue was reproduced using:
- Version of the template:
6.6.3
,6.6.5
, and6.7.0
- GitLab server(s): GitLab Community Edition v16.8.3
- GitLab runner(s): Running with gitlab-runner 16.8.1