redloop 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {redloop-0.1.1 → redloop-0.1.2}/.github/dependabot.yml +7 -0
- redloop-0.1.2/.github/requirements/build.txt +13 -0
- redloop-0.1.2/.github/requirements/ci.txt +38 -0
- {redloop-0.1.1 → redloop-0.1.2}/.github/workflows/ci.yml +6 -6
- redloop-0.1.2/.github/workflows/codeql.yml +36 -0
- {redloop-0.1.1 → redloop-0.1.2}/.github/workflows/live-model.yml +4 -4
- {redloop-0.1.1 → redloop-0.1.2}/.github/workflows/release.yml +30 -12
- {redloop-0.1.1 → redloop-0.1.2}/.github/workflows/scorecard.yml +3 -3
- {redloop-0.1.1 → redloop-0.1.2}/CHANGELOG.md +11 -0
- {redloop-0.1.1 → redloop-0.1.2}/CITATION.cff +1 -1
- {redloop-0.1.1 → redloop-0.1.2}/PKG-INFO +4 -3
- {redloop-0.1.1 → redloop-0.1.2}/README.md +3 -2
- redloop-0.1.2/SECURITY.md +32 -0
- {redloop-0.1.1 → redloop-0.1.2}/action.yml +8 -4
- {redloop-0.1.1 → redloop-0.1.2}/examples/github-workflow.yml +1 -1
- {redloop-0.1.1 → redloop-0.1.2}/pyproject.toml +1 -1
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/__init__.py +1 -1
- redloop-0.1.1/SECURITY.md +0 -16
- {redloop-0.1.1 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/.gitignore +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/CODE_OF_CONDUCT.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/CONTRIBUTING.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/LICENSE +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/NOTICE +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/demo.svg +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/governance.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/maturity-model.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/methodology.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/probes.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/targets.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/docs/threat-model.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/assessment.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/redloop-http.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/redloop-ollama.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/redloop-openai.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/redloop-sandbox.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/redloop.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/risk-acceptances.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/examples/threatmodel.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/__main__.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/cli.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/config.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/converters.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/crosswalk.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/README.md +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/crosswalk.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/iso-42001-annex-a.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/mitre-atlas.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/nist-ai-rmf-1.0.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/owasp-agentic-2026.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/owasp-llm-2025.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/maturity-model.json +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/templates/assessment.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/templates/redloop.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/templates/risk-acceptances.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/data/templates/threatmodel.toml +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/detectors.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/evidence.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/governance.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/maturity.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/probes/__init__.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/probes/base.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/probes/catalog.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/py.typed +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/report/__init__.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/report/jsonout.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/report/md.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/report/sarif.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/report/text.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/results.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/runner.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/sandbox.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/__init__.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/base.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/http.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/mock.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/openai.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/targets/transport.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/threats.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/src/redloop/util.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_cli.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_converters_detectors.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_governance_evidence.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_hygiene.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_maturity.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_runner.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_sandbox.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_targets.py +0 -0
- {redloop-0.1.1 → redloop-0.1.2}/tests/test_threats.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Tools used to build the sdist and wheel.
|
|
2
|
+
# Hash-pinned so CI installs exactly these files (pip --require-hashes).
|
|
3
|
+
# Dependabot keeps this file up to date.
|
|
4
|
+
|
|
5
|
+
build==1.6.1 \
|
|
6
|
+
--hash=sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53 \
|
|
7
|
+
--hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
|
|
8
|
+
packaging==26.4 \
|
|
9
|
+
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
|
|
10
|
+
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
|
|
11
|
+
pyproject-hooks==1.3.3 \
|
|
12
|
+
--hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b \
|
|
13
|
+
--hash=sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Tools used by CI: lint and tests.
|
|
2
|
+
# Hash-pinned so CI installs exactly these files (pip --require-hashes).
|
|
3
|
+
# Dependabot keeps this file up to date.
|
|
4
|
+
|
|
5
|
+
ruff==0.17.6 \
|
|
6
|
+
--hash=sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac \
|
|
7
|
+
--hash=sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b \
|
|
8
|
+
--hash=sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d \
|
|
9
|
+
--hash=sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0 \
|
|
10
|
+
--hash=sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c \
|
|
11
|
+
--hash=sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582 \
|
|
12
|
+
--hash=sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30 \
|
|
13
|
+
--hash=sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b \
|
|
14
|
+
--hash=sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d \
|
|
15
|
+
--hash=sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c \
|
|
16
|
+
--hash=sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5 \
|
|
17
|
+
--hash=sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4 \
|
|
18
|
+
--hash=sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173 \
|
|
19
|
+
--hash=sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128 \
|
|
20
|
+
--hash=sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb \
|
|
21
|
+
--hash=sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0 \
|
|
22
|
+
--hash=sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45 \
|
|
23
|
+
--hash=sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf
|
|
24
|
+
pytest==9.2.0 \
|
|
25
|
+
--hash=sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 \
|
|
26
|
+
--hash=sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b
|
|
27
|
+
iniconfig==2.3.1 \
|
|
28
|
+
--hash=sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960 \
|
|
29
|
+
--hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
|
|
30
|
+
packaging==26.4 \
|
|
31
|
+
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
|
|
32
|
+
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
|
|
33
|
+
pluggy==1.7.0 \
|
|
34
|
+
--hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
|
|
35
|
+
--hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
|
|
36
|
+
pygments==2.21.0 \
|
|
37
|
+
--hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
|
|
38
|
+
--hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
|
|
@@ -16,13 +16,13 @@ jobs:
|
|
|
16
16
|
matrix:
|
|
17
17
|
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
18
18
|
steps:
|
|
19
|
-
- uses: actions/checkout@
|
|
20
|
-
- uses: actions/setup-python@
|
|
19
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
21
21
|
with:
|
|
22
22
|
python-version: ${{ matrix.python-version }}
|
|
23
23
|
allow-prereleases: true
|
|
24
24
|
- name: Install tools
|
|
25
|
-
run: python -m pip install --
|
|
25
|
+
run: python -m pip install --require-hashes -r .github/requirements/ci.txt
|
|
26
26
|
- name: Lint
|
|
27
27
|
run: ruff check .
|
|
28
28
|
- name: Test
|
|
@@ -35,11 +35,11 @@ jobs:
|
|
|
35
35
|
build:
|
|
36
36
|
runs-on: ubuntu-latest
|
|
37
37
|
steps:
|
|
38
|
-
- uses: actions/checkout@
|
|
39
|
-
- uses: actions/setup-python@
|
|
38
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
39
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
40
40
|
with:
|
|
41
41
|
python-version: "3.12"
|
|
42
|
-
- run: python -m pip install --
|
|
42
|
+
- run: python -m pip install --require-hashes -r .github/requirements/build.txt
|
|
43
43
|
- run: python -m build
|
|
44
44
|
- name: Install wheel and run
|
|
45
45
|
run: |
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: "29 3 * * 2"
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
analyze:
|
|
15
|
+
name: Analyze (${{ matrix.language }})
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
actions: read
|
|
19
|
+
contents: read
|
|
20
|
+
security-events: write
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
language: [python, actions]
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
27
|
+
with:
|
|
28
|
+
persist-credentials: false
|
|
29
|
+
- uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
30
|
+
with:
|
|
31
|
+
languages: ${{ matrix.language }}
|
|
32
|
+
build-mode: none
|
|
33
|
+
queries: security-extended
|
|
34
|
+
- uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
35
|
+
with:
|
|
36
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -36,12 +36,12 @@ jobs:
|
|
|
36
36
|
ports:
|
|
37
37
|
- 11434:11434
|
|
38
38
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
40
|
-
- uses: actions/setup-python@
|
|
39
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
40
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
41
41
|
with:
|
|
42
42
|
python-version: "3.12"
|
|
43
43
|
- name: Install redloop
|
|
44
|
-
run: python -m pip install .
|
|
44
|
+
run: python -m pip install --no-deps -e .
|
|
45
45
|
- name: Pull the model and check it answers
|
|
46
46
|
run: |
|
|
47
47
|
for i in $(seq 1 60); do curl -sf http://localhost:11434/api/version && break; sleep 2; done
|
|
@@ -62,7 +62,7 @@ jobs:
|
|
|
62
62
|
if [ "$status" -ge 2 ]; then exit "$status"; fi
|
|
63
63
|
- name: Keep evidence
|
|
64
64
|
if: always()
|
|
65
|
-
uses: actions/upload-artifact@
|
|
65
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
66
66
|
with:
|
|
67
67
|
name: redloop-evidence-${{ github.run_id }}
|
|
68
68
|
path: examples/evidence/
|
|
@@ -19,8 +19,8 @@ jobs:
|
|
|
19
19
|
id-token: write
|
|
20
20
|
attestations: write
|
|
21
21
|
steps:
|
|
22
|
-
- uses: actions/checkout@
|
|
23
|
-
- uses: actions/setup-python@
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
24
24
|
with:
|
|
25
25
|
python-version: "3.12"
|
|
26
26
|
- name: Check the tag matches the package version
|
|
@@ -28,18 +28,29 @@ jobs:
|
|
|
28
28
|
version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
29
29
|
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME != version $version"; exit 1; }
|
|
30
30
|
- name: Test
|
|
31
|
-
run: python -m pip install --
|
|
31
|
+
run: python -m pip install --require-hashes -r .github/requirements/ci.txt && pytest -q
|
|
32
32
|
- name: Build sdist and wheel
|
|
33
|
-
run: python -m pip install build && python -m build
|
|
33
|
+
run: python -m pip install --require-hashes -r .github/requirements/build.txt && python -m build
|
|
34
34
|
- name: Attest build provenance
|
|
35
|
+
id: attest
|
|
35
36
|
if: github.event.repository.private == false
|
|
36
|
-
uses: actions/attest-build-provenance@
|
|
37
|
+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
|
|
37
38
|
with:
|
|
38
39
|
subject-path: "dist/*"
|
|
39
|
-
- uses: actions/upload-artifact@
|
|
40
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
40
41
|
with:
|
|
41
42
|
name: dist
|
|
42
43
|
path: dist/
|
|
44
|
+
- name: Keep the provenance bundle as a release asset
|
|
45
|
+
if: steps.attest.outcome == 'success'
|
|
46
|
+
run: |
|
|
47
|
+
mkdir -p provenance
|
|
48
|
+
cp "${{ steps.attest.outputs.bundle-path }}" "provenance/redloop-${GITHUB_REF_NAME#v}.intoto.jsonl"
|
|
49
|
+
- if: steps.attest.outcome == 'success'
|
|
50
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
51
|
+
with:
|
|
52
|
+
name: provenance
|
|
53
|
+
path: provenance/
|
|
43
54
|
|
|
44
55
|
github-release:
|
|
45
56
|
needs: build
|
|
@@ -47,23 +58,30 @@ jobs:
|
|
|
47
58
|
permissions:
|
|
48
59
|
contents: write
|
|
49
60
|
steps:
|
|
50
|
-
- uses: actions/checkout@
|
|
51
|
-
- uses: actions/download-artifact@
|
|
61
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
62
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
52
63
|
with:
|
|
53
64
|
name: dist
|
|
54
65
|
path: dist/
|
|
66
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
67
|
+
continue-on-error: true # absent while the repository is private
|
|
68
|
+
with:
|
|
69
|
+
name: provenance
|
|
70
|
+
path: provenance/
|
|
55
71
|
- name: Create GitHub release
|
|
56
72
|
env:
|
|
57
73
|
GH_TOKEN: ${{ github.token }}
|
|
58
74
|
run: |
|
|
59
75
|
version="${GITHUB_REF_NAME#v}"
|
|
76
|
+
shopt -s nullglob
|
|
77
|
+
assets=(dist/* provenance/*)
|
|
60
78
|
awk -v v="$version" '$0 ~ "^## \\[" v "\\]" {f=1; next} /^## \[/ {f=0} f' CHANGELOG.md > notes.md
|
|
61
79
|
[ -s notes.md ] || echo "Release $GITHUB_REF_NAME" > notes.md
|
|
62
80
|
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
|
|
63
|
-
gh release upload "$GITHUB_REF_NAME"
|
|
81
|
+
gh release upload "$GITHUB_REF_NAME" "${assets[@]}" --clobber
|
|
64
82
|
exit 0
|
|
65
83
|
fi
|
|
66
|
-
gh release create "$GITHUB_REF_NAME"
|
|
84
|
+
gh release create "$GITHUB_REF_NAME" "${assets[@]}" --title "redloop $GITHUB_REF_NAME" --notes-file notes.md
|
|
67
85
|
|
|
68
86
|
pypi:
|
|
69
87
|
needs: build
|
|
@@ -73,8 +91,8 @@ jobs:
|
|
|
73
91
|
permissions:
|
|
74
92
|
id-token: write
|
|
75
93
|
steps:
|
|
76
|
-
- uses: actions/download-artifact@
|
|
94
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
77
95
|
with:
|
|
78
96
|
name: dist
|
|
79
97
|
path: dist/
|
|
80
|
-
- uses: pypa/gh-action-pypi-publish@
|
|
98
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -20,14 +20,14 @@ jobs:
|
|
|
20
20
|
contents: read
|
|
21
21
|
actions: read
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
with:
|
|
25
25
|
persist-credentials: false
|
|
26
|
-
- uses: ossf/scorecard-action@v2.6.0
|
|
26
|
+
- uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
|
|
27
27
|
with:
|
|
28
28
|
results_file: results.sarif
|
|
29
29
|
results_format: sarif
|
|
30
30
|
publish_results: true
|
|
31
|
-
- uses: github/codeql-action/upload-sarif@
|
|
31
|
+
- uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
32
32
|
with:
|
|
33
33
|
sarif_file: results.sarif
|
|
@@ -4,6 +4,15 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.2] - 2026-12-01
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- GitHub Action: inputs and the exit code reach the shell only through environment variables.
|
|
14
|
+
- CI installs its tools from hash-pinned requirement files; GitHub Actions are pinned by commit; CodeQL scanning added.
|
|
15
|
+
|
|
7
16
|
## [0.1.1] - 2026-12-01
|
|
8
17
|
|
|
9
18
|
### Changed
|
|
@@ -47,5 +56,7 @@ All notable changes to this project are documented here. The format follows
|
|
|
47
56
|
- Outputs: text, Markdown, JSON, SARIF 2.1.0. CI gate on severity and attack success rate.
|
|
48
57
|
- Composite GitHub Action.
|
|
49
58
|
|
|
59
|
+
[Unreleased]: https://github.com/rajyavardhan01/redloop/compare/v0.1.2...HEAD
|
|
60
|
+
[0.1.2]: https://github.com/rajyavardhan01/redloop/compare/v0.1.1...v0.1.2
|
|
50
61
|
[0.1.1]: https://github.com/rajyavardhan01/redloop/compare/v0.1.0...v0.1.1
|
|
51
62
|
[0.1.0]: https://github.com/rajyavardhan01/redloop/releases/tag/v0.1.0
|
|
@@ -2,7 +2,7 @@ cff-version: 1.2.0
|
|
|
2
2
|
message: "If you use redloop in research or assessments, please cite it as below."
|
|
3
3
|
type: software
|
|
4
4
|
title: "redloop: continuous AI red teaming as code"
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.2
|
|
6
6
|
date-released: 2026-12-01
|
|
7
7
|
license: Apache-2.0
|
|
8
8
|
repository-code: "https://github.com/rajyavardhan01/redloop"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: redloop
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Continuous AI red teaming as code: threat model, adaptive adversarial tests, resilience maturity scoring, audit-ready evidence and a CI gate. Zero dependencies.
|
|
5
5
|
Project-URL: Homepage, https://github.com/rajyavardhan01/redloop
|
|
6
6
|
Project-URL: Repository, https://github.com/rajyavardhan01/redloop
|
|
@@ -39,13 +39,14 @@ Zero dependencies.
|
|
|
39
39
|
|
|
40
40
|
[](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml)
|
|
41
41
|
[](https://pypi.org/project/redloop/)
|
|
42
|
+
[](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/redloop)
|
|
42
43
|
[](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml)
|
|
43
44
|
[](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE)
|
|
44
45
|

|
|
45
46
|
|
|
46
47
|
<p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/redloop/main/docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
|
|
47
48
|
|
|
48
|
-
> Status: alpha (v0.1.
|
|
49
|
+
> Status: alpha (v0.1.2). Interfaces may change before 1.0.
|
|
49
50
|
|
|
50
51
|
```
|
|
51
52
|
threatmodel.toml ──► threat register ──► probe plan ──► adaptive attacks ──► findings ──► CI gate
|
|
@@ -193,7 +194,7 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](https://github.com/rajyavardha
|
|
|
193
194
|
- GitHub Action:
|
|
194
195
|
|
|
195
196
|
```yaml
|
|
196
|
-
- uses: rajyavardhan01/redloop@v0.1.
|
|
197
|
+
- uses: rajyavardhan01/redloop@v0.1.2
|
|
197
198
|
with:
|
|
198
199
|
config: redloop.toml
|
|
199
200
|
fail-on: high
|
|
@@ -7,13 +7,14 @@ Zero dependencies.
|
|
|
7
7
|
|
|
8
8
|
[](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml)
|
|
9
9
|
[](https://pypi.org/project/redloop/)
|
|
10
|
+
[](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/redloop)
|
|
10
11
|
[](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml)
|
|
11
12
|
[](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE)
|
|
12
13
|

|
|
13
14
|
|
|
14
15
|
<p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/redloop/main/docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
|
|
15
16
|
|
|
16
|
-
> Status: alpha (v0.1.
|
|
17
|
+
> Status: alpha (v0.1.2). Interfaces may change before 1.0.
|
|
17
18
|
|
|
18
19
|
```
|
|
19
20
|
threatmodel.toml ──► threat register ──► probe plan ──► adaptive attacks ──► findings ──► CI gate
|
|
@@ -161,7 +162,7 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](https://github.com/rajyavardha
|
|
|
161
162
|
- GitHub Action:
|
|
162
163
|
|
|
163
164
|
```yaml
|
|
164
|
-
- uses: rajyavardhan01/redloop@v0.1.
|
|
165
|
+
- uses: rajyavardhan01/redloop@v0.1.2
|
|
165
166
|
with:
|
|
166
167
|
config: redloop.toml
|
|
167
168
|
fail-on: high
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Please report security problems in redloop privately through GitHub Security Advisories: open
|
|
6
|
+
the [Security tab](https://github.com/rajyavardhan01/redloop/security) of this repository and
|
|
7
|
+
choose **Report a vulnerability** (direct link:
|
|
8
|
+
<https://github.com/rajyavardhan01/redloop/security/advisories/new>). Do not open a public
|
|
9
|
+
issue for security problems.
|
|
10
|
+
|
|
11
|
+
Include the redloop version, the configuration (with secrets removed), and steps to reproduce.
|
|
12
|
+
You can expect an acknowledgement within 7 days. Fixes are released as patch versions and
|
|
13
|
+
credited in the changelog unless you prefer otherwise.
|
|
14
|
+
|
|
15
|
+
## Scope
|
|
16
|
+
|
|
17
|
+
In scope: secrets that leak into output or evidence bundles, evidence-manifest bypasses,
|
|
18
|
+
redloop executing a tool call or command that a model requested, and sandbox containers that
|
|
19
|
+
are not removed or that bind beyond localhost. False positives and missed detections are
|
|
20
|
+
welcome as regular issues.
|
|
21
|
+
|
|
22
|
+
## Scope and safe use
|
|
23
|
+
|
|
24
|
+
redloop sends adversarial test prompts to systems you point it at. Only test systems you own
|
|
25
|
+
or are explicitly authorized to test. The built-in probes are benign by design: success is
|
|
26
|
+
measured with random canary tokens and fake tool calls to `.invalid` domains, and redloop
|
|
27
|
+
never executes the tools a model asks for. API keys are read from environment variables and
|
|
28
|
+
redacted from evidence bundles.
|
|
29
|
+
|
|
30
|
+
## Supported versions
|
|
31
|
+
|
|
32
|
+
Only the latest release receives security fixes during the 0.x series.
|
|
@@ -33,12 +33,14 @@ inputs:
|
|
|
33
33
|
runs:
|
|
34
34
|
using: composite
|
|
35
35
|
steps:
|
|
36
|
-
- uses: actions/setup-python@
|
|
36
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
37
37
|
with:
|
|
38
38
|
python-version: "3.12"
|
|
39
39
|
- name: Install redloop
|
|
40
40
|
shell: bash
|
|
41
|
-
|
|
41
|
+
env:
|
|
42
|
+
ACTION_PATH: ${{ github.action_path }}
|
|
43
|
+
run: python -m pip install "$ACTION_PATH"
|
|
42
44
|
- name: Run redloop
|
|
43
45
|
id: run
|
|
44
46
|
shell: bash
|
|
@@ -58,10 +60,12 @@ runs:
|
|
|
58
60
|
echo "exit-code=$code" >> "$GITHUB_OUTPUT"
|
|
59
61
|
- name: Upload SARIF
|
|
60
62
|
if: always() && inputs.upload-sarif == 'true'
|
|
61
|
-
uses: github/codeql-action/upload-sarif@
|
|
63
|
+
uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
62
64
|
with:
|
|
63
65
|
sarif_file: ${{ inputs.sarif }}
|
|
64
66
|
category: redloop
|
|
65
67
|
- name: Enforce gate
|
|
66
68
|
shell: bash
|
|
67
|
-
|
|
69
|
+
env:
|
|
70
|
+
RL_EXIT_CODE: ${{ steps.run.outputs.exit-code }}
|
|
71
|
+
run: exit "${RL_EXIT_CODE:-2}"
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "redloop"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Continuous AI red teaming as code: threat model, adaptive adversarial tests, resilience maturity scoring, audit-ready evidence and a CI gate. Zero dependencies."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
redloop-0.1.1/SECURITY.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Security policy
|
|
2
|
-
|
|
3
|
-
## Reporting a vulnerability
|
|
4
|
-
|
|
5
|
-
Please report security problems in redloop privately through GitHub: open the repository's
|
|
6
|
-
**Security** tab and choose **Report a vulnerability**. Do not open a public issue.
|
|
7
|
-
|
|
8
|
-
Only the latest release receives fixes.
|
|
9
|
-
|
|
10
|
-
## Scope and safe use
|
|
11
|
-
|
|
12
|
-
redloop sends adversarial test prompts to systems you point it at. Only test systems you own
|
|
13
|
-
or are explicitly authorized to test. The built-in probes are benign by design: success is
|
|
14
|
-
measured with random canary tokens and fake tool calls to `.invalid` domains, and redloop
|
|
15
|
-
never executes the tools a model asks for. API keys are read from environment variables and
|
|
16
|
-
redacted from evidence bundles.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|