Skip to content

Commit 37d1e39

Browse files
committed
fix: security audit in CI
1 parent a892bd4 commit 37d1e39

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/audit.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,22 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v2
27+
- name: Setup python
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: 3.8
2731
- name: Install poetry
2832
run: |
2933
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
3034
31-
- name: Install virtualenv
32-
run: |
33-
sudo apt-get update
34-
sudo apt-get install python3-venv
35-
3635
- name: Install dependencies
3736
run: |
38-
python3 -m venv /tmp/venv
39-
source /tmp/venv/bin/activate
4037
env PATH="${PATH}:${HOME}/.poetry/bin" poetry install
4138
4239
- name: Run bandit
4340
run: |
44-
source /tmp/venv/bin/activate
4541
env PATH="${PATH}:${HOME}/.poetry/bin" poetry run bandit -r streamson/
4642
4743
- name: Run safety
4844
run: |
49-
source /tmp/venv/bin/activate
5045
env PATH="${PATH}:${HOME}/.poetry/bin" poetry run safety check

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
matrix:
4646
os: [ubuntu-latest]
4747
python-version: ['3.6', '3.7', '3.8']
48-
runs-on: ${{ matrix.os}}
48+
runs-on: ${{ matrix.os }}
4949
steps:
5050
- uses: actions/checkout@v2
5151
- name: Install rust nightly toolchain

0 commit comments

Comments
 (0)