Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with AttributeError: 'NoneType' object has no attribute 'get' #30

Open
MPV opened this issue Nov 10, 2023 · 0 comments
Open

Fails with AttributeError: 'NoneType' object has no attribute 'get' #30

MPV opened this issue Nov 10, 2023 · 0 comments

Comments

@MPV
Copy link

MPV commented Nov 10, 2023

Trying out this action, and so far it's just failed like this:

Run advanced-security/brew-dependency-submission-action@25113069cbb9f839378acfd72dadc90692c94a53
Run export PYTHONPATH=/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/2[5](https://github.com/MPV/dotfiles/actions/runs/6824331469/job/18560010749?pr=31#step:3:6)1[13](https://github.com/MPV/dotfiles/actions/runs/6824331469/job/18560010749?pr=31#step:3:15)069cbb9f839378acfd72dadc90692c94a53:/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/25113069cbb9f839378acfd72dadc90692c94a53/vendor
2023-11-10 11:39:07,292 - bldsa - INFO - Lockfile found :: ./Brewfile.lock.json
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/25113069cbb9f839378acfd72dadc90692c94a53/bldsa/__main__.py", line 85, in <module>
    dependencies = parseBrewLock(lockfile)
  File "/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/25113069cbb9f839378acfd72dadc90692c94a53/bldsa/brew.py", line 65, in parseBrewLock
    return parseBrewJson(lock_data)
  File "/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/25113069cbb9f839378acfd72dadc90692c94a53/bldsa/brew.py", line 40, in parseBrewJson
    results.append(parseBrewEntry(dep_name, dep_data))
  File "/home/runner/work/_actions/advanced-security/brew-dependency-submission-action/[25](https://github.com/MPV/dotfiles/actions/runs/6824331469/job/18560010749?pr=31#step:3:27)113069cbb9f839378acfd72dadc90692c94a53/bldsa/brew.py", line 29, in parseBrewEntry
    version=data.get("version"),
AttributeError: 'NoneType' object has no attribute 'get'
Error: Process completed with exit code 1.

...as seen in:

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant