Skip to content

Commit

Permalink
fix(rules): add Bytebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 23, 2023
1 parent 2c6449e commit 9eed1c2
Show file tree
Hide file tree
Showing 6 changed files with 25 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 @@ -94,6 +94,7 @@ exports[`all > should match everything 1`] = `
"box",
"brevo",
"browserstack",
"bytebase",
"c",
"caddy",
"checkov",
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`] = `
"aws.s3",
"azure",
"blackfire",
"bytebase",
"caddy",
"checkov",
"chef",
Expand Down Expand Up @@ -272,6 +273,11 @@ exports[`docker > should match everything 2`] = `
"bridgecrew/checkov",
"0.0.0",
],
[
"docker",
"bytebase/bytebase",
"0.0.0",
],
[
"docker",
"caddy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ exports[`docker > should match all dependencies 2`] = `
"bridgecrewio/checkov-action",
"1",
],
[
"githubAction",
"bytebase/sql-review-action",
"1",
],
[
"githubAction",
"chetan/invalidate-cloudfront-action",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/tool/bytebase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'bytebase',
name: 'Bytebase',
type: 'tool',
dependencies: [
{ type: 'docker', name: 'bytebase/bytebase' },
{ type: 'githubAction', name: 'bytebase/sql-review-action' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './adminer.js';
import './ansible.js';
import './apiplatform.js';
import './atlasgo.js';
import './bytebase.js';
import './checkov.js';
import './chef.js';
import './gitlab.js';
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export type AllowedKeys =
| 'box'
| 'brevo'
| 'browserstack'
| 'bytebase'
| 'c'
| 'caddy'
| 'checkov'
Expand Down

0 comments on commit 9eed1c2

Please sign in to comment.