Skip to content

Commit 5fc114d

Browse files
Paul Boocockpaulboocock
authored andcommitted
Add Snyk monitoring (closes #238)
1 parent 3cfd292 commit 5fc114d

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.github/workflows/snyk.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Snyk
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
security:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: snyk/actions/setup@master
14+
15+
- name: Set up Python 3.8
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.8
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install .
23+
24+
- name: Run Snyk to check for vulnerabilities
25+
run: snyk monitor --file=setup.py --project-name=snowplow-python-tracker
26+
env:
27+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@
3030

3131
import os
3232

33-
version_file_path = os.path.join(
34-
os.path.dirname(__file__),
35-
'snowplow_tracker',
36-
'_version.py'
37-
)
38-
exec(open(version_file_path).read(), {}, locals())
39-
4033
authors_list = [
4134
'Anuj More',
4235
'Alexander Dean',
@@ -51,7 +44,7 @@
5144

5245
setup(
5346
name='snowplow-tracker',
54-
version=__version__,
47+
version='0.8.3',
5548
author=authors_str,
5649
author_email=authors_email_str,
5750
packages=['snowplow_tracker', 'snowplow_tracker.test'],

0 commit comments

Comments
 (0)