Skip to content

Commit

Permalink
Task 2.2: snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
kolayne committed Feb 16, 2024
1 parent 702a149 commit bdec259
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,18 @@ jobs:
pytest
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/python-3.10@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}


docker-build-push:
needs: [ lint-test ]
needs: [ lint-test, snyk ]

runs-on: ubuntu-latest

Expand Down
6 changes: 3 additions & 3 deletions app_python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ To run unit tests:
## CI

On every push to the repository that changes files under `app_python/`,
the code is linted and tested, on success, an image is built and published
in DockerHub under the name `kolay0ne/app_py` with a tag matching the branch
name.
the code is linted and tested, and checked for vulnerabilities. On success,
an image is built and published in DockerHub under the name `kolay0ne/app_py`
with a tag matching the branch name.

0 comments on commit bdec259

Please sign in to comment.