Skip to content

Commit

Permalink
Add snyk check action
Browse files Browse the repository at this point in the history
Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
  • Loading branch information
tkdchen committed May 11, 2023
1 parent a137b7a commit b337579
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ jobs:
run: |
python3 -m pip install --upgrade pip
python3 -m pip install 'tox<4.0'
- run: tox -e mypy-${{ matrix.django-version }}
- run: |
echo "snyk token: ${{ secrets.snyk_token }}"
echo "quay username: ${{ secrets.quay_username }}"
tox -e mypy-${{ matrix.django-version }}
3 changes: 3 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude:
code:
- "tests/**/test_*.py"
2 changes: 1 addition & 1 deletion src/tcms/testplans/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def get_manage_form(self, request, plans):

return HttpResponse(html())

def get_default_component_list(self, request, plan):
def get_default_component_list(self, request, plan: TestPlan):
return render(request, self.template_name, context={"test_plan": plan})


Expand Down

0 comments on commit b337579

Please sign in to comment.