Skip to content

Commit

Permalink
🧹 Validation Github Action (#12)
Browse files Browse the repository at this point in the history
This action executes 'cnquery bundle validate' against any changed files that appear to be Query Packs.

Signed-off-by: Ben Rockwood <benr@cuddletech.com>
Co-authored-by: Christoph Hartmann <chris@lollyrock.com>
  • Loading branch information
benr and chris-rock authored Jan 18, 2023
1 parent ac16909 commit d5b7f71
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Pack

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Validate changed packs
steps:
- uses: actions/checkout@v3
- name: Installing cnquery
run: |
bash -c "$(curl -sSL https://install.mondoo.com/sh/cnquery)"
- name: Lint packs
run: |
cnquery bundle validate .

0 comments on commit d5b7f71

Please sign in to comment.