Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #52 from snyk-tech-services/develop
Browse files Browse the repository at this point in the history
release: v1.2.1
  • Loading branch information
scott-es authored Feb 23, 2021
2 parents f3400e6 + 33b6407 commit f57f215
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/tests/test_snyk_scm_refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def test_passes_manifest_filter():
path_fail_2 = "/node_modules/some/package.json"
path_pass_1 = "package.json"
path_pass_2 = "requirements-test.txt"
path_fail_3 = "tests/vuln-in-git/Gemfile.lock"
assert passes_manifest_filter(path_fail_1) == False
assert passes_manifest_filter(path_pass_1) == True
assert passes_manifest_filter(path_fail_2) == False
assert passes_manifest_filter(path_pass_2) == True
assert passes_manifest_filter(path_fail_3) == False
2 changes: 1 addition & 1 deletion common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
MANIFEST_PATTERN_CONTAINER = '^.*(Dockerfile)$'
MANIFEST_PATTERN_IAC = '.*[.](yaml|yml|tf)$'
MANIFEST_PATTERN_CODE = '.*[.](js|cs|php|java|py)$'
MANIFEST_PATTERN_EXCLUSIONS = '^.*(fixtures|\/tests\/|\/__tests__\/|\/test\/|__test__|[.].*ci\/|.*ci[.].yml|\/node_modules\/|\/bower_components\/|variables[.]tf|outputs[.]tf).*$'
MANIFEST_PATTERN_EXCLUSIONS = '^.*(fixtures|tests\/|__tests__|test\/|__test__|[.].*ci\/|.*ci[.].yml|node_modules\/|bower_components\/|variables[.]tf|outputs[.]tf).*$'

GITHUB_ENABLED = False
GITHUB_ENTERPRISE_ENABLED = False
Expand Down

0 comments on commit f57f215

Please sign in to comment.