chaoss / augur

Python library and web service for Open Source Software Health and Sustainability metrics & data collection. You can find our documentation and new contributor information easily here: https://oss-augur.readthedocs.io/en/main/ and learn more about Augur at our website https://augurlabs.io
https://oss-augur.readthedocs.io/en/main/
MIT License
592 stars 845 forks source link

OpenSSF Scorecard Patch Needs #2927

Closed sgoggins closed 1 month ago

sgoggins commented 1 month ago

OpenSSF Worker

Prevalent ... I think its broken

Traceback (most recent call last):
  File "/home/ubuntu/github/augur/augur/tasks/git/dependency_tasks/core.py", line 102, in generate_scorecard
    if not required_output['checks']:
           ~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'checks'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/github/augur/augur/tasks/git/dependency_tasks/tasks.py", line 25, in process_ossf_dependency_metrics
    generate_scorecard(logger, repo_git)
  File "/home/ubuntu/github/augur/augur/tasks/git/dependency_tasks/core.py", line 141, in generate_scorecard
    raise MetadataException(e, f"required_output: {required_output}")
augur.tasks.util.metadata_exception.MetadataException: 'checks' | Additional metadata: required_output: {}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/augur/augur/tasks/git/dependency_tasks/tasks.py", line 30, in process_ossf_dependency_metrics
    raise MetadataException(f"An error occurred while generating the scorecard: {str(e)}")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: MetadataException.__init__() missing 1 required positional argument: 'additional_metadata'