-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.15 KB
/
atomic-red-extraction.yml
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
36
37
38
name: Atomic Red Attack Extraction
on:
schedule:
- cron: '30 5 * * 1'
jobs:
atomic_red_extract:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Extraction script
run: |
pip install gitpython pandas pyyaml tabulate
rm -rf atomic-red-attacks.csv atomic-red-attacks.md
python atomic-extractor.py
rm -rf atomic-red-team
- name: Generate commit with extracted Content
run: |
git config --local user.name "${{ secrets.GIT_NAME }}"
git config --local user.email "${{ secrets.GIT_MAIL }}"
git add atomic-red-attacks.csv atomic-red-attacks.md
git commit -m "$(TZ=Asia/Kolkata date +'%Y-%m-%d - %H:%M IST - Atomic Red Attack Extraction')"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_TOKEN }}
branch: ${{ github.ref }}