Code Monkey home page Code Monkey logo

cli-action's Introduction

Seal CLI Action

The CLI action allows users to easily incorporate the Seal CLI into their GitHub Actions based CI pipeline. The Seal CLI allows users to easily replace vulnerable packages in their projects with sealed, vulnerability-free versions, which are available for download from Seal's artifact server. To read more see the documentation.

Usage

Incorporating the CLI action is very simple. Just add the following code immediately after pulling the packages (for example npm install) and before any other step.

  name: seal cli
  uses: seal-community/cli-action@latest
  with:
    mode: fix
    fix_mode: all
    token: <token>
    project: <project-id>

Flags

fix_mode: If the mode is fix, then the fix_mode sets how the CLI decides what packages to fix. local only fixes packages according to the local configuration file, whereas all fixes everything that has an available sealed version. The default value is local.

mode: The mode to run the CLI. scan to analyze the dependencies and identify vulnerable packages. fix to replace vulnerable packages with their sealed versions. The default value is scan.

project: The project ID, which uniquely identifies the project on the Seal platform. If the project was already defined in the Seal platform (for example if its source code was scanned by the Seal app), then use the same ID here. Otherwise, the Seal platform will think this is a different project. If the project does not already have a project ID, then explicitiy set a new one here. The project ID must only include ASCII letters, digits, underscores, hyphens or periods, and mustn't be over 255 characters long. By default the empty string.

summary: If the mode is fix, then the path to a summary file recording what packages were replaced. By default the file is not generated.

target: The root directory of the project you wish to fix. By default the current working directory of the GitHub action.

token: The authentication token to the Seal artifact server.

verbosity: Sets the verbosity level of the CLI: v, vv or vvv. By default v.

version: The CLI version to use, for example v0.1.0. By default the latest version will be used.

How to Contribute

We're always looking for feedback, discuss possible integrations and receive feature requests. Please open issues, pull requests, or contact us at [email protected].

About Seal Security

Seal Security Logo

Seal Security is an early-stage cybersecurity startup committed to simplifying vulnerability remediation for developers and application security practitioners. For more details, visit our website.

cli-action's People

Contributors

seal-community-actions-default-app[bot] avatar seal-devops avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.