-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (47 loc) · 1.43 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Lint Packs
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Validate changed packs
steps:
- uses: actions/checkout@v4
- name: Installing cnquery
run: |
bash -c "$(curl -sSL https://install.mondoo.com/sh/cnquery)"
- name: Ensure providers are installed
# can be removed once https://github.com/mondoohq/cnquery/issues/2188 is solved
run: |
cnquery providers install aws
cnquery providers install azure
cnquery providers install gcp
cnquery providers install github
cnquery providers install k8s
cnquery providers install os
cnquery providers install slack
cnquery providers install vsphere
cnquery providers install gitlab
cnquery providers install network
cnquery providers install ms365
cnquery providers install google-workspace
cnquery providers install okta
cnquery providers install terraform
- name: Lint packs
run: |
cnquery bundle validate .
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Copywrite
uses: hashicorp/setup-copywrite@v1.1.3
with:
version: v0.16.4
- name: Check Header Compliance
run: copywrite headers --plan