-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.42 KB
/
Copy pathphishing-check.yml
File metadata and controls
51 lines (44 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Phishing Domain Check
on:
workflow_dispatch:
inputs:
urls:
description: 'List of URLs to scan (space or comma-separated)'
required: true
type: string
output_format:
description: 'Choose output format (terminal, json, csv)'
required: true
default: 'terminal'
type: choice
options:
- terminal
- json
- csv
jobs:
domain-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Save input URLs to file
run: |
# Replace both spaces and commas with newlines, then remove empty lines
echo "${{ github.event.inputs.urls }}" | tr ' ,' '\n\n' | grep -v '^$' > workflow_urls.txt
cat workflow_urls.txt
- name: Run phishing checker
run: python phishing_checker.py workflow_urls.txt --output ${{ github.event.inputs.output_format }}
- name: Upload results
if: github.event.inputs.output_format != 'terminal'
uses: actions/upload-artifact@v4
with:
name: phishing-check-results
path: results.${{ github.event.inputs.output_format }}
retention-days: 7