mirror of
https://github.com/bitwarden/browser
synced 2026-02-03 02:03:53 +00:00
add wip workflow
This commit is contained in:
34
.github/workflows/go-phish.yml
vendored
Normal file
34
.github/workflows/go-phish.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Update Phishing Domains Data
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 */14 * *' # Every 14 days at midnight UTC
|
||||
workflow_dispatch: # Allow manual runs
|
||||
|
||||
jobs:
|
||||
update-phishing-db:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y moreutils jq curl
|
||||
# Install GNU split as gsplit (for macOS compatibility, on Ubuntu it's just split)
|
||||
sudo apt-get install -y coreutils
|
||||
|
||||
- name: Run phishing domains update script
|
||||
run: bash ./clients/apps/browser/src/dirt/phishing-detection/services/fetch-phishing-domains.sh
|
||||
|
||||
- name: Commit and create PR
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
commit-message: "chore: update phishing domains data"
|
||||
branch: update/phishing-domains-data
|
||||
title: "chore: update phishing domains data"
|
||||
body: |
|
||||
This PR updates the local phishing domains data and checksum.
|
||||
labels: |
|
||||
automated
|
||||
Reference in New Issue
Block a user