Skip to content

Commit

Permalink
add trivy pr automation
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Dec 11, 2024
1 parent 0f9c376 commit 6f640cd
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion catalogs/security/trivy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This is a baseline, prod ready Trivy installation using Plural.

## Contributing

If there are any features or documentation you'd like to add to this setup, please feel free to contribute back at https://github.com/pluralsh/scaffolds
If there are any features or documentation you'd like to add to this setup, please feel free to contribute back at https://github.com/pluralsh/scaffolds.
58 changes: 58 additions & 0 deletions setup/catalogs/security/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: PrAutomation
metadata:
name: trivy
spec:
name: trivy
icon: https://trivy.dev/latest/imgs/logo.png
documentation: |
Sets up an Trivy security scanner
creates:
git:
ref: main
folder: catalogs/security/trivy
templates:
# - source: stack.yaml.liquid
# destination: "bootstrap/apps/airbyte/{{ context.cluster }}/stack.yaml"
# external: true
# - source: servicedeployment.yaml.liquid
# destination: "bootstrap/apps/airbyte/{{ context.cluster }}/servicedeployment.yaml"
# external: true
- source: README.md
destination: documentation/trivy/README.md
external: true
# - source: helm/values.yaml.liquid
# destination: helm/airbyte/{{ context.cluster }}.yaml.liquid
# external: true
# - source: terraform
# destination: terraform/apps/airbyte
# external: true
repositoryRef:
name: scaffolds
catalogRef:
name: security
scmConnectionRef:
name: plural # you'll need to add this ScmConnection manually before this is functional
title: "Setting up Trivy on cluster {{ context.cluster }} for {{ context.cloud }}"
message: |
Set up Trivy on {{ context.cluster }} ({{ context.cloud }})
Will set up an Trivy deployment
# configuration:
# - name: cluster
# type: STRING
# documentation: the cluster you want to deploy to
# - name: cloud
# type: ENUM
# documentation: the cloud you can deploy airbyte to
# values:
# - aws
# - name: bucket
# type: STRING
# documentation: the name of the S3/GCS/Azure Blob bucket you'll use for airbyte logs. This must be globally unique
# - name: hostname
# type: STRING
# documentation: the DNS name you'll host airbyte under
# - name: region
# type: STRING
# documentation: the cloud region you're going to use for this instance

0 comments on commit 6f640cd

Please sign in to comment.