mirror of
https://github.com/0xMarcio/cve.git
synced 2025-06-19 17:30:12 +00:00
Update Mon May 27 03:34:06 CEST 2024
This commit is contained in:
parent
837985c555
commit
dc50746c84
37
.github/workflows/generate_cve_json.yml
vendored
Normal file
37
.github/workflows/generate_cve_json.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Generate CVE JSON
|
||||
|
||||
on:
|
||||
push: # This will run the workflow on every push
|
||||
branches:
|
||||
- main # Adjust this if you want to run on other branches as well
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # This will run the workflow every day at midnight UTC
|
||||
|
||||
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 docs
|
||||
python generate_cve_json.py
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
cd ..
|
||||
git config --global user.name '0xMarcio'
|
||||
git config --global user.email 'marc@codepwn.win'
|
||||
git add docs/CVE_list.json
|
||||
git commit -m 'Update CVE list JSON'
|
||||
git push
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user