chore: index dmarc by domain

This commit is contained in:
Guido García 2021-07-21 08:49:41 +02:00
parent 699943b1e0
commit c6c07ed1a6

View File

@ -25,12 +25,12 @@ jobs:
python -m pip install --upgrade pip
pip install checkdmarc==4.4.1
# Use the standalone checkdmarc tool.
# Use the standalone checkdmarc tool, index results by domain for faster lookup.
# Using the API would be more flexible, but this is easier to implement for now.
- name: Check DMARC information about public sites
run: |
SITES=$(find {_data/general.json,_data/{comunidades,provincias}/*.json} | xargs cat | jq -r .webs[].url)
checkdmarc --skip-tls --timeout 1 ${SITES} > _data/results/dmarc/summary.json
checkdmarc --skip-tls --timeout 1 ${SITES} | jq 'INDEX(.domain)' > _data/results/dmarc/summary.json
# The resulting commit will not trigger another GitHub Actions Workflow run.
# This is due to limitations set by GitHub.