Skip to content

Commit

Permalink
fix(rules): add AWS CodeBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 13, 2023
1 parent d921821 commit 8c7fbe6
Show file tree
Hide file tree
Showing 10 changed files with 50 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 @@ -24,6 +24,7 @@ exports[`all > should match everything 1`] = `
"auth0",
"aws",
"aws.amplify_hosting",
"aws.codebuild",
"aws.dynamodb",
"aws.ec2",
"aws.ecs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ exports[`docker > should match all dependencies 2`] = `
"aws-actions/amazon-eks-fargate",
"1",
],
[
"githubAction",
"aws-actions/aws-codebuild-run-build",
"1",
],
[
"githubAction",
"aws-actions/configure-aws-credentials",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/codebuild",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/dynamodb",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports[`npm > should match everything 1`] = `
"auth0",
"aws",
"aws.amplify_hosting",
"aws.codebuild",
"aws.dynamodb",
"aws.ec2",
"aws.ecs",
Expand Down Expand Up @@ -193,6 +194,11 @@ exports[`npm > should match everything 2`] = `
"@aws-amplify/ui-react",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-codebuild",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-dynamodb-streams",
Expand Down
5 changes: 5 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ exports[`ruby (component) > should match everything 2`] = `
"auth0",
"1.0.0",
],
[
"ruby",
"aws-sdk-codebuild",
"1.0.0",
],
[
"ruby",
"aws-sdk-dynamodbstreams",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`rust (component) > should match everything 1`] = `
"apache_cassandra",
"auth0",
"aws",
"aws.codebuild",
"aws.dynamodb",
"aws.ec2",
"aws.ecs",
Expand Down Expand Up @@ -65,6 +66,11 @@ exports[`rust (component) > should match everything 2`] = `
"auth0",
"1.0.0",
],
[
"rust",
"aws-sdk-codebuild",
"1.0.0",
],
[
"rust",
"aws-sdk-dynamodb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`terraform (resource) > should match everything 1`] = `
[
"aws",
"aws.amplify_hosting",
"aws.codebuild",
"aws.dynamodb",
"aws.ec2",
"aws.ecs",
Expand Down
19 changes: 19 additions & 0 deletions src/rules/tool/aws.codebuild.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { register } from '../../register.js';

register({
tech: 'aws.codebuild',
name: 'AWS Code Build',
type: 'tool',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-codebuild' },
{ type: 'rust', name: 'aws-sdk-codebuild' },
{ type: 'ruby', name: 'aws-sdk-codebuild' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/codebuild' },
{
type: 'terraform.resource',
name: /^aws_codebuild_/,
example: 'aws_codebuild_project',
},
{ type: 'githubAction', name: 'aws-actions/aws-codebuild-run-build' },
],
});
1 change: 1 addition & 0 deletions src/rules/tool/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './ansible.js';
import './aws.codebuild.js';
import './gcp.cloudbuild.js';
import './gitlab.js';
import './helm.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 @@ -35,6 +35,7 @@ export type AllowedKeys =
| 'atlassian'
| 'auth0'
| 'aws.amplify_hosting'
| 'aws.codebuild'
| 'aws.dynamodb'
| 'aws.ec2'
| 'aws.ecs'
Expand Down

0 comments on commit 8c7fbe6

Please sign in to comment.