Daily scraper of CISA KEV #1144
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: Daily scraper of CISA KEV | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '6 18 * * *' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Scrape CISA KEV CSV | |
run: curl --silent --output docs/$(date -I)-cisa-kev.csv https://www.cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv | |
- name: Scrape CISA KEV JSON | |
run: curl --silent --output docs/$(date -I)-cisa-kev-json https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Update data: ${timestamp}" || exit 0 | |
git push |