All Projects → instrumenta → conftest-action

instrumenta / conftest-action

Licence: other
A GitHub Action for using Conftest

Projects that are alternatives of or similar to conftest-action

pre-commit-opa
Pre-commit git hooks for Open Policy Agent (OPA) and Rego development
Stars: ✭ 53 (+76.67%)
Mutual labels:  openpolicyagent, conftest
actions-pixela
GitHub Actions for Pixela (a-know/pi) - a-know/pi Setup Action. Linux (Ubuntu), macOS, and Windows are supported.
Stars: ✭ 12 (-60%)
Mutual labels:  actions
dependent-issues
📦 A GitHub Action for marking issues as dependent on another
Stars: ✭ 83 (+176.67%)
Mutual labels:  actions
changelog-reader-action
A GitHub action to read and get data from the CHANGELOG.md file 🚀
Stars: ✭ 68 (+126.67%)
Mutual labels:  actions
viewts
Display PCR, DTS, PTS, bitrate, jitter of a mpeg TS.
Stars: ✭ 46 (+53.33%)
Mutual labels:  actions
react-redux-controllers
Microframework for structuring code of React/Redux applications
Stars: ✭ 13 (-56.67%)
Mutual labels:  actions
svgo-action
Automatically run SVGO with GitHub Actions
Stars: ✭ 18 (-40%)
Mutual labels:  actions
gha
🔧 Test your GitHub Actions workflow locally.
Stars: ✭ 53 (+76.67%)
Mutual labels:  actions
policies
A set of shared policies for use with Conftest and other Open Policy Agent tools
Stars: ✭ 61 (+103.33%)
Mutual labels:  conftest
gradle-actions
Github Actions for Gradle
Stars: ✭ 29 (-3.33%)
Mutual labels:  actions
setup-timezone
setup timezone for actions
Stars: ✭ 20 (-33.33%)
Mutual labels:  actions
release-helper
🤖 A GitHub Action that help you publish release.
Stars: ✭ 27 (-10%)
Mutual labels:  actions
actions-sms
Send an SMS through GitHub Actions
Stars: ✭ 108 (+260%)
Mutual labels:  actions
nitro
🔥 NITRO: Nitrogen Web Framework
Stars: ✭ 45 (+50%)
Mutual labels:  actions
setup-racket
A GH action for installing Racket.
Stars: ✭ 42 (+40%)
Mutual labels:  actions
github-create-release-action
Create a GitHub release from a Tag
Stars: ✭ 33 (+10%)
Mutual labels:  actions
fullstack-grpc
gRPC web with REST gateway and interceptors and example web app with envoy proxy
Stars: ✭ 42 (+40%)
Mutual labels:  actions
action-python-poetry
Template repo to quickly make a tested and documented GitHub action in Python with Poetry
Stars: ✭ 85 (+183.33%)
Mutual labels:  actions
OpenWrts
OPENWRT 固件(Raspberry Pi4B/3B+,NanoPi R4S,Orange Pi R1Plus,x86) 依源码更新自动编译
Stars: ✭ 100 (+233.33%)
Mutual labels:  actions
ansible-github actions runner
Ansible Role to deploy GitHub Actions self-hosted runner
Stars: ✭ 76 (+153.33%)
Mutual labels:  actions

Conftest

A GitHub Action for using Conftest in your workflows.

You can use the action as follows:

on: push
name: Validate
jobs:
  conftest:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: test
      uses: instrumenta/conftest-action@master
      with:
        files: deployment.yaml

The Conftest Action has a small number of properties which map to the parameters for Conftest itself. These are passed to the action using with, as demonstrated with files in the above example.

Property Default Description
files - Required which files to test
policy policy Where to find the policy folder or files
namespace main The Rego namespace to use for testing
output stdout How to format the output from Conftest (stdout, json or tap)

Helm

Conftest also has a Helm plugin which makes testing Helm charts easier, and that plugin is also available as an Action.

You can use the action as follows:

on: push
name: Validate
jobs:
  conftest:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: test
      uses: instrumenta/conftest-action/helm@master
      with:
        chart: mysql

The Conftest Helm Action has a small number of properties which map to the parameters for Conftest itself. These are passed to the action using with, as demonstrated with chart in the above example.

Property Default Description
chart - Required which chart directory to test
policy policy Where to find the policy folder or files
namespace main The Rego namespace to use for testing
output stdout How to format the output from Conftest (stdout, json or tap)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].