.github/workflows/update.yml aktualisiert

This commit is contained in:
2026-11-10 18:46:54 +01:00
parent 01a09a9c92
commit a5631555ab
+16 -30
View File
@@ -1,9 +1,9 @@
name: CVE Synchronisation
on:
workflow_dispatch:
schedule:
- cron: "17 * * * *"
- cron: '17 * * * *'
workflow_dispatch:
permissions:
contents: write
@@ -13,42 +13,28 @@ concurrency:
cancel-in-progress: false
jobs:
update:
mirror:
runs-on: vuln-runner
timeout-minutes: 240
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: true
token: ${{ secrets.GITEA_TOKEN }}
- name: Versionen prüfen
persist-credentials: true
fetch-depth: 1
- name: Sync CVE using persistent local cache
run: python3 scripts/sync.py --since-year 2017 --cache-dir /var/cache/vuln-cve
- name: Validate mirror
run: python3 scripts/validate.py
- name: Push changes
run: |
git --version
python3 --version
rsync --version
- name: CVE-Daten aktualisieren
run: |
python3 scripts/sync.py --since-year 2017
- name: Daten validieren
run: |
python3 scripts/validate.py
- name: Änderungen übertragen
run: |
git config user.name "Vulnerability Bot"
git config user.email "vuln-bot@apex-project.de"
git add data/ state/
git config user.name 'Vulnerability Bot'
git config user.email 'vuln-bot@users.noreply.local'
git add -A data state
if git diff --cached --quiet; then
echo "Keine Änderungen"
echo 'No data changes'
exit 0
fi
git commit -m "CVE update $(date -u +%F)"
git push origin HEAD:main
git commit -m "CVE sync $(date -u +%Y-%m-%dT%H:%M:%SZ)"
git push origin HEAD:main