Skip to content

All SBOM integration workflows are failing due to TypeError #1885

@tsteenbe

Description

@tsteenbe

See https://github.com/aboutcode-org/scancode.io/actions, all "Generate SBOM with ..." workflows are failing, looking at the output it the same TypeError in each of them.

Run scanpipe migrate --verbosity 0
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.11/x64/bin/scanpipe", line 7, in <module>
    sys.exit(command_line())
             ^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scancodeio/__init__.py", line 98, in command_line
    execute_from_command_line(sys.argv)
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/django/apps/registry.py", line 124, in populate
    app_config.ready()
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/apps.py", line 70, in ready
    self.load_pipelines()
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/apps.py", line 97, in load_pipelines
    self.register_pipeline(name=entry_point.name, cls=entry_point.load())
                                                      ^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/importlib_metadata/__init__.py", line 221, in load
    module = import_module(self.module)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/pipelines/analyze_docker.py", line 23, in <module>
    from scanpipe.pipelines.analyze_root_filesystem import RootFS
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/pipelines/analyze_root_filesystem.py", line 26, in <module>
    from scanpipe.pipes import flag
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/pipes/__init__.py", line 41, in <module>
    from scanpipe.pipes import scancode
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scanpipe/pipes/scancode.py", line 52, in <module>
    from scancode import cli as scancode_cli
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/scancode/cli.py", line 376, in <module>
    @click.option(
     ^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/decorators.py", line 374, in decorator
    _param_memo(f, cls(param_decls, **attrs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/commoncode/cliutils.py", line 454, in __init__
    super(PluggableCommandLineOption, self).__init__(
  File "/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/click/core.py", line 2793, in __init__
    raise TypeError("Secondary flag is not valid for non-boolean flag.")
TypeError: Secondary flag is not valid for non-boolean flag.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions