-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 844 Bytes
/
Copy pathupdate-readme.yml
File metadata and controls
35 lines (28 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Arta Security Auto Update
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
security-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run auto alerts
run: python scripts/auto_alert.py
- name: Update README timestamp
run: |
echo "" >> README.md
echo "Last security research update: $(date)" >> README.md
- name: Commit changes
run: |
git config --global user.name "security-bot"
git config --global user.email "bot@github.com"
git add .
git commit -m "auto: security update + alerts" || echo "no changes"
git push