mirror of
https://github.com/adulau/git-vuln-finder.git
synced 2024-12-22 16:55:59 +00:00
checkout a repo
This commit is contained in:
parent
e12d253793
commit
81786106d0
2 changed files with 6 additions and 1 deletions
5
.github/workflows/pythonapp.yml
vendored
5
.github/workflows/pythonapp.yml
vendored
|
@ -28,6 +28,11 @@ 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: curl/curl@7.67.0
|
||||
with:
|
||||
path: test_repos/curl
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
poetry run pytest
|
||||
|
|
|
@ -4,6 +4,6 @@ from git_vuln_finder import find
|
|||
|
||||
|
||||
def test_find_vuln():
|
||||
all_potential_vulnerabilities, all_cve_found, found = find("/home/cedric/git/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