Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mgraeber-rc committed Dec 13, 2022
2 parents e4c8f87 + f2d9ce6 commit 55788e1
Show file tree
Hide file tree
Showing 8 changed files with 507 additions and 301 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-posixath.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy-posixath
on:
workflow_dispatch:
jobs:
deploy-posixath:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
defaults:
run:
working-directory:
posix
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --user pipenv
pipenv install
pipenv install hatch twine
- name: Lint with black
run: |
pipenv run python -m black --check src/posixath/
- name: Build package
run: pipenv run hatch build
- name: Publish Package to PyPi
run: pipenv run python -m twine upload dist/*
env:
TWINE_USERNAME: ${{secrets.PYPI_USERNAME}}
TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}}
17 changes: 17 additions & 0 deletions .github/workflows/deploy-powershell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish PowerShell Module

on:
workflow_dispatch:

jobs:
publish-to-gallery:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and publish
run: |
Publish-Module -Path '.' -NuGetApiKey "$Env:PGALLERY"
shell: pwsh
env:
PGALLERY: ${{ secrets.PGALLERY }}
188 changes: 54 additions & 134 deletions posix/Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion posix/src/posixath/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.1"
__version__ = "0.0.3"
14 changes: 9 additions & 5 deletions posix/src/posixath/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,30 @@


def get_args() -> tuple[argparse.Namespace, list[str]]:
description = textwrap.dedent("""
description = textwrap.dedent(
"""
PosixATH is the POSIX version of AtomicTestHarness that provides support for
macOS and Linux operating systems. AtomicTestHarnesses streamlines the
execution of ATT&CK technique variations and validates that the expected
telemetry surfaces in the process.
""")
epilog=textwrap.dedent("""
"""
)
epilog = textwrap.dedent(
"""
Examples:
Run all of the variations of ATT&CK technique T1018 for Linux
python -m posixath linux -t T1018
Run all of the variations of ATT&CK technique T1059.002 for macOS
python -m posixath macos -t T1059_002
""")
"""
)
parser: argparse.ArgumentParser = argparse.ArgumentParser(
description=description,
prog="PosixATH",
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=epilog
epilog=epilog,
)
parser.add_argument(
"-v",
Expand Down
Loading

0 comments on commit 55788e1

Please sign in to comment.