NVD Sync #1474
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NVD Sync | |
on: | |
schedule: | |
- cron: "0 */2 * * *" | |
workflow_dispatch: | |
jobs: | |
nvd-sync: | |
name: NVD Sync | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Sync with NVD | |
run: | | |
python ./sync.py $GITHUB_WORKSPACE | |
- name: Set up Git configuration | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Commit changes | |
run: | | |
git status | |
git add . | |
git commit -m "NVD Sync $(date -u '+%Y-%m-%d %H:%M')" | |
- name: Push changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git push |