Skip to content

Commit

Permalink
fix(rules): add GitGuardian
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 15, 2023
1 parent 0da2814 commit 72145e7
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ exports[`all > should match everything 1`] = `
"gcp.translate",
"gcp.vision",
"gitbook",
"gitguardian",
"github",
"github.actions",
"github.pages",
Expand Down
12 changes: 12 additions & 0 deletions src/rules/saas/gitguardian.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'gitguardian',
name: 'GitGuardian',
type: 'saas',
dependencies: [
{ type: 'githubAction', name: 'GitGuardian/ggshield-action' },
{ type: 'golang', name: 'github.com/Gaardsholt/go-gitguardian' },
{ type: 'docker', name: 'gitguardian/ggshield' },
],
});
1 change: 1 addition & 0 deletions src/rules/saas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import './fabric.js';
import './facebook.js';
import './figma.js';
import './gitbook.js';
import './gitguardian.js';
import './github.js';
import './hotjar.js';
import './hubspot.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ exports[`docker > should match everything 1`] = `
"discourse",
"docker",
"elasticsearch",
"gitguardian",
"grafana",
"hashicorp_vault",
"httpd",
Expand Down Expand Up @@ -188,6 +189,11 @@ exports[`docker > should match everything 2`] = `
"getmeili/meilisearch",
"0.0.0",
],
[
"docker",
"gitguardian/ggshield",
"0.0.0",
],
[
"docker",
"grafana/grafana-enterprise",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`docker > should match all dependencies 1`] = `
"gcp.gcs",
"gcp.gke",
"gcp.secretmanager",
"gitguardian",
"github",
"github.actions",
"github.pages",
Expand Down Expand Up @@ -82,6 +83,11 @@ exports[`docker > should match all dependencies 2`] = `
"DataDog/synthetics-ci-github-action",
"1",
],
[
"githubAction",
"GitGuardian/ggshield-action",
"1",
],
[
"githubAction",
"Ilshidur/action-discord",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"gcp.tasks",
"gcp.translate",
"gcp.vision",
"gitguardian",
"golang",
"launchdarkly",
"lemonsqueezy",
Expand Down Expand Up @@ -181,6 +182,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/ClickHouse/clickhouse-go",
"v1.0.0",
],
[
"golang",
"github.com/Gaardsholt/go-gitguardian",
"v1.0.0",
],
[
"golang",
"github.com/NdoleStudio/lemonsqueezy-go",
Expand Down Expand Up @@ -261,6 +267,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/getbrevo/brevo-go",
"v1.0.0",
],
[
"golang",
"github.com/hashicorp/terraform-plugin-sdk/v2",
"v1.0.0",
],
[
"golang",
"github.com/launchdarkly/go-sdk-common/v3",
Expand Down
1 change: 1 addition & 0 deletions src/rules/spec/terraform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ register({
{ type: 'githubAction', name: 'hashicorp/setup-terraform' },
{ type: 'githubAction', name: 'hashicorp/terraform-cdk-action' },
{ type: 'npm', name: 'cdktf' },
{ type: 'golang', name: 'github.com/hashicorp/terraform-plugin-sdk/v2' },
// {type: 'python', name: 'cdktf'}
],
detect: [detectTerraformLockfile, detectTerraformResource],
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export type AllowedKeys =
| 'gcp.vision'
| 'gcp'
| 'gitbook'
| 'gitguardian'
| 'github.actions'
| 'github.pages'
| 'github'
Expand Down

0 comments on commit 72145e7

Please sign in to comment.