Skip to content

Commit 316eb9e

Browse files
authored
Merge pull request #5 from xoxruns/release_0.0.3
Release 0.0.5
2 parents 8a24590 + f1e8a5e commit 316eb9e

1,500 files changed

Lines changed: 140352 additions & 3640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
OPENAI_API_KEY=""
33
ANTHROPIC_API_KEY=""
44
HUGGINGFACE_API_KEY=""
5+
GEMINI_API_KEY=""
6+
MISTRAL_API_KEY=""
57

68
# Model specific
79
EMBEDDING_MODEL=
@@ -18,3 +20,6 @@ DB_NAME=
1820

1921
# Vector store
2022
VECTOR_STORE_PROVIDER=
23+
24+
# ZAP Proxy API Key
25+
ZAP_PROXY_API_KEY=

.github/workflows/docker-build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build and Push Deadend Docker Image
2+
3+
on:
4+
push:
5+
branches: [ main, release_* ]
6+
paths:
7+
- 'setup/images/kalilinux.Dockerfile'
8+
- '.github/workflows/docker-build.yml'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'setup/images/kalilinux.Dockerfile'
13+
- '.github/workflows/docker-build.yml'
14+
workflow_dispatch:
15+
inputs:
16+
tag:
17+
description: 'Docker image tag'
18+
required: false
19+
default: 'latest'
20+
21+
env:
22+
REGISTRY: docker.io
23+
IMAGE_NAME: bargacy/deadend-pentest
24+
25+
jobs:
26+
build-and-push:
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
packages: write
31+
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Docker Buildx
37+
uses: docker/setup-buildx-action@v3
38+
39+
- name: Log in to Docker Hub
40+
if: github.event_name != 'pull_request'
41+
uses: docker/login-action@v3
42+
with:
43+
registry: ${{ env.REGISTRY }}
44+
username: ${{ secrets.DOCKER_USERNAME }}
45+
password: ${{ secrets.DOCKER_TOKEN }}
46+
47+
- name: Extract metadata
48+
id: meta
49+
uses: docker/metadata-action@v5
50+
with:
51+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
52+
tags: |
53+
type=ref,event=branch
54+
type=ref,event=pr
55+
type=semver,pattern={{version}}
56+
type=semver,pattern={{major}}.{{minor}}
57+
type=raw,value=latest,enable={{is_default_branch}}
58+
type=raw,value=${{ github.event.inputs.tag }},enable=${{ github.event.inputs.tag != '' }}
59+
60+
- name: Build and push Docker image
61+
uses: docker/build-push-action@v5
62+
with:
63+
context: .
64+
file: ./setup/images/kalilinux.Dockerfile
65+
push: ${{ github.event_name != 'pull_request' }}
66+
tags: ${{ steps.meta.outputs.tags }}
67+
labels: ${{ steps.meta.outputs.labels }}
68+
cache-from: type=gha
69+
cache-to: type=gha,mode=max
70+
platforms: linux/amd64,linux/arm64
71+
72+
- name: Output image details
73+
if: github.event_name != 'pull_request'
74+
run: |
75+
echo "Image built and pushed successfully!"
76+
echo "Tags: ${{ steps.meta.outputs.tags }}"
77+
echo "Digest: ${{ steps.build.outputs.digest }}"

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
# Publish on any tag starting with a `v`, e.g., v1.2.3
7+
- v*
8+
9+
jobs:
10+
pypi:
11+
name: Publish to PyPI
12+
runs-on: ubuntu-latest
13+
# Environment and permissions trusted publishing.
14+
environment:
15+
# Create this environment in the GitHub repository under Settings -> Environments
16+
name: pypi
17+
permissions:
18+
id-token: write
19+
contents: read
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
25+
- name: Install Python 3.13
26+
run: uv python install 3.13
27+
- name: Build
28+
run: uv build --wheel
29+
# Check that basic features work and we didn't miss to include crucial files
30+
# - name: Smoke test (wheel)
31+
# run: uv run --isolated --no-project --with dist/*.whl tests/smoke_test.py
32+
# - name: Smoke test (source distribution)
33+
# run: uv run --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
34+
- name: Publish
35+
run: uv publish

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "knowledge_base/Pentest-Hardcore-Dataset"]
2+
path = knowledge_base/Pentest-Hardcore-Dataset
3+
url = https://github.com/xoxruns/Pentest-Hardcore-Dataset.git

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12
1+
3.13

0 commit comments

Comments
 (0)