This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
get-resolvers #187
This file contains 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: get-resolvers | |
# inspired from https://github.com/BonJarber/fresh-resolvers/blob/main/.github/workflows/refresh-resolvers.yaml | |
# which seems to be broken now | |
on: | |
schedule: | |
# Run daily | |
- cron: '0 21 * * *' | |
jobs: | |
get-resolvers: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
repository: 'vortexau/dnsvalidator' | |
path: dnsvalidator | |
- name: Install | |
run: | | |
cd dnsvalidator | |
python3 setup.py install | |
pip install contextvars | |
- name: Generate new resolvers | |
run: dnsvalidator -tL https://gist.githubusercontent.com/devanshbatham/ae9a4ccfb9e00ca4e1cc71f8a5d53768/raw/fcd046c247130a909a19dfd9732f0daf7725d8f6/nameservers.txt -threads 40 --silent > resolvers.txt | |
- name: Commit | |
run: | | |
git config --local user.email "research@sybilscan.com" | |
git config --local user.name "[bot] sybsilscan" | |
git add resolvers.txt | |
git commit -m "✨ Updating Resolvers" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |