Skip to content

Jegan-Kunniya/code-scanning-demo-template

This branch is up to date with octodemo/code-scanning-demo-template:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

295b215 · Jul 29, 2022

History

15 Commits
May 8, 2020
May 8, 2020
May 8, 2020
May 8, 2020

Repository files navigation

Code Scanning JavaScript Demo

This repository demonstrates an instance of CWE-020: Improper Imput Validation.

  1. Run through the setup flow in the security tab to enable code scanning. Commit directly to master.
  2. Go to actions, and confirm that the analysis has run successfully.
  3. Edit script.js and add this code snippet. Create a PR. Wait for validation.
function endsWith(x, y) {
  return x.lastIndexOf(y) === x.length - y.length;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%