ci: use zizmor and remediate findings (#29)
This tool flattens the SPF record for a given domain to avoid reaching the 10 DNS lookup cap.
*if not provided, will lookup and use existing SPF record for domain
**unless dryrun is false, then required
Base case: one-time flatten tool, just want to output flattened record:
go run main.go --domain <domain> --warn false
Dynamic update case: update SPF tool that acts without intervention. For example, a cron job that runs:
go run main.go --domain <domain> --initialSPF "<spfRecord>" --dryrun false --warn false --url "<url>" --authEmail "<email>" --authKey "<key>"
Dynamic warning case: recurring check SPF tool that alerts/warns on change. For example, a cron job that runs:
go run main.go --domain <domain> --intialSPF="<spfRecord>"
Then once someone checks/approves of change, run once:
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
SPF-FLATTENER
This tool flattens the SPF record for a given domain to avoid reaching the 10 DNS lookup cap.
Flags
*if not provided, will lookup and use existing SPF record for domain
**unless dryrun is false, then required
Example use cases
Base case: one-time flatten tool, just want to output flattened record:
Dynamic update case: update SPF tool that acts without intervention. For example, a cron job that runs:
Dynamic warning case: recurring check SPF tool that alerts/warns on change. For example, a cron job that runs:
Then once someone checks/approves of change, run once: