Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 33ab9c5

Browse files
authored
fix issues (#6)
1 parent 6baa6a4 commit 33ab9c5

30 files changed

+1754
-1754
lines changed

.bandit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[bandit]
1+
[bandit]
22
exclude = test_flask.py,dev/settings.py

.dockerignore

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.idea
2-
*.iml
3-
out
4-
gen
5-
manage.py
6-
dev
7-
Dockerfile
8-
deploy.ps1
9-
venv
10-
.gitignore
1+
.idea
2+
*.iml
3+
out
4+
gen
5+
manage.py
6+
dev
7+
Dockerfile
8+
deploy.ps1
9+
venv
10+
.gitignore

.github/workflows/bandit.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Bandit SAST
2-
3-
on:
4-
push:
5-
branches:
6-
- 'master'
7-
8-
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v3
15-
with:
16-
python-version: ${{ matrix.python-version }}
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install bandit
21-
- name: Analysing the code with bandit
22-
run: |
23-
cd immunity_agent && bandit -r .
1+
name: Bandit SAST
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install bandit
21+
- name: Analysing the code with bandit
22+
run: |
23+
cd immunity_agent && bandit -r .

.github/workflows/publish.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
name: Сборка Python-агента
2-
on:
3-
push:
4-
tags:
5-
- '[0-9]+\.[0-9]+\.[0-9]+'
6-
jobs:
7-
build-test:
8-
name: Build Immunity Python agent
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-python@v5
13-
- name: Выставляем версию пакета
14-
run: |
15-
VERSION=$(cat VERSION) \
16-
&& sed -i "s/0.0.0/$VERSION/" setup.py \
17-
&& sed -i "s/0.0.0/$VERSION/" pyproject.toml
18-
- name: Собираем библиотеку
19-
run: |
20-
python3 -m pip install --upgrade build
21-
python3 -m build
22-
- name: Публикуем библиотеку
23-
env:
24-
TWINE_USERNAME: ${{ secrets.USR }}
25-
TWINE_PASSWORD: ${{ secrets.PWD }}
26-
run: |
27-
pip install --user --upgrade twine
28-
python3 -m twine upload dist/*
1+
name: Сборка Python-агента
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+\.[0-9]+\.[0-9]+'
6+
jobs:
7+
build-test:
8+
name: Build Immunity Python agent
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v5
13+
- name: Выставляем версию пакета
14+
run: |
15+
VERSION=$(cat VERSION) \
16+
&& sed -i "s/0.0.0/$VERSION/" setup.py \
17+
&& sed -i "s/0.0.0/$VERSION/" pyproject.toml
18+
- name: Собираем библиотеку
19+
run: |
20+
python3 -m pip install --upgrade build
21+
python3 -m build
22+
- name: Публикуем библиотеку
23+
env:
24+
TWINE_USERNAME: ${{ secrets.USR }}
25+
TWINE_PASSWORD: ${{ secrets.PWD }}
26+
run: |
27+
pip install --user --upgrade twine
28+
python3 -m twine upload dist/*

.github/workflows/pylint.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Pylint
2-
3-
on:
4-
pull_request:
5-
branches:
6-
- 'master'
7-
8-
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v3
15-
with:
16-
python-version: ${{ matrix.python-version }}
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install pylint pylint-django[with-django]
21-
- name: Analysing the code with pylint
22-
run: |
23-
cd immunity_agent && pylint .
1+
name: Pylint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pylint pylint-django[with-django]
21+
- name: Analysing the code with pylint
22+
run: |
23+
cd immunity_agent && pylint .

0 commit comments

Comments
 (0)