Giter Site home page Giter Site logo

tilton53 / kube-linter-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stackrox/kube-linter-action

0.0 0.0 0.0 26 KB

GitHub action for automating KubeLinter.

Home Page: https://github.com/stackrox/kube-linter

License: Apache License 2.0

kube-linter-action's Introduction

kube-linter-action - KubeLinter GitHub Action

This is a GitHub action for scanning Kubernetes YAML files and Helm charts in your GitHub workflow with kube-linter.

Quickstart

  1. Copy .github/workflows/kube-linter-sample.yml file to .github/workflows directory in your repo.
  2. Adjust scan directory to the location where your Kubernetes or Helm files are. See Parameters below.
  3. Adjust or remove config parameter.

The new workflow will run every time there's a new push to the repo master branch and for pull requests.

The workflow will fail if kube-linter detects issues. You'll find issues in the output of kube-linter-action and in Security | Code scanning alerts view of your GitHub repo (if you used provided sample workflow).

Example

      - name: Scan repo with kube-linter
        uses: stackrox/[email protected]
        with:
          directory: yamls
          config: .kube-linter/config.yaml
          format: sarif
          output-file: kube-linter.sarif

Parameters

Parameter name Required? Description
directory (required) Path of file or directory to scan, absolute or relative to the root of the repo.
config (optional) Path to a configuration file if you wish to use a non-default configuration.
format (optional) Output format. Allowed values: sarif, plain, json. Default is plain.
output-file (optional) Path to a file where kube-linter output will be stored. Default is kube-linter.log. File will be overwritten if it exists.
version (optional) kube-linter release version to use, e.g. "0.2.4". The latest available version is used by default.

kube-linter-action's People

Contributors

msugakov avatar viswajithiii avatar neilcar avatar jfreeland 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.