Skip to content

Commit

Permalink
feat: [INFRA-108] Snyk Filter (#15)
Browse files Browse the repository at this point in the history
* Moving Pipeline [aiohttp_responses] to Git

* snyk filter
  • Loading branch information
Alex Dorrell authored Apr 11, 2024
1 parent f8ff86e commit 56d0c42
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .harness/github_push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
inputSet:
name: github_push
tags: {}
identifier: github_push
orgIdentifier: default
projectIdentifier: IPA_Release
pipeline:
identifier: aiohttp_responses
template:
templateInputs:
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
stages:
- parallel:
- stage:
identifier: snyk_tests
type: CI
variables:
- name: RUN_SNYK
type: String
value: "FALSE"
108 changes: 108 additions & 0 deletions .harness/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
pipeline:
name: aiohttp_responses
identifier: aiohttp_responses
tags: {}
template:
templateRef: account.shared_library
versionLabel: 1.1.0
gitBranch: main
templateInputs:
properties:
ci:
codebase:
build: <+input>
stages:
- stage:
identifier: build_info
type: CI
spec:
infrastructure:
type: KubernetesDirect
spec:
nodeSelector:
node_group: cpu
- parallel:
- stage:
identifier: code_checks
template:
templateInputs:
type: CI
variables:
- name: RUN_LINTER
type: String
value: "TRUE"
- name: isort
type: String
value: isort --check-only --profile black aiohttp_responses tests
- name: black
type: String
value: black --check aiohttp_responses tests
- name: ruff
type: String
value: ""
- name: mypy
type: String
value: ""
- name: pylint
type: String
value: ""
- stage:
identifier: build_containers
type: CI
variables:
- name: test_poetry_args
type: String
value: " "
- name: deploy_poetry_args
type: String
value: " "
- name: test_ram
type: String
value: 2G
- name: deploy_ram
type: String
value: 2G
- parallel:
- stage:
identifier: unit_tests
template:
templateInputs:
type: CI
variables:
- name: test_command
type: String
value: " "
- name: git_lfs
type: String
value: "FALSE"
- name: node_selector
type: String
value: cpu
- name: test_ram
type: String
value: 2G
- name: test_cpu
type: String
value: 1000m
- stage:
identifier: snyk_tests
type: CI
variables:
- name: RUN_SNYK
type: String
value: <+input>.default(TRUE).allowedValues(TRUE,FALSE)
- name: container_ram
type: String
value: 2G
variables:
- name: repo
type: String
value: aiohttp_responses
- name: service
type: String
value: aiohttp_responses
- name: RUN_UNITTESTS
type: String
value: "FALSE"
projectIdentifier: IPA_Release
orgIdentifier: default
6 changes: 6 additions & 0 deletions .harness/snyk_filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
container:
enabled: false
exemptions: []
oss:
enabled: true
exemptions: []

0 comments on commit 56d0c42

Please sign in to comment.