garnet-org / lstn-policy

Enforce policy using listen.dev

Home Page:https://docs.listen.dev/lstn-github-action/quick-start

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lstn Policy

version: 0.0.2 (pre-release)

Enforce rule-based policies to control the behavior of your dependencies using listen.dev

Usage

See action.yml.

Basic

steps:
  - uses: garnet-org/lstn-policy@v0.0.3

Workflows

To scan and project and enforce policy

Uses rules.yml in the root directory.

steps:
  - uses: garnet-org/lstn-policy@v0.0.3
    with:
      # The working directory relative to the root one.
      # Defaults to the root directory.
      workdir: "."
      # The lstn command to execute
      # Defaults to 'scan'
      lstn-command: 'scan'
      # The option to apply policy
      # Default is true
      apply-policy: true
      # The rules file to use
      # Defaults to './rules.yml'
      rules-file: 'rules.yml'
      # The name of the rule to enforce from rules.yml
      # Defaults to 'ignore_priority_medium'
      rule-name: 'ignore_priority_medium'

See docs for a detailed guide rules and policy enforcement.

About

Enforce policy using listen.dev

https://docs.listen.dev/lstn-github-action/quick-start