Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [INFRA-108] Snyk Filter #15

Merged
merged 6 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in hindsights, we are not actually running snyk and not sure if we want to

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not sure how we feel about this lib in general. this was just something we threw together because we couldn't find a good alternative at the time. definitely needs some love

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enabling snyk should be fine though. we can just be lax in dependency versions here.

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: []
Loading