Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,23 @@ name: build_deploy
on:
push:
branches:
- main
- main
pull_request:
repository_dispatch:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:

build:
runs-on: ubuntu-latest
# needs: [set_environment]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,7 +29,7 @@ jobs:
with:
ruby-version: '3.3'
bundler-cache: true
cache-version: 0 # Increment this number if you need to re-download cached gems
cache-version: 1

- name: Setup Pages
id: pages
Expand All @@ -49,15 +44,16 @@ jobs:
- name: Test feed generation and validation
run: bundle exec ruby test/test_feeds.rb

- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
JEKYLL_LOG_LEVEL: debug
- name: Build static site
run: |
rm -rf _site
mkdir -p _site
cp index.html _site/index.html
cp -R feeds _site/feeds

- name: Verify published feed endpoints in _site
run: |
test -f _site/index.html
test -f _site/feeds/osv/index.json
test -f _site/feeds/ghsa/index.json
for pkg in rnp metanorma cla identity; do
Expand All @@ -66,10 +62,8 @@ jobs:
done

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v4

# Deployment job
deploy:
environment:
name: github-pages
Expand Down
24 changes: 0 additions & 24 deletions 404.html

This file was deleted.

48 changes: 4 additions & 44 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,47 +1,7 @@
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll"

# This is the default theme for new Jekyll sites. You may change this to anything you like.

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
gem "jekyll-theme-rop"
# gem "jekyll-theme-open-project", path: "~/src/jekyll-theme-open-project"

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-seo-tag"
gem "jekyll-sitemap"
gem "jekyll-data"
gem "jekyll-asciidoc"
gem "jekyll-redirect-from"
gem "git"
# gem "jekyll-theme-open-project-helpers"
gem "kramdown-parser-gfm"
gem "kramdown-syntax-coderay"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# frozen_string_literal: true

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

# For testing generated HTML pages and links
gem "rake"
gem "html-proofer"
source "https://rubygems.org"

# For OSV JSON schema validation of generated vulnerability feeds
gem "json_schemer"

gem "webrick", "~> 1.7"
gem "minitest"
gem "rake"
22 changes: 8 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SHELL := /bin/bash
all: _site

clean:
rm -rf _site _concepts feeds
rm -rf _site feeds

feeds: | bundle
bundle exec ruby scripts/generate_feeds.rb
Expand All @@ -15,19 +15,13 @@ validate-feeds: | bundle
test: feeds
bundle exec ruby test/test_feeds.rb

_site: feeds | bundle
bundle exec jekyll build
_site: feeds
rm -rf _site
mkdir -p _site
cp index.html _site/index.html
cp -R feeds _site/feeds

bundle:
bundle
bundle install

serve: feeds
bundle exec jekyll serve

update-init:
git submodule update --init

update-modules:
git submodule foreach git pull origin master

.PHONY: bundle all open serve clean feeds validate-feeds test update-init update-modules
.PHONY: bundle all clean feeds validate-feeds test _site
24 changes: 0 additions & 24 deletions README.adoc

This file was deleted.

27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# cve.ribose.com

This repository publishes machine-readable Open Source Vulnerability (OSV) and GitHub Security Advisory (GHSA) JSON feeds for tracked Ribose packages on `https://cve.ribose.com`.

## Sources

- `_data/packages.yml`: Tracked Tier A package registry (`rnpgp/rnp`, `metanorma/metanorma`, `riboseinc/cla`, `ribosei/identity`) with PURLs and feed paths aligned with `ribosei/provenance-instance`.
- `_data/cves/*.json`: Authoritative CVE JSON 5.0 and 5.1 records.
- `_advisories/*.adoc`: Ribose security advisories linked to CVE records.

## Endpoints

- `/feeds/osv/index.json`: OSV feed index keyed by package and PURL.
- `/feeds/osv/<package>.json`: Per-package OSV feed (`rnp`, `metanorma`, `cla`, `identity`).
- `/feeds/osv/<CVE-ID>.json`: Individual OSV-schema vulnerability records.
- `/feeds/ghsa/index.json`: GHSA feed index.
- `/feeds/ghsa/<package>.json`: Per-package GHSA feed (`rnp`, `metanorma`, `cla`, `identity`).

## Build and validation

```sh
make feeds
make test
make _site
```

Every generated OSV record is validated against the vendored OSV JSON Schema (`schemas/osv-schema.json`) before publication.
111 changes: 0 additions & 111 deletions _config.yml

This file was deleted.

16 changes: 0 additions & 16 deletions _layouts/advisory-index.html

This file was deleted.

5 changes: 0 additions & 5 deletions _layouts/cve.json

This file was deleted.

10 changes: 0 additions & 10 deletions _layouts/page_security.html

This file was deleted.

14 changes: 0 additions & 14 deletions _layouts/redirect.html

This file was deleted.

Loading
Loading