Automate CVE PoC ingestion

This commit is contained in:
0xMarcio committed 2026-08-29 00:21:06 +02:00
1 parent ac970d10ac
commit a62cda8ec8
5953 files changed
+131557 -834

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
{
"cvelist_fetch_time": "2026-08-28T21:54:44.270Z"
}
+6 -2
View File
@@ -5,6 +5,10 @@ on:
schedule:
- cron: '0 */6 * * *'
concurrency:
group: repository-updates
cancel-in-progress: false
jobs:
ScheduledRun:
runs-on: ubuntu-latest
@@ -12,10 +16,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: '3.12'
+2 -2
View File
@@ -22,10 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: '3.12'
+34 -15
View File
@@ -5,33 +5,52 @@ on:
- cron: "15 2 * * *"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: repository-updates
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v7
with:
python-version: '3.x'
python-version: '3.13'
- name: Update CVE records from GitHub PoCs
run: python scripts/update_cves.py
- name: Test CVE sync
run: python3 -m unittest discover -s tests -v
- name: Check for changes and commit
- name: Discover and ingest CVE PoCs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name '0xMarcio'
git config --global user.email '[email protected]'
git remote set-url origin https://github-actions[bot]:[email protected]/0xMarcio/cve.git
run: python3 scripts/update_cves.py --lookback-days 3
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Daily CVE sync $(date +'%Y-%m-%d %H:%M')"
git push origin main
else
- name: Check for changes and commit
run: |
git config user.name 'CVE-BOT'
git config user.email '[email protected]'
git add --all -- \
.github/cve_sync_state.json \
github.txt \
references.txt \
docs/CVE_list.json \
docs/CVE_blacklist_removed.json \
':(top,glob)[12][0-9][0-9][0-9]/CVE-*.md'
if git diff --cached --quiet; then
echo "No changes to commit"
else
git commit -m "Update CVE PoCs $(date -u +'%Y-%m-%d')"
git pull --rebase origin main
git push origin main
fi