Data for vulnerabilityhistory.org
Every push and pull request is run against our integrity checkers on Travis. Click on the above tag to see the status of the build.
Please see the assignments folder for information about your project.
Be in the root of this repository, and run:
scripts\add_commit.rb --sha commit_sha_to_add
See the source code for other options.
When you want to make sure that any commit that's mentioned in a YAML is also in the gitlog, you can run this script. It will NOT figure out commits between VCC and Fix, however.
Be in the root of this repository, and run:
scripts\add_mentioned_commits.rb
This will overwrite any commit and take a LONG time (5-10 minutes). If you just want to go quickly and add what's not already there, use:
scripts\add_mentioned_commits.rb --skip-existing
So if a commit is already in gitlog.json then we won't look it up in the GitLog. This is a much faster option.
By default, this script checks the tmp/src
directory. If you need, say, v8
, there's an option for that.
Release data is scraped from this Wikipedia article
$ cd scripts
$ ruby get_releases.rb
Here's how you merge in student data once the assignment is finished.
- Make sure the current
dev
branch is updated and works with the build - Switch
vulnerability-history
locally to pull fromdev
instead ofmaster
. - Squash and merge the student pull req into
dev
- Run
rails data:chromium
locally. When it says "Loading data version " and then a git hash, make sure that matches up with the latest merge you just made (so you know you are pulling the latest chromium-vulnerabilities data). - If all is well, then do any spot-checks of their data to make sure everything got tagged just fine.
- If all is not well:
- You may need to merge their changes with any of your changes. This might be on GitHub itself, or locally.
- You may need to correct their YML structure to make it compatible with the loader. Make the change locally and push back to
dev
to fix it and re-run. - If things fail on an exception, you can always put in this snippet somewhere to figure out what file failed and use byebug to figure out the problem:
begin
# code where things when wrong
rescue
byebug
end
- You can always do
rails data:chromium:nogit
to reload things without hitting GitHub - helpful for quicker debugging.