Skip to content

https://raw.githubusercontent.com/stamparm/maltrail/master/trails/static/malware/azorult.txt #91

https://raw.githubusercontent.com/stamparm/maltrail/master/trails/static/malware/azorult.txt

https://raw.githubusercontent.com/stamparm/maltrail/master/trails/static/malware/azorult.txt #91

Workflow file for this run

name: Check blocklist
on:
issues:
types:
- labeled
permissions:
contents: write
issues: write
jobs:
check-blocklist:
if: ${{ github.event.label.name == 'check blocklist' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Check blocklist
run: |
# On error
trap 'gh issue comment ${{ github.event.issue.number }} -b \
"An error occured while checking the blocklist." \
&& gh issue edit ${{ github.event.issue.number }} \
--remove-label 'checking' --add-label "errored"' ERR
# Add 'checking' label
gh issue edit ${{ github.event.issue.number }} --add-label 'checking'
# Get URl of blocklist
url="$(grep 'http' <<< "${{ github.event.issue.body }}")"
bash scripts/check.sh "$url"
# Update issue title and label
title="$(mawk -F '*' '/Report for/ {print $2}' data/TEMPLATE.md)"
gh issue edit ${{ github.event.issue.number }} -t "$title" \
--remove-label 'checking' --add-label 'report generated'
# Comment results
gh issue comment ${{ github.event.issue.number }} -b \
"$(cat data/TEMPLATE.md)"
env:
GH_TOKEN: ${{ github.token }}