Skip to content

Commit

Permalink
⭐️ add support for linting cnspec policies
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <[email protected]>
  • Loading branch information
chris-rock committed May 9, 2023
1 parent bb90a87 commit 3ce0293
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Lint Policies

on:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Lint cnspec policies and output SARIF
uses: mondoohq/actions/cnspec-lint@main
with:
path: .
output-file: "results.sarif"
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

0 comments on commit 3ce0293

Please sign in to comment.