mirror of
https://github.com/adulau/git-vuln-finder.git
synced 2024-11-22 01:57:08 +00:00
checkout version curl-7_67_0 of curl for the tests.
This commit is contained in:
parent
a61719bf16
commit
a4a17ba265
2 changed files with 2 additions and 9 deletions
7
.github/workflows/pythonapp.yml
vendored
7
.github/workflows/pythonapp.yml
vendored
|
@ -28,13 +28,6 @@ jobs:
|
|||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
|
||||
- name: Checkout curl for the tests
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: curl/curl
|
||||
ref: curl-7_67_0
|
||||
path: test_repos/curl
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
poetry run pytest
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
from git_vuln_finder import find
|
||||
|
||||
|
||||
def test_find_vuln():
|
||||
all_potential_vulnerabilities, all_cve_found, found = find("/home/runner/work/git-vuln-finder/git-vuln-finder/test_repos/curl/")
|
||||
def test_find_vuln(clone_curl):
|
||||
all_potential_vulnerabilities, all_cve_found, found = find("./test_repos/curl/")
|
||||
|
||||
assert len(list(all_cve_found)) == 63
|
||||
|
|
Loading…
Reference in a new issue