Scan open ports with vulnerabilities and report results as JSON.
Github action that scan open ports with nmap and its vulners script and report results as JSON.
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: "MTES-MCT/nmap-action@main"
with:
host: scanme.nmap.org
outputDir: 'scans'
outputFile: 'nmapvuln.json'
raw: false
withVulnerabilities: true
You can choose your withVulnerabilities or not. You can choose directory output and file name.
See action.yml for details and default inputs.
To test locally, install act.
npm run all
act -j units