GithubHelp home page GithubHelp logo

leodido / lstn-demos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from garnet-org/sandbox

0.0 1.0 0.0 58 KB

Painting the town red with listen.dev

Home Page: https://lstn.dev/get-started

JavaScript 100.00%

lstn-demos's Introduction

listen.dev demos

lstn Release Notes

Understand your dependencies through behavioral monitoring & prevent supply chain attacks before they impact you. โšก

๐Ÿฌ Intro

This repo demonstrates an end-to-end workflow for using lstn with JS/TS projects ie.

  1. Scanning a project's dependencies automatically at every change
  2. Getting results (verdicts) inside dev workflows
  3. Customizing alerts and defining rule-based policy controls (preview)

It uses the action which is recommended for GitHub-based CI workflows. However, lstn can be integrated with any CI system through the CLI (see example workflow).

๐Ÿชœ Step-by-step guide

1) Invoking a scan

As is, any pull-request event on this repo will invoke a scan. Simply create a PR with your desired dependency changes in package.json.

2) Viewing results

View verdicts in PR comments and logs for the workflow.

See demo video.

3) Customizing alerts (optional)

  • The rules.yml file contains a list of pre-defined jq expressions, which can be piped with lstn outputs to enforce policy.
  • Setting the rule-name option to a name from the list (e.g. block_priority medium) will enforce that rule.
  • You can also ignore certain behaviors, which means that CI won't be halted even if that rule condition is met.

Some examples:

 # Ignore medium priority detections 

 - name: ignore_priority_medium
   query: .[] | select(.verdicts[]?.priority == "medium")
   behavior: ignore
   
 # Halt CI if any outbound network connection is detected

 - name: block_network_connection
   query: .[] | .verdicts[]? | select(.message == "unexpected outbound connection destination")

๐Ÿงฐ Supported platforms

lstn currently supports JavaScript/TypeScript through the npm package manager. We're constantly expanding our ecosystem support, please reach out if you have any specific requests.

๐Ÿ“– Documentation

Read about our detection approach, issue coverage and other concepts at docs.listen.dev

๐Ÿ”— Connect with listen.dev tribe

Hang out with us on Discord, contribute to our projects on GitHub, and contact our team directly at [email protected]

dolphin-3

lstn-demos's People

Contributors

jadoonf avatar leodido avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.