Skip to content

Update CVE sources 2024-08-12 19:01 #42

Update CVE sources 2024-08-12 19:01

Update CVE sources 2024-08-12 19:01 #42

name: Generate CVE JSON
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Change directory to docs and run CVE JSON generator script
run: |
cd /home/runner/work/cve/cve/docs
python generate_cve_list.py
- name: Check for changes and commit if necessary
run: |
cd /home/runner/work/cve/cve
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
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Update CVE list $(date +'%Y-%m-%d %H:%M')"
git push origin main
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}