Update Threat Intelligence Feed #8
This file contains hidden or 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: Update Threat Intelligence Feed | |
| on: | |
| schedule: | |
| # Runs every day at 3:05 AM CST (09:05 UTC) | |
| - cron: '5 9 * * *' | |
| workflow_dispatch: | |
| # Allows manual trigger from GitHub Actions tab | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ref: main | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install requests python-dateutil | |
| - name: Fetch threat intelligence and update README | |
| run: python .github/scripts/update_threat_intel.py | |
| - name: Commit updated README | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "4th and Bailey — Threat Intel Bot" | |
| git add profile/README.md | |
| git diff --staged --quiet || git commit -m "🔐 Auto-update: Threat Intelligence Feed $(date +'%Y-%m-%d')" | |
| git push origin main |