diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml new file mode 100644 index 0000000..c19ba22 --- /dev/null +++ b/.github/workflows/version-bump.yml @@ -0,0 +1,41 @@ +name: version-bump + +on: + pull_request: + types: [closed] + branches: [main] + +permissions: + contents: write + +jobs: + bump: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Bump patch version + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + latest=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+' | head -1) + if [ -z "$latest" ]; then + echo "No version tag found, starting at v0.0.1" + next="v0.0.1" + else + # Strip leading v + version="${latest#v}" + major=$(echo "$version" | cut -d. -f1) + minor=$(echo "$version" | cut -d. -f2) + patch=$(echo "$version" | cut -d. -f3) + patch=${patch:-0} + next="v${major}.${minor}.$((patch + 1))" + fi + + echo "Tagging $next (previous: ${latest:-none})" + git tag -a "$next" -m "Release $next" + git push origin "$next" diff --git a/README.md b/README.md index 7960b13..a939beb 100644 --- a/README.md +++ b/README.md @@ -329,6 +329,7 @@ The optional `[ml]` group includes ML/AI features required for the PassGPT attac - **torch** - PyTorch deep learning framework (for PassGPT attack and training) - **transformers** - HuggingFace transformers library (for GPT-2 models) - **datasets** - HuggingFace datasets library (for fine-tuning support) +- **accelerate** - HuggingFace training acceleration library Install with: ```bash @@ -838,6 +839,7 @@ Version 2.0+ - Added LLM Attack (option 15) using Ollama for AI-generated password candidates - Added Ollama configuration keys (ollamaModel, ollamaNumCtx) - Auto-versioning via setuptools-scm from git tags + - Automatic patch version bump (v2.0.1, v2.0.2, ...) on PR merge to main - CI test fixes across Python 3.9-3.14 Version 2.0 diff --git a/hate_crack/config.json.example b/hate_crack/config.json.example index 48df46a..f3f03d7 100644 --- a/hate_crack/config.json.example +++ b/hate_crack/config.json.example @@ -22,5 +22,9 @@ "bandrel_common_basedwords": "welcome,password,p@ssword,p@$$word,changeme,letmein,summer,winter,spring,springtime,fall,autumn,monday,tuesday,wednesday,thursday,friday,saturday,sunday,january,february,march,april,may,june,july,august,september,october,november,december,christmas,easter,covid19", "hashview_url": "http://localhost:8443", "hashview_api_key": "", - "hashmob_api_key": "" + "hashmob_api_key": "", + "passgptModel": "javirandor/passgpt-10characters", + "passgptMaxCandidates": 1000000, + "passgptBatchSize": 1024, + "passgptTrainingList": "" }