From a5631555ab64f825c7e1ae904c95c7c182b9e51d Mon Sep 17 00:00:00 2001 From: Ronny Grobel Date: Tue, 10 Nov 2026 18:46:54 +0100 Subject: [PATCH] .github/workflows/update.yml aktualisiert --- .github/workflows/update.yml | 46 +++++++++++++----------------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index eab5dc30ce..a7d639e529 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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 \ No newline at end of file + git commit -m "CVE sync $(date -u +%Y-%m-%dT%H:%M:%SZ)" + git push origin HEAD:main