-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb81fe
commit 3b311c8
Showing
6 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# What's not automated | ||
|
||
- image build | ||
- task creation |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from reachability import assessor | ||
from trivy import run | ||
import os | ||
|
||
|
||
def main(): | ||
|
5 changes: 3 additions & 2 deletions
5
components/producers/cloudpi/neo4j-client/reachability/assessor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apiVersion: tekton.dev/v1 | ||
kind: Task | ||
metadata: | ||
annotations: | ||
labels: | ||
v1.dracon.ocurity.com/component: producer | ||
v1.dracon.ocurity.com/test-type: sca | ||
name: producer-cloudpi | ||
namespace: dracon | ||
spec: | ||
params: | ||
- description: aws access key id | ||
name: AWS_ACCESS_KEY_ID | ||
type: string | ||
- description: aws secret access key | ||
name: AWS_SECRET_ACCESS_KEY | ||
type: string | ||
- description: aws region | ||
name: AWS_DEFAULT_REGION | ||
type: string | ||
- description: database uri | ||
name: DATABASE_URI | ||
default: "bolt://dracon.dracon.svc:7687" | ||
steps: | ||
- name: run-cartography | ||
image: 'kind-registry:5000/components/producers/cloudpi:v0.13.0' | ||
env: | ||
- name: AWS_ACCESS_KEY_ID | ||
value: $(params.AWS_ACCESS_KEY_ID) | ||
- name: AWS_SECRET_ACCESS_KEY | ||
value: $(params.AWS_SECRET_ACCESS_KEY) | ||
- name: AWS_DEFAULT_REGION | ||
value: $(params.AWS_DEFAULT_REGION) | ||
- name: READ_PATH | ||
value: $(workspaces.output.path)/.dracon/producers | ||
- name: WRITE_PATH | ||
value: "$(workspaces.output.path)/.dracon/producers" | ||
command: | ||
- cartography | ||
args: | ||
- --neo4j-uri | ||
- bolt://dracon.dracon.svc:7687 | ||
- args: | ||
- main.py | ||
command: | ||
- python | ||
computeResources: {} | ||
env: | ||
- name: AWS_ACCESS_KEY_ID | ||
value: $(params.AWS_ACCESS_KEY_ID) | ||
- name: AWS_SECRET_ACCESS_KEY | ||
value: $(params.AWS_SECRET_ACCESS_KEY) | ||
- name: AWS_DEFAULT_REGION | ||
value: $(params.AWS_DEFAULT_REGION) | ||
- name: DATABASE_URI | ||
value: $(params.DATABASE_URI) | ||
image: kind-registry:5000/components/producers/neo4jclient:v0.13.2 | ||
name: run-trivy | ||
volumeMounts: | ||
- mountPath: /scratch | ||
name: scratch | ||
volumes: | ||
- emptyDir: {} | ||
name: scratch |