Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.09 KB

File metadata and controls

38 lines (29 loc) · 1.09 KB

gh-action-virustotal-link-checker

GitHub action to check for Malicious URLs using VirusTotal API

Get VirusTotal API KEY here

Due to VirusTotal API personal limits, GH Action checks each url every 30 seconds

Idea: Thanks to Eric Siu a.k.a randomishwalk issue link

Demo action run

Example:

name: Check Malicious Links

on:
  push:
    branches:
      - 'main'
  pull_request:
    branches:
      - 'main'

jobs:
  check-links:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v4

      - name: Run VirusTotal Link Checker
        uses: arddluma/[email protected]
        with:
            virustotal-api-key: ${{ secrets.VIRUS_TOTAL_API_KEY }}
            filename: 'README.md'
            malicious_threshold: 1
            suspicious_threshold: 1