Skip to content

AutoClone

AutoClone #1042

Workflow file for this run

name: AutoClone
on:
schedule:
- cron: '0 1 * * *'
jobs:
AutoClone:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: main
persist-credentials: false
- name: AutoClone
run: |
pl=(https://github.com/Accenture/VulFi https://github.com/REhints/HexRaysCodeXplorer https://github.com/a1ext/auto_re https://github.com/polymorf/findcrypt-yara https://github.com/gaasedelen/patching https://github.com/keystone-engine/keypatch https://github.com/herosi/CTO https://github.com/aliyunav/Finger https://github.com/L4ys/LazyIDA https://github.com/P4nda0s/IDABeautify https://github.com/SentineLabs/AlphaGolang https://github.com/sibears/IDAGolangHelper https://github.com/sonyps5201314/pdb https://github.com/JusticeRage/Gepetto https://github.com/harlamism/IdaClu https://github.com/thalium/symless https://github.com/airbus-cert/Yagi https://github.com/cseagle/blc https://github.com/jitcor/export_func_code)
# 设置Git
git config --local user.name "AnonymousUser"
git config --local user.email "[email protected]"
git remote set-url origin https://${{ github.actor }}:${{ secrets.ACCESS_TOKEN }}@github.com/${{ github.repository }}
# 循环Clone
for i in ${pl[*]}; do
OLD_IFS="$IFS"
IFS="/"
arr=($i)
IFS="$OLD_IFS"
key=`expr ${#arr[@]} - 1`
dir=${arr[$key]}
echo $dir
rm -rf $dir
git clone $i
rm -rf $dir/.git/
done
# 添加
git add .
git commit -am "Update"
git push origin main