diff --git a/.github/workflows/cve_reporting.yml b/.github/workflows/cve_reporting.yml new file mode 100644 index 00000000..f2c4a825 --- /dev/null +++ b/.github/workflows/cve_reporting.yml @@ -0,0 +1,32 @@ +name: CVE report publish + +on: + schedule: + - cron: '0 0,4,8,12,16,20 * * *' + +jobs: + fetch-cve-data: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Fetch CVE Data + run: | + curl -o _data/releases.yml -L https://raw.githubusercontent.com/RanabirChakraborty/wildfly/WFLY-18570/cve_details/cve.yml + + - name: Commit and Push Changes + run: | + git config user.name "RanabirChakraborty" + git config user.email "rchakrab@redhat.com" + git add _data/releases.yml + git commit -m "Update CVE data" + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + branch: update-cve-data + base: main + title: Update CVE data + body: Automated update of CVE data \ No newline at end of file diff --git a/_data/cve_data.yml b/_data/cve_data.yml new file mode 100644 index 00000000..e69de29b