Skip to content

Commit

Permalink
backports v8.18.0 (#1345)
Browse files Browse the repository at this point in the history
Signed-off-by: misterpantz <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
Co-authored-by: Letha <[email protected]>
Co-authored-by: Tim Smith <[email protected]>
  • Loading branch information
3 people authored Jul 11, 2023
1 parent 10b9349 commit d4b66ec
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/spelling/advice.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ If items relate to a ...

File paths are Perl 5 Regular Expressions - you can [test](https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.

`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](../tree/HEAD/README.md) (on whichever branch you're using).
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude README.md (on whichever branch you're using).

- well-formed pattern.

Expand Down
20 changes: 17 additions & 3 deletions .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Detect common combinations of valid words that are in fact invalid.
# Useful for brand capitalizations

#
# Our Terms
#

# s.b. Mondoo Platform
\sthe Mondoo Platform\b
\sMondoo platform\b

#
# Industry Terms
#
Expand Down Expand Up @@ -36,6 +44,9 @@
# Product Names
#

# s.b. Firefox
\bFireFox\b

# s.b. CentOS
\bCentos\b
\bCent OS\b
Expand Down Expand Up @@ -93,6 +104,10 @@
\bApparmor\b
\bApp Armor\b

# s.b. SELinux
\bSeLinux\b
\bSelinux\b

# s.b. InSpec
\b[Ii]nspec\b

Expand Down Expand Up @@ -133,7 +148,7 @@
\bGroup Policy object\b

#
# VMware Product
# VMware Products
#

# s.b. VMware
Expand Down Expand Up @@ -177,10 +192,9 @@
\bCloudsearch\b

# s.b. CloudShell
# we can't check for Cloud Shell since that's what Azure calls it
\bCloudshell\b
\bCloud Shell\b
\bcloudshell\b
\bcloud shell\b

# s.b. CloudTrail
\bCloudtrail\b
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ uid:\s.*$

# mac user dir path
\/Users\/\S*

# AWS Token, ID access key, etc
aws_session_token\s+\=(\s+)?.+
aws_access_key_id\s+\=(\s+)?.+
aws_secret_access_key\s+\=(\s+)?.+
2 changes: 1 addition & 1 deletion resources/packs/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package core

import "go.mondoo.com/cnquery/resources/packs/core/info"

const MissingUpstreamErr = `To use this resource, you must authenticate with the Mondoo Platform.
const MissingUpstreamErr = `To use this resource, you must authenticate with Mondoo Platform.
To learn how, read:
https://mondoo.com/docs/cnspec/cnspec-adv-install/registration/`

Expand Down
2 changes: 2 additions & 0 deletions resources/packs/os/services/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func ResolveManager(motor *motor.Motor) (OSServiceManager, error) {
} else {
osm = ResolveSystemdServiceManager(osProvider)
}
case pf.Name == "raspbian":
osm = ResolveSystemdServiceManager(osProvider)
case pf.Name == "suse-microos": // it is suse family but uses a different version scheme
osm = ResolveSystemdServiceManager(osProvider)
case pf.IsFamily("suse"):
Expand Down

0 comments on commit d4b66ec

Please sign in to comment.