Scanning Your Application
Prerequisites
Scanning a backend build
# CommonJS
npx slnodejs scan \
--tokenFile ./sltoken.txt \
--buildSessionIdFile buildSessionId \
--scanDir "." \
--scmType git- name: SeaLights scan
env:
SL_TOKEN: ${{ secrets.SL_TOKEN }}
run: |
npx slnodejs scan \
--token "$SL_TOKEN" \
--buildSessionIdFile buildSessionId \
--scanDir "." \
--scmType gitnpx slnodejs scan `
--tokenFile .\sltoken.txt `
--buildSessionIdFile buildSessionId `
--scanDir "." `
--scmType git- script: |
npx slnodejs scan \
--token "$(SL_TOKEN)" \
--buildSessionIdFile buildSessionId \
--scanDir "." \
--scmType git
displayName: SeaLights scan (backend)Scanning a frontend build (bundled)
Produce source maps with column info
Run the scan
Clean up source maps before production
Monorepo / multi-module builds
Excluding files and folders
Key parameters
Parameter
Purpose
Troubleshooting
Symptom
Likely cause / fix
Last updated
Was this helpful?

