Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thx #375

Closed
wants to merge 46 commits into from
Closed

Thx #375

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
22a1fdc
h
MakotoGew Nov 26, 2024
431d8e9
Update cna-assignment-info-to-json.pl
MakotoGew Dec 2, 2024
bc0ff11
Update cna-assignment-info-to-json.pl
MakotoGew Dec 2, 2024
e17de45
Merge pull request #1 from Makotogew/Makotogew-patch-1
MakotoGew Dec 2, 2024
2c8699e
Update validate-schema.yml
MakotoGew Dec 2, 2024
c56df4a
Update validate-schema.yml
MakotoGew Dec 2, 2024
dd3bf63
Update validate-schema.yml
MakotoGew Dec 3, 2024
ce4b3cf
Update validate-schema.yml
MakotoGew Dec 3, 2024
e7fd556
Update validate-schema.yml
MakotoGew Dec 4, 2024
b1bda9e
Update validate-schema.yml
MakotoGew Dec 4, 2024
003af5e
Update validate-schema.yml
MakotoGew Dec 4, 2024
cb5dd87
Update validate-schema.yml
MakotoGew Dec 4, 2024
d2ac51c
Update validate-schema.yml
MakotoGew Dec 4, 2024
f2e62bf
Update validate-schema.yml
MakotoGew Dec 4, 2024
15110f2
Revert "Update cna-assignment-info-to-json.pl"
MakotoGew Dec 9, 2024
f7d3e95
Merge pull request #4 from Makotogew/revert-1-Makotogew-patch-1
MakotoGew Dec 9, 2024
e0551a4
Update validate-schema.yml
MakotoGew Dec 10, 2024
1756ee9
Update validate-schema.yml
MakotoGew Dec 10, 2024
e36cb46
Update cna-assignment-info-to-json.pl
MakotoGew Dec 10, 2024
ae3ed14
Update cmdlinejsonvalidator.py
MakotoGew Dec 10, 2024
3abf156
Update validate-schema.yml
MakotoGew Dec 12, 2024
48a11e2
Revert "Update cna-assignment-info-to-json.pl"
MakotoGew Dec 12, 2024
e2d75a8
Merge pull request #5 from Makotogew/revert-1-Makotogew-patch-1
MakotoGew Dec 12, 2024
a76ea13
Update CVE_Record_Format.json
MakotoGew Dec 21, 2024
41ecc02
Update CVE_Record_Format.json
MakotoGew Dec 21, 2024
a1868f5
Merge pull request #7 from Makotogew/Makotogew-patch-3
MakotoGew Dec 21, 2024
58b9cd0
Rename validate-schema.yml to validate-schema.yml
MakotoGew Dec 21, 2024
9f34fcc
Rename validate-schema.yml to validate-schema.yml
MakotoGew Dec 21, 2024
c80e961
Create Download
MakotoGew Dec 22, 2024
de538a5
Update and rename Download to Create a folder
MakotoGew Dec 22, 2024
efda3c7
Rename Create a folder to Create a folder
MakotoGew Dec 22, 2024
567209d
Create dependabot.yml
MakotoGew Dec 22, 2024
5badd2e
Rename validate-schema.yml to validate-schema.yml
MakotoGew Dec 22, 2024
6b60c58
Update validate-schema.yml
MakotoGew Dec 22, 2024
2ea4bfb
Update validate-schema.yml
MakotoGew Dec 22, 2024
db71e96
Update validate-schema.yml
MakotoGew Dec 28, 2024
d2b99d1
Update validate-schema.yml
MakotoGew Dec 28, 2024
0bfd944
Create jekyll-docker.yml
MakotoGew Dec 28, 2024
5f07317
Update .gitignore
MakotoGew Jan 2, 2025
f9b586f
Update LICENSE.txt
MakotoGew Jan 2, 2025
d50f301
Update cmdlinejsonvalidator.py
MakotoGew Jan 3, 2025
e422706
Update cna-assignment-info-to-json.pl
MakotoGew Jan 3, 2025
2067b6b
Update mitre-cna-assignment-info.js
MakotoGew Jan 3, 2025
0bc9577
Update jekyll-docker.yml
MakotoGew Jan 3, 2025
bf93a29
Create npm-publish-github-packages.yml
MakotoGew Jan 3, 2025
f8e6567
Rename dependabot.yml to dependabot.yml
MakotoGew Jan 3, 2025
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
8 changes: 8 additions & 0 deletions .github/workflows/Create a folder
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Create a folder
$ mkdir actions-runner && cd actions-runner
# Download the latest runner package
$ curl -o actions-runner-linux-x64-2.321.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-x64-2.321.0.tar.gz
# Optional: Validate the hash
$ echo "ba46ba7ce3a4d7236b16fbe44419fb453bc08f866b24f04d549ec89f1722a29e actions-runner-linux-x64-2.321.0.tar.gz" | shasum -a 256 -c
# Extract the installer
$ tar xzf ./actions-runner-linux-x64-2.321.0.tar.gz
20 changes: 20 additions & 0 deletions .github/workflows/jekyll-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Jekyll site CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
20 changes: 10 additions & 10 deletions .github/workflows/validate-schema.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Validate JSON Schemas
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
branches:
- master
Name: Update Validate-Schema.yml
Validate JSON Schemas
On:
Push:
Branches:
- Master
Pull_Request:
Types: [Opened, Synchronize, Reopened]
Workflow_dispatch:
branches - master
env:
CVE_SCHEMA_DIR: schema
CVE_SCHEMA_FILENAME: CVE_Record_Format.json
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

package-lock.json
node_modules
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Creative Commons Legal Code
Creative Commons Legal Code

CC0 1.0 Universal

Expand Down
4 changes: 3 additions & 1 deletion schema/CVE_Record_Format.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{


{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://cveproject.github.io/cve-schema/schema/CVE_Record_Format.json",
"title": "CVE JSON record format",
Expand Down
4 changes: 2 additions & 2 deletions tools/cmdlinejsonvalidator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#!/usr/bin/env python

###################################################################################
###################################################################################
###################### Python Script to validate JSON file ########################
###################################################################################

Expand Down
4 changes: 2 additions & 2 deletions tools/cna-assignment-info-to-json.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#/usr/bin/perl -w
#
# Convert CNA assignment information in CSV or flat file format to JSON.
#
Expand All @@ -7,7 +7,7 @@

######################################################################
use strict;
use Getopt::Long;
use Getopt::Long;
use JSON::XS;
use Text::CSV_XS;

Expand Down
2 changes: 1 addition & 1 deletion tools/mitre-cna-assignment-info.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// Runs an HTTP server to prompt for CVE assignment information and
// outputs that in a format for submission to MITRE.
//
Expand Down