Daily Cyber-Sec News #94
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: Daily Cyber-Sec News | |
| on: | |
| workflow_dispatch: # Manual trigger for testing | |
| schedule: | |
| - cron: '0 13 * * *' # 08:00 EST (13:00 UTC) Every day | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: "${{ secrets.GH_PAT }}" # GH_PAT must be set as a repository secret in GitHub Settings > Secrets and variables > Actions. If you see context access errors, verify the secret name and permissions. | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Run news fetch script | |
| run: | | |
| chmod +x scripts/fetch-news.sh | |
| ./scripts/fetch-news.sh | |
| - name: Validate CSV | |
| run: python3 scripts/validate_csv.py |