magic loops
GitHub Vulnerability Analyzer
API Call 🚇
Trigger the loop when a network request is made to this loop's unique auto-generated API URL. The request body will contain a string called 'gitDiff'.
Loading...
API Response 🚇
Return the severity rating and description of vulnerabilities back to the original network request.
Description
Description
Create an API that takes in a git diff, passed via a string called "gitDiff" and then use an LLM block to analyze the code changes. Please return a severity rating, between low, medium, and high for the changes, along with a description of the vulnerabilities.
Setup
- Add this file as
.github/workflows/vulnerability-scan.yml
in your repository - Make sure you change the Magic Loop URL to match your copy of this Loop (
https://magicloops.dev/api/loop/run/YOUR_LOOP_ID
) - Ensure that your Github Token has write access to your repository
5.0 (1 rating)
340 runs