mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Generate recommendations Python script relies on very out of date Ruby gems #157
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sammcj on GitHub.
Summary
(Summarize the bug encountered concisely)
Steps to reproduce
Without prompting the python script goes and installs a number of Ruby gems, some of which are very out of date:
Even if you manage to install such an old gem, you get errors:
I'd suggest this project needs an uplift of it's libraries / dependencies there's also probably a number of security vulnerabilities in the current versions.
Operating System version
13.5 (22G74)
Intel or Apple Silicon
Apple Silicon
What is the current bug behaviour?
What is the expected correct behaviour?
Relevant logs and/or screenshots
as above
Possible fixes
Update or replace dependencies.
@golbiga commented on GitHub:
The only requirements we set for ruby gems are the following.
When the bundle command is run it's using the system Ruby or whichever you have currently installed. What happens if you
rm Gemfile.lockand then runbundle install --binstubs --path mscp_gemswithin the project folder?I just did the following and everything worked:
rm -rf .bundle bin mscp_gems Gemfile.lock./scripts/generate_baseline.py -k 800-53r4_high./scripts/generate_guidance.py build/baselines/800-53r4_high.yaml@sammcj commented on GitHub:
Oh wow ok - yeah the bundle install with --binstubs seemed to fix it!
Thank you!