-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FT-876: Added
OSV
vulnerability-scan job to the CI
- Loading branch information
1 parent
8abdb8a
commit 4d630ef
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,30 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
vulnerability-scan: | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9] | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
# Used pytest (library is in maintenance mode) | ||
# We can ignore this vulnerability here | ||
# Reference: https://github.com/pytest-dev/py | ||
ignore-vulns: | | ||
PYSEC-2022-42969 | ||
summary: true | ||
vulnerability-service: osv | ||
inputs: requirements.txt requirements-dev.txt | ||
|
||
qa-checks-and-unit-tests: | ||
needs: [vulnerability-scan] | ||
runs-on: ubuntu-latest | ||
outputs: | ||
files: ${{ steps.distribute-integration-test-files.outputs.files }} | ||
|
@@ -50,7 +73,7 @@ jobs: | |
echo "files=$json_files" >> $GITHUB_OUTPUT | ||
integration-tests: | ||
needs: [qa-checks-and-unit-tests] | ||
needs: [vulnerability-scan, qa-checks-and-unit-tests] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|