-
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.
close #409, refactor Jira consumer, remove addToDescription, instead …
…offer a default template
- Loading branch information
1 parent
4de4d7f
commit c50bd6a
Showing
13 changed files
with
201 additions
and
89 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
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,14 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
nameSuffix: -jira-project | ||
components: | ||
- pkg:helm/dracon-oss-components/base | ||
- pkg:helm/dracon-oss-components/git-clone | ||
- pkg:helm/dracon-oss-components/producer-golang-gosec | ||
- pkg:helm/dracon-oss-components/producer-golang-nancy | ||
- pkg:helm/dracon-oss-components/producer-aggregator | ||
- pkg:helm/dracon-oss-components/enricher-custom-annotation | ||
- pkg:helm/dracon-oss-components/enricher-aggregator | ||
- pkg:helm/dracon-oss-components/consumer-stdout-json | ||
- pkg:helm/dracon-oss-components/consumer-jira |
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,37 @@ | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
generateName: dracon-jira-project- | ||
spec: | ||
pipelineRef: | ||
name: dracon-jira-project | ||
params: | ||
- name: git-clone-url | ||
value: https://github.com/ocurity/e2e-monorepo.git | ||
- name: consumer-jira-url | ||
value: "$jira_url" | ||
- name: consumer-jira-api-token | ||
value: "$jira_token" | ||
- name: consumer-jira-user | ||
value: "$jira_user" | ||
- name: consumer-jira-project-name | ||
value: $jira_project_name | ||
- name: enricher-custom-annotation-base-annotation | ||
value: | | ||
{ | ||
"found by other tools": "semgrep,toolmctoolface", | ||
"training": "some training", | ||
"knowledgebase": "cheatsheets" | ||
} | ||
- name: enricher-custom-annotation-name | ||
value: "magic" | ||
workspaces: | ||
- name: output | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
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
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
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,8 @@ | ||
{{.ToolName}} detected '{{.RawIssue.Title}}' at {{.RawIssue.Target}} during scan started at: {{.ScanStartTime}} with id {{.ScanID}}. | ||
Confidence: {{.ConfidenceText}} | ||
{{ if gt .Count 0 }}This issue has been detected {{.Count}} times before, first found on {{.FirstFound}}{{ end }} | ||
Original Description is: '{{.RawIssue.Description}}' | ||
{{.ToolName}} reported severity as {{.SeverityText}} | ||
Smithy enrichers added the following annotations: | ||
{{ range $key, $value := .Annotations }}{{ $key }}:{{ $value }} | ||
{{ end }} |
Oops, something went wrong.