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
18 changes: 18 additions & 0 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,31 @@ jobs:
id: pages
uses: actions/configure-pages@v5

- name: Generate OSV and GHSA feeds
run: bundle exec ruby scripts/generate_feeds.rb

- name: Validate OSV and GHSA feeds
run: bundle exec ruby scripts/validate_feeds.rb

- 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: Verify published feed endpoints in _site
run: |
test -f _site/feeds/osv/index.json
test -f _site/feeds/ghsa/index.json
for pkg in rnp metanorma cla identity; do
test -f "_site/feeds/osv/${pkg}.json"
test -f "_site/feeds/ghsa/${pkg}.json"
done

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_site
feeds
# parent-hub/
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform?
gem "rake"
gem "html-proofer"

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

gem "webrick", "~> 1.7"
18 changes: 14 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@ SHELL := /bin/bash
all: _site

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

_site: | bundle
feeds: | bundle
bundle exec ruby scripts/generate_feeds.rb
bundle exec ruby scripts/validate_feeds.rb

validate-feeds: | bundle
bundle exec ruby scripts/validate_feeds.rb

test: feeds
bundle exec ruby test/test_feeds.rb

_site: feeds | bundle
bundle exec jekyll build

bundle:
bundle

serve:
serve: feeds
bundle exec jekyll serve

update-init:
Expand All @@ -20,4 +30,4 @@ update-init:
update-modules:
git submodule foreach git pull origin master

.PHONY: bundle all open serve clean update-init update-modules
.PHONY: bundle all open serve clean feeds validate-feeds test update-init update-modules
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,7 @@ exclude:
- Makefile
- Rakefile
- README.adoc
- schemas
- scripts
- test
- vendor # for deployment
65 changes: 65 additions & 0 deletions _data/packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Authoritative tracked-package registry for cve.ribose.com OSV and GHSA feeds.
# Aligned with ribosei/provenance-instance (config/provenance.yaml).
packages:
- repo: rnpgp/rnp
org: rnpgp
name: rnp
tier: A
release_stream: "0.18.x"
ecosystem: GIT
package_name: rnpgp/rnp
purl: pkg:github/rnpgp/rnp
product_names:
- RNP
- rnpgp/rnp
repo_urls:
- https://github.com/rnpgp/rnp
osv_feed_path: /feeds/osv/rnp.json
ghsa_feed_path: /feeds/ghsa/rnp.json

- repo: metanorma/metanorma
org: metanorma
name: metanorma
tier: A
release_stream: "2.5.x"
ecosystem: RubyGems
package_name: metanorma
purl: pkg:gem/metanorma
product_names:
- metanorma
- Metanorma
repo_urls:
- https://github.com/metanorma/metanorma
osv_feed_path: /feeds/osv/metanorma.json
ghsa_feed_path: /feeds/ghsa/metanorma.json

- repo: riboseinc/cla
org: riboseinc
name: cla
tier: A
release_stream: "1.x"
ecosystem: GIT
package_name: riboseinc/cla
purl: pkg:github/riboseinc/cla
product_names:
- cla
- CLA
repo_urls:
- https://github.com/riboseinc/cla
osv_feed_path: /feeds/osv/cla.json
ghsa_feed_path: /feeds/ghsa/cla.json

- repo: ribosei/identity
org: ribosei
name: identity
tier: A
release_stream: "0.4.x"
ecosystem: GIT
package_name: ribosei/identity
purl: pkg:github/ribosei/identity
product_names:
- identity
repo_urls:
- https://github.com/ribosei/identity
osv_feed_path: /feeds/osv/identity.json
ghsa_feed_path: /feeds/ghsa/identity.json
Loading
Loading