Skip to content

Express IP Updater 2 #1705

Express IP Updater 2

Express IP Updater 2 #1705

Workflow file for this run

name: Express IP Updater 2
on:
schedule:
- cron: '30 */1 * * *' # Runs every 1 hours
workflow_dispatch: # Allows manual trigger
jobs:
update-ips:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # Enable pip caching
- name: Cache pip packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies and zmap
run: |
python -m pip install --upgrade pip
pip install dnspython
pip install requests
- name: Gather ExpressVPN subnets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python express.py
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
- name: Commit changes
run: |
git add express_ips.csv new_express_ips.csv express_subnet.txt
git diff-index --quiet HEAD || git commit -m "[AUTO] update IoCs $(date '+%Y-%m-%d %H:%M:%S')"
- name: Push changes
id: push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}