Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFLY-18570 Automated-(ish) CVE status reporting #470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/cve_reporting.yml
Original file line number Diff line number Diff line change
@@ -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/wildfly/wildfly/main/cve_details/cve.yml

- name: Commit and Push Changes
run: |
git config user.name "RanabirChakraborty"
git config user.email "[email protected]"
Comment on lines +21 to +22
Copy link
Member

@rhusar rhusar Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never use personal account for automations like this, use a bot account.

git add _data/releases.yml
git commit -m "Update CVE details"

- 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
Empty file added _data/cve_data.yml
Empty file.