Skip to content

Commit

Permalink
Update spellcheck GH Action to the latest (#101)
Browse files Browse the repository at this point in the history
Sync the config as well

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 authored Sep 29, 2023
1 parent 2594512 commit bf5472a
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ Adddays
bigquery
cea
CUSTOMERID
linux
mpim
openssh
saas
spdx
xoxp
9 changes: 7 additions & 2 deletions .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Detect common combinations of valid words that are in fact invalid.
# Detect common combinations of valid words that are in fact invalid.
# Useful for brand capitalizations

#
Expand All @@ -9,6 +9,10 @@
\sthe Mondoo Platform\b
\sMondoo platform\b

# s.b. Compliance Hub
\scompliance hub\b
\sCompliance hubplatform\b

#
# Industry Terms
#
Expand Down Expand Up @@ -50,7 +54,7 @@
# s.b. MariaDB
\bMaria DB\b
\bmariaDB\b
\bmariaDb\b
# \bmariaDb\b causes failures in MQL queries

# s.b. PostgreSQL
\bPostgreSql\b
Expand Down Expand Up @@ -98,6 +102,7 @@

# s.b. Red Hat
\bRedHat\b
\bRedhat\b

# s.b. AlmaLinux
\bAlma Linux\b
Expand Down
1 change: 0 additions & 1 deletion .github/actions/spelling/reject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ Sorce
^untilling$
^wether.*
\w*(?<!right-)click
press
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/spell-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
steps:
- name: check-spelling
id: spelling
uses: check-spelling/[email protected].21
uses: check-spelling/[email protected].22
with:
suppress_push_for_open_pull_request: 1
checkout: true
post_comment: 0
dictionary_source_prefixes: '{"mondoo": "https://raw.githubusercontent.com/mondoohq/spellcheck-dictionary/main/", "cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20220816/dictionaries/"}'
dictionary_source_prefixes: '{"mondoo": "https://raw.githubusercontent.com/mondoohq/spellcheck-dictionary/main/", "cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/"}'
extra_dictionaries:
cspell:aws/aws.txt
cspell:filetypes/filetypes.txt
Expand All @@ -47,7 +47,7 @@ jobs:
if: (success() || failure()) && needs.spelling.outputs.followup
steps:
- name: comment
uses: check-spelling/[email protected].21
uses: check-spelling/[email protected].22
with:
checkout: true
task: ${{ needs.spelling.outputs.followup }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This project contains inventory and incident response query packs for [`cnquery`](https://github.com/mondoohq/cnquery). We've organized them into these directories:

- [core](core) - Core packs contain baseline queries such as incident response probes for different targets. Core query packs are maintained by Mondoo and have strict quality requirements.
- [extra](extra) - Extra packs are are a mix of community- and Mondoo-maintained queries that are outside Mondoo's core support tier.
- [extra](extra) - Extra packs are a mix of community- and Mondoo-maintained queries that are outside Mondoo's core support tier.
- [community](community) - Community packs are primarily maintained by the community with support from the Mondoo team. Community packs may move to extra or core over time.

## Join the community!
Expand Down
4 changes: 2 additions & 2 deletions extra/mondoo-googleworkplace-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packs:
1. Create/Select a GCP project
2. Navigate to the [Google API Console](https://console.cloud.google.com/apis/dashboard).
3. Click "Enable APIs and Services" and enable the following APIs:
3. Select "Enable APIs and Services" and enable the following APIs:
- Admin SDK API
- Cloud Identity API
- Google Calendar API
Expand All @@ -31,7 +31,7 @@ packs:
- Google People API
4. Create a service account for [Google Workspace](https://support.google.com/a/answer/7378726?product_name=UnuFlow&hl=en&visit_id=638041387835615758-4147680582&rd=1&src=supportwidget0&hl=en)
5. Create credentials for the service account and download the json file
6. Enter the following scopes in Security -> Access and data controls -> API controls, and click on [Domain-wide Delegation](https://developers.google.com/workspace/guides/create-credentials#delegate_domain-wide_authority_to_your_service_account)
6. Enter the following scopes in Security -> Access and data controls -> API controls, and select [Domain-wide Delegation](https://developers.google.com/workspace/guides/create-credentials#delegate_domain-wide_authority_to_your_service_account)
- https://www.googleapis.com/auth/admin.chrome.printers.readonly
- https://www.googleapis.com/auth/admin.directory.customer.readonly
Expand Down
8 changes: 4 additions & 4 deletions extra/mondoo-slack-incident-response.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ packs:
and assign the appropriate permissions:
1. Sign in to [the Slack website](https://api.slack.com/apps/), and view "Your Apps"
2. Click "Create New App"
2. Select "Create New App"
3. Select "From scratch"
4. Enter an "App Name" e.g. cnquery and select the workspace, then click "Create App"
5. In the section "Add features & functionality" click on "Permissions"
4. Enter an "App Name" e.g. cnquery and select the workspace, then select "Create App"
5. In the section "Add features & functionality" select "Permissions"
6. Scroll to "Scopes" and then "User Token Scopes"
Note: Bots are very limited in their access; therefore we need to set the user scopes
Expand All @@ -44,7 +44,7 @@ packs:
| [usergroups:read](https://api.slack.com/scopes/usergroups:read) |
| [users:read](https://api.slack.com/scopes/users:read) |

8. Scroll up to "OAuth Tokens for Your Workspace" and click "Install to Workspace"
8. Scroll up to "OAuth Tokens for Your Workspace" and select "Install to Workspace"
9. Copy the provided "User OAuth Token", it will look like `xoxp-1234567890123-1234567890123-1234567890123-12345cea5ae0d3bed30dca43cb34c2d1`

### Run query pack
Expand Down

0 comments on commit bf5472a

Please sign in to comment.