Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
After running an agentic code scan, use defender fix to generate AI-powered code fixes from your scan results.
Prerequisites
Before you start:
- Install Defender CLI. See Set up the Defender CLI.
- Install GitHub Copilot CLI. See Installing GitHub Copilot in the CLI.
- Complete at least one scan and have a SARIF results file. See Run agentic code scans.
Apply fixes
To fix findings, run the following command with your SARIF results file:
defender fix ./defender-aiscan-<JOB_ID>.sarif
To fix findings at all severity levels, specify a severity threshold. Findings at or above the severity threshold are included.
defender fix ./results.sarif --severity low