Skip to content

Commit

Permalink
fix(rules): add Checkov
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 12, 2023
1 parent 95e0c13 commit ea48763
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 @@ -85,6 +85,7 @@ exports[`all > should match everything 1`] = `
"browserstack",
"c",
"caddy",
"checkov",
"circleci",
"cirrusci",
"clickhouse",
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 @@ -19,6 +19,7 @@ exports[`docker > should match everything 1`] = `
"azure",
"blackfire",
"caddy",
"checkov",
"clickhouse",
"couchbase",
"cypressci",
Expand Down Expand Up @@ -158,6 +159,11 @@ exports[`docker > should match everything 2`] = `
"blackfire/blackfire",
"0.0.0",
],
[
"docker",
"bridgecrew/checkov",
"0.0.0",
],
[
"docker",
"caddy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ exports[`docker > should match all dependencies 2`] = `
"bitovi/github-actions-deploy-docker-to-ec2",
"1",
],
[
"githubAction",
"bridgecrewio/checkov-action",
"1",
],
[
"githubAction",
"chetan/invalidate-cloudfront-action",
Expand Down
11 changes: 11 additions & 0 deletions src/rules/tool/checkov.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { register } from '../../register.js';

register({
tech: 'checkov',
name: 'Checkov',
type: 'tool',
dependencies: [
{ type: 'githubAction', name: 'bridgecrewio/checkov-action' },
{ type: 'docker', name: 'bridgecrew/checkov' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import './ansible.js';
import './apiplatform.js';
import './checkov.js';
import './gitlab.js';
import './goacmelego.js';
import './golangcilint.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 @@ -99,6 +99,7 @@ export type AllowedKeys =
| 'browserstack'
| 'c'
| 'caddy'
| 'checkov'
| 'circleci'
| 'cirrusci'
| 'clickhouse'
Expand Down

0 comments on commit ea48763

Please sign in to comment.