Comments (5)
Sorry; what packages are you referring to? I'm afraid I don't fully understand what you're trying to do and what the problem is.
from foundation-security-advisories.
I would try to clarify.
Let's say we have the following yaml
announced: April 29, 2014
fixed_in:
- Firefox 29
- Firefox ESR 24.5
- Thunderbird 24.5
- Seamonkey 2.26
impact: High
Now, I need to take out the fixed_in packages in a (package name, version)
tuple. So, I'll end up with something like
(Firefox, 29)
(Firefox ESR, 24.5)
(Thunderbird, 24.5)
(Seamonkey, 2.26)
I could create the above tuples using
name=" ".join(fixed_in.split(" ")[0:-1])
version=fixed_in.split(" ")[-1]
(name, version)
But here I'm assuming that a version must follow at the end of the package name and would be separated by space. It could be a right assumption but there doesn't exist any validation currently for me to be sure of it.
For example, if there is an entry
fixed_in:
- Firefox-29
then my current code would not be able to figure out the version from the name. I was hoping to have a validation to make sure the package name follows a certain pattern.
Please let me know if it makes sense.
from foundation-security-advisories.
We treat it as a free fork text field in our own validation schema.
Our generated code uses hardcoded Firefox
or Firefox ESR
suffixed by the version number. Similar for Firefox for iOS.
All other products are usually copy&paste and manual work - unless @tomrittervg has made local changes to his repo, which aren't on GitHub yet. :)
from foundation-security-advisories.
The website also expects it to be in the <product name> <version>
format. The code for that is here:
from foundation-security-advisories.
from foundation-security-advisories.
Related Issues (17)
- Advisories check script gives errors with python 3.10 (but works with 3.8) HOT 1
- Incorrect advisory
- Broken file content blocking ingestion for mozilla.org HOT 1
- Link in recent sec advisory has restricted access HOT 1
- Migrate Pocket's bug bounty program to Mozilla HOT 5
- Firefox Bug Bounty Rewards is extremely outdated HOT 4
- CODE_OF_CONDUCT.md file missing
- Upgrade the linter script and dependencies for Python 3.7
- Provice RSS Feed and/or ml annoucment HOT 5
- Add a check in check_advisories.py to make sure we dont have any CVE-2019-XXXX HOT 2
- Support advisories for mobile products
- Add an extra syntax check in check_advisories.py HOT 1
- check_advisory should ensures that there are no extra, unexpected fields in a file HOT 1
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- mfsa2021-41 HOT 1
- HOF Script won't find some entries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foundation-security-advisories.