forked from danielmiessler/SecLists
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 994 Bytes
/
wordlist-validator.yml
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
# Validate that no entry start with a "/" for every modified or added files.
# Sources:
# https://dev.to/scienta/get-changed-files-in-github-actions-1p36
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
# https://github.com/marketplace/actions/changed-files\
#
# Modified to add a validator script
name: Wordlist Validator - Runs a validator script to check for dangerous pushes
on:
push:
paths:
- "**.txt"
pull_request:
paths:
- "**.txt"
workflow_dispatch:
jobs:
check_files_changed:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
with:
files: "**/*.txt"
uses: tj-actions/changed-files@v34
- name: Analyze all added or modified files
run: |
./.bin/validators.py
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}