Git Product home page Git Product logo

action-install-kyverno-json's Introduction

action-install-kyverno-json

This action enables you to install kyverno-json.

For a quick start guide on the usage of kyverno-json, please refer to https://kyverno.github.io/kyverno-json.

Usage

This action currently supports GitHub-provided Linux, macOS and Windows runners (self-hosted runners may not work).

Add the following entry to your Github workflow YAML file:

uses: kyverno/action-install-kyverno-json@main
with:
  release: 'v0.0.1' # optional

Example using a pinned version:

jobs:
  example:
    runs-on: ubuntu-latest

    permissions: {}

    name: Install kyverno-json
    steps:
      - name: Install kyverno-json
        uses: kyverno/action-install-kyverno-json@main
        with:
          release: 'v0.0.1'
      - name: Check install
        run: kyverno-json version

Example using the default version:

jobs:
  example:
    runs-on: ubuntu-latest

    permissions: {}

    name: Install kyverno-json
    steps:
      - name: Install kyverno-json
        uses: kyverno/action-install-kyverno-json@main
      - name: Check install
        run: kyverno-json version

Example using cosign verification:

jobs:
  example:
    runs-on: ubuntu-latest

    permissions: {}

    name: Install kyverno-json
    steps:
      - name: Install Cosign
        uses: sigstore/[email protected]
      - name: Install kyverno-json
        uses: kyverno/action-install-kyverno-json@main
        with:
          verify: true
      - name: Check install
        run: kyverno-json version

If you want to install kyverno-json from its main version by using go install under the hood, you can set release as main.

Once you do that, kyverno-json will be installed via go install which means that please ensure that go is installed.

Example of installing kyverno-json via go install:

jobs:
  example:
    runs-on: ubuntu-latest

    permissions: {}

    name: Install kyverno-json via go install
    steps:
      - name: Install go
        uses: actions/setup-go@v4
        with:
          go-version: '1.20'
          check-latest: true
      - name: Install kyverno-json
        uses: kyverno/action-install-kyverno-json@main
        with:
          release: main
      - name: Check install
        run: kyverno-json version

Optional Inputs

The following optional inputs:

Input Description
release kyverno-json version to use instead of the default.
install-dir directory to place the kyverno-json binary into instead of the default ($HOME/.kyverno-json).
use-sudo set to true if install-dir location requires sudo privs. Defaults to false.
verify set to true to enable cosign verification of the downloaded archive.

Security

Should you discover any security issues, please refer to Kyverno's security process

action-install-kyverno-json's People

Contributors

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