-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modularize package for siemrules (#15)
* modularize package for siem rules * Create create_release.yml --------- Co-authored-by: David G <[email protected]>
- Loading branch information
1 parent
f928abd
commit 015ec23
Showing
7 changed files
with
123 additions
and
21 deletions.
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,30 @@ | ||
name: Create Release | ||
run-name: creating release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Install pypa/build | ||
run: python3 -m pip install build --user | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
|
||
- name: Make release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: | | ||
REF_NAME="${{ github.ref_name }}-$(date +"%Y-%m-%d-%H-%M-%S")" | ||
gh release create "$REF_NAME" --repo '${{ github.repository }}' --notes "" | ||
gh release upload "$REF_NAME" dist/** --repo '${{ github.repository }}' |
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,38 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "txt2detection" | ||
|
||
version = "0.0.1" | ||
authors = [ | ||
{ name="DOGESEC", email="[email protected]" }, | ||
] | ||
description = "txt2detection is a tool" | ||
readme = "README.md" | ||
requires-python = ">=3.11" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"stix2", | ||
"python-arango>=8.1.3; python_version >= '3.8'", | ||
"tqdm>=4.66.4; python_version >= '3.7'", | ||
"jsonschema>=4.22.0; python_version >= '3.8'", | ||
"requests>=2.31.0; python_version >= '3.7'", | ||
"python-dotenv>=1.0.1", | ||
"pyyaml", | ||
] | ||
[project.urls] | ||
Homepage = "https://github.com/muchdogesec/txt2detection" | ||
Issues = "https://github.com/muchdogesec/txt2detection/issues" | ||
|
||
[project.scripts] | ||
txt2detection = "txt2detection.__main__:main" | ||
|
||
|
||
[tool.hatch.build.targets.wheel.force-include] | ||
"config" = "txt2detection/config" |
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