-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make changes for a public release #105
Merged
Merged
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
09aaa94
Create a publish.yml file to publish to PyPI
24ce4f0
Remove debug logging for e.g. builtins, repetitive useless statements
1fbf00a
Downgrade to debug logs
65615f4
Make messages more concise or add better data to logs
3772693
Aikido RASP to Aikido Zen
fdf15c6
Merge branch 'main' into publish-to-pypi
e8396fe
Merge branch 'AIK-3348' into publish-to-pypi
312fdbd
Merge branch 'AIK-3350' into publish-to-pypi
02c45a7
v0.1.0
b109435
Fix failed to report an attack broken test
b5f1bf6
remove leftover /legacy/ url from TestPyPI
7d266cb
Revert package name to aikido_firewall
3daadb5
Use twine to publish
a73b508
Remove python setup.py command
5594c86
Merge branch 'AIK-3337' into publish-to-pypi
0e41117
Use guard.aikido.dev and v0.1.1
2353b4c
Merge branch 'AIK-3348' into AIK-3305
b15758a
Add hasReceivedAnyStats, if shouldSendStat schedule heartbeat
0b0949e
update_service_config check if res.endpoints is not none + linting
96bc3ca
Add a boot argument to the heartbeats
70c3bb2
Execute the report_initial_statistics only after 60 seconds
291c5aa
Changed start_polling_for_changes to use reporter object
d015440
Update tests for start_polling_for_changes and the service_config
42e463f
add is_empty function to Statistics class
4ff47c4
Use is_empty function and cleanup logging
e651767
Merge branch 'AIK-3305' into publish-to-pypi
cdf37b3
Move to version 0.1.2
16a3cf8
Send KILL when SIGINT/SIGTERM
feba796
Merge branch 'main' into publish-to-pypi
1889b63
Version 0.1.3
20ce8c0
Update the way we kill the background process
5b429e8
0.1.4
66ef031
Use atexit to exit
cbc2935
Replace 0.1.4 with 0.1.5
2bb0390
0.1.6 (Another signal_handler method)
60b9227
Linting
b46d291
0.1.7 (Another attempt at killing bg process)
8e73f5c
v0.1.8 : Remove signal_handler , remove protect server=False
2729bd7
Run a KILL to make sure no bg processes no more
f16d706
0.1.9
78cc80b
Merge branch 'main' into publish-to-pypi
b6ffc5b
Reset to 0.0.9
f017156
Reset changes made to SIGTERM/SIGINT stuff
23bf19a
Only publish on release and not on tag
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
tests: | ||
name: Linting and running tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Run Pylint | ||
run: | | ||
poetry run pylint --fail-under=9 --rcfile=.pylintrc aikido_firewall/ | ||
pylint_exit_code=$? | ||
if [ $pylint_exit_code -ne 0 ]; then | ||
echo "Pylint check failed. Please fix the issues." | ||
exit 1 | ||
fi | ||
|
||
- name: Run Black Check | ||
run: | | ||
poetry run black --check --diff aikido_firewall/ | ||
black_exit_code=$? | ||
if [ $black_exit_code -ne 0 ]; then | ||
echo "Black check failed. Please run 'black .' to format the code." | ||
exit 1 | ||
fi | ||
- name: Run tests | ||
run: | | ||
make test | ||
build: | ||
name: Build distribution 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Build distribution packages | ||
run: poetry build | ||
|
||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
publish-to-pypi: | ||
name: Publish Python 🐍 distribution 📦 to PyPI | ||
needs: | ||
- build | ||
- tests | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
|
||
- name: Publish to PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
twine upload dist/* |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name = aikido_firewall | |
version = 1.0.0 | ||
author = Aikido | ||
author_email = [email protected] | ||
description = Aikido RASP for Python | ||
description = Aikido Zen for Python | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/AikidoSec/firewall-python | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on release zoals bij node