Skip to content

Commit

Permalink
🧹 update auto-generated content and fix pipeline to catch those cases (…
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Jan 22, 2024
1 parent 31eb310 commit b120ab4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr-test-generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ jobs:
make prep
make cnquery/generate
git diff --exit-code *.go
git diff --exit-code resources/packs/**/*.lr.json
git diff --exit-code providers/**/*.lr.json
git diff --exit-code providers/**/*.resources.json
7 changes: 6 additions & 1 deletion providers/azure/resources/azure.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions providers/azure/resources/azure.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
- azure
azure.subscription:
docs:
desc: |
Use the `azure.subscription` resource to assess the configuration of Azure subscriptions.
desc: "Use the `azure.subscription` resource to assess the configuration of
Azure subscriptions. \n"
fields:
advisor: {}
aks: {}
Expand Down Expand Up @@ -64,8 +64,8 @@ resources:
- azure
azure.subscription.advisorService:
docs:
desc: |
Use the `azure.subscription.advisorService` resource to retrieve scoring and recommendations from Microsoft Azure Advisor.
desc: "Use the `azure.subscription.advisorService` resource to retrieve scoring
and recommendations from Microsoft Azure Advisor. \n"
fields:
averageScore: {}
recommendations: {}
Expand All @@ -77,8 +77,12 @@ resources:
name:
- azure
snippets:
- query: "azure.subscription.advisorService {\n averageScore > 90\n}\n"
title: Check if the average score that the Azure Advisor service gives the subscription is greater than 90
- query: |
azure.subscription.advisorService {
averageScore > 90
}
title: Check if the average score that the Azure Advisor service gives the subscription
is greater than 90
azure.subscription.advisorService.recommendation:
fields:
category: {}
Expand Down
Loading

0 comments on commit b120ab4

Please sign in to comment.