Skip to content

Commit

Permalink
chore: adjustments to automation and enable cron
Browse files Browse the repository at this point in the history
Signed-off-by: Weston Steimel <[email protected]>
  • Loading branch information
westonsteimel committed May 24, 2024
1 parent b41e312 commit b2a62d9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
workflow_dispatch:
#schedule:
# - cron: '0 * * * MON-FRI'
schedule:
- cron: '20 * * * MON-FRI'

jobs:
generate:
Expand Down
1 change: 1 addition & 0 deletions scripts/commit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -l
set -euxo pipefail

commit=$(git -C cve-data-enrichment rev-parse HEAD)
git add .
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def generate():

override["cve"]["configurations"].append(configuration)

override_path = f"nvd-data-overrides/data/{year}"
override_path = f"data/{year}"

if not os.path.exists(override_path):
os.makedirs(override_path)
Expand Down
6 changes: 4 additions & 2 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -l
git clone --depth 0 https://github.com/anchore/cve-data-enrichment
git clone --depth 0 https://github.com/westonsteimel/national-vulnerability-database
set -euxo pipefail

git clone --depth 1 https://github.com/anchore/cve-data-enrichment
git clone --depth 1 https://github.com/westonsteimel/national-vulnerability-database

python scripts/generate.py

0 comments on commit b2a62d9

Please sign in to comment.