exploit-db-mirror/.forgejo/workflows/exploit-db-pull-and-sync.yaml

28 lines
748 B
YAML

name: ExploitDB Mirror
on:
schedule:
# Run daily at midnight
- cron: '0 0 * * *'
workflow_dispatch:
# Allow manual trigger
jobs:
mirror:
runs-on: ubuntu-latest
container:
image: node:latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror ExploitDB Repository
run: |
git config --global user.name 'bpmcdevitt action'
git config --global user.email 'brendan@mcdevitt.tech'
git remote add exploitdb https://gitlab.com/exploit-database/exploitdb.git
git fetch exploitdb main
git merge --allow-unrelated-histories exploitdb/main
git push origin main