keep-github-workflows-active 2.2.0__tar.gz → 2.3.1__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.
Files changed (44) hide show
  1. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/workflows/default_cicd_public.yml +83 -14
  2. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.gitignore +2 -0
  3. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/CHANGELOG.md +23 -0
  4. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/Makefile +1 -1
  5. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/PKG-INFO +9 -10
  6. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/README.md +0 -1
  7. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/pyproject.toml +23 -14
  8. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/__init__conf__.py +1 -1
  9. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/keep_github_workflow_active.py +9 -5
  10. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_github_integration.py +1 -1
  11. keep_github_workflows_active-2.2.0/CLAUDE.md +0 -129
  12. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.devcontainer/devcontainer.json +0 -0
  13. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.devcontainer/settings.json +0 -0
  14. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.env.example +0 -0
  15. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/actions/extract-metadata/action.yml +0 -0
  16. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/dependabot.yml +0 -0
  17. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/workflows/activate_workflows.yml +0 -0
  18. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/workflows/activate_workflows_priv.yml +0 -0
  19. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/workflows/codeql.yml +0 -0
  20. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.github/workflows/default_release_public.yml +0 -0
  21. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.qlty/qlty.toml +0 -0
  22. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/.snyk +0 -0
  23. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/CONTRIBUTING.md +0 -0
  24. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/DEVELOPMENT.md +0 -0
  25. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/INSTALL.md +0 -0
  26. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/LICENSE +0 -0
  27. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/codecov.yml +0 -0
  28. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/concept.md +0 -0
  29. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/docs/systemdesign/SECURITY.md +0 -0
  30. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/docs/systemdesign/module_reference.md +0 -0
  31. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/notebooks/Quickstart.ipynb +0 -0
  32. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/__init__.py +0 -0
  33. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/__main__.py +0 -0
  34. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/behaviors.py +0 -0
  35. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/cli.py +0 -0
  36. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/doctest.env +0 -0
  37. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/py.typed +0 -0
  38. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/src/keep_github_workflows_active/sanitization.py +0 -0
  39. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/conftest.py +0 -0
  40. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_behaviors.py +0 -0
  41. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_cli.py +0 -0
  42. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_metadata.py +0 -0
  43. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_module_entry.py +0 -0
  44. {keep_github_workflows_active-2.2.0 → keep_github_workflows_active-2.3.1}/tests/test_sanitization.py +0 -0
@@ -11,24 +11,27 @@ on:
11
11
 
12
12
  jobs:
13
13
  setup:
14
- name: Extract Python versions from pyproject.toml
14
+ name: Extract Python versions and OS matrix from pyproject.toml
15
15
  runs-on: ubuntu-latest
16
16
  outputs:
17
- python-versions: ${{ steps.versions.outputs.python-versions }}
18
- python-latest: ${{ steps.versions.outputs.python-latest }}
17
+ python-versions: ${{ steps.metadata.outputs.python-versions }}
18
+ python-latest: ${{ steps.metadata.outputs.python-latest }}
19
+ os-matrix: ${{ steps.metadata.outputs.os-matrix }}
19
20
  steps:
20
21
  - uses: actions/checkout@v6
21
22
  - uses: actions/setup-python@v6
22
23
  with:
23
24
  python-version: "3.x"
24
- - name: Parse classifiers for Python versions
25
- id: versions
25
+ - name: Parse pyproject.toml for Python versions and OS matrix
26
+ id: metadata
26
27
  shell: python
27
28
  run: |
28
29
  import json, os, tomllib
29
30
 
30
31
  with open("pyproject.toml", "rb") as f:
31
32
  data = tomllib.load(f)
33
+
34
+ # Python versions from classifiers
32
35
  classifiers = data.get("project", {}).get("classifiers", [])
33
36
  prefix = "Programming Language :: Python :: "
34
37
  versions = [
@@ -38,9 +41,15 @@ jobs:
38
41
  ]
39
42
  if not versions:
40
43
  raise SystemExit("No Python X.Y versions found in classifiers")
44
+
45
+ # OS matrix from [tool.ci]
46
+ ci_config = data.get("tool", {}).get("ci", {})
47
+ os_list = ci_config.get("os", ["ubuntu-latest"])
48
+
41
49
  with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
42
50
  fh.write(f"python-versions={json.dumps(versions)}\n")
43
51
  fh.write(f"python-latest={versions[-1]}\n")
52
+ fh.write(f"os-matrix={json.dumps(os_list)}\n")
44
53
 
45
54
  test:
46
55
  name: Tests (Python ${{ matrix.python }}, ${{ matrix.os }})
@@ -49,7 +58,7 @@ jobs:
49
58
  strategy:
50
59
  fail-fast: false
51
60
  matrix:
52
- os: [ubuntu-latest, macos-latest, windows-latest]
61
+ os: ${{ fromJSON(needs.setup.outputs.os-matrix) }}
53
62
  python: ${{ fromJSON(needs.setup.outputs.python-versions) }}
54
63
  env:
55
64
  PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
@@ -77,23 +86,83 @@ jobs:
77
86
  id: metadata
78
87
  uses: ./.github/actions/extract-metadata
79
88
 
80
- - name: Install journald prerequisites
89
+ - name: Install CI system dependencies (Ubuntu)
81
90
  if: runner.os == 'Linux'
82
- shell: bash
91
+ shell: python
92
+ run: |
93
+ import subprocess
94
+ try:
95
+ import tomllib
96
+ except ModuleNotFoundError:
97
+ import pip._vendor.tomli as tomllib
98
+ with open("pyproject.toml", "rb") as f:
99
+ data = tomllib.load(f)
100
+ deps = data.get("tool", {}).get("ci", {}).get("system-dependencies-ubuntu", [])
101
+ if deps:
102
+ print(f"Installing system packages: {' '.join(deps)}")
103
+ subprocess.check_call(["sudo", "apt-get", "update"])
104
+ subprocess.check_call(["sudo", "apt-get", "install", "-y", *deps])
105
+ else:
106
+ print("No CI system dependencies configured for Ubuntu.")
107
+
108
+ - name: Install CI system dependencies (macOS)
109
+ if: runner.os == 'macOS'
110
+ shell: python
83
111
  run: |
84
- sudo apt-get update
85
- sudo apt-get install -y python3-systemd
112
+ import subprocess
113
+ try:
114
+ import tomllib
115
+ except ModuleNotFoundError:
116
+ import pip._vendor.tomli as tomllib
117
+ with open("pyproject.toml", "rb") as f:
118
+ data = tomllib.load(f)
119
+ deps = data.get("tool", {}).get("ci", {}).get("system-dependencies-macos", [])
120
+ if deps:
121
+ print(f"Installing system packages: {' '.join(deps)}")
122
+ subprocess.check_call(["brew", "install", *deps])
123
+ else:
124
+ print("No CI system dependencies configured for macOS.")
86
125
 
87
126
  - name: Install dev deps
88
127
  shell: bash
89
128
  run: |
90
129
  uv pip install -e .[dev] --system
91
130
 
92
- - name: Install Windows Event Log prerequisites
131
+ - name: Install CI system dependencies (Windows/choco)
93
132
  if: runner.os == 'Windows'
94
- shell: bash
133
+ shell: python
95
134
  run: |
96
- uv pip install pywin32 --system
135
+ import subprocess
136
+ try:
137
+ import tomllib
138
+ except ModuleNotFoundError:
139
+ import pip._vendor.tomli as tomllib
140
+ with open("pyproject.toml", "rb") as f:
141
+ data = tomllib.load(f)
142
+ deps = data.get("tool", {}).get("ci", {}).get("system-dependencies-windows-choco", [])
143
+ if deps:
144
+ print(f"Installing choco packages: {' '.join(deps)}")
145
+ subprocess.check_call(["choco", "install", "-y", *deps])
146
+ else:
147
+ print("No CI choco dependencies configured for Windows.")
148
+
149
+ - name: Install CI pip dependencies (Windows)
150
+ if: runner.os == 'Windows'
151
+ shell: python
152
+ run: |
153
+ import subprocess
154
+ try:
155
+ import tomllib
156
+ except ModuleNotFoundError:
157
+ import pip._vendor.tomli as tomllib
158
+ with open("pyproject.toml", "rb") as f:
159
+ data = tomllib.load(f)
160
+ deps = data.get("tool", {}).get("ci", {}).get("system-dependencies-windows-pip", [])
161
+ if deps:
162
+ print(f"Installing pip packages: {' '.join(deps)}")
163
+ subprocess.check_call(["uv", "pip", "install", *deps, "--system"])
164
+ else:
165
+ print("No CI pip dependencies configured for Windows.")
97
166
 
98
167
  # Self-hosted runners persist ruff cache via RUFF_CACHE_DIR volume mount,
99
168
  # so actions/cache is only needed on GitHub-hosted runners.
@@ -145,7 +214,7 @@ jobs:
145
214
  && steps.pytest.outcome == 'success'
146
215
  && matrix.os == 'ubuntu-latest'
147
216
  && matrix.python == needs.setup.outputs.python-latest
148
- uses: codecov/codecov-action@v5
217
+ uses: codecov/codecov-action@v6
149
218
  with:
150
219
  files: ${{ env.COV_REPORT_FILE }}
151
220
  fail_ci_if_error: false
@@ -179,3 +179,5 @@ poetry.lock
179
179
  pdm.lock
180
180
  uv.lock
181
181
  /.github.bak/
182
+ .claude/
183
+ CLAUDE.md
@@ -2,6 +2,29 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [2.3.1] - 2026-05-14
6
+
7
+ ### Fixed
8
+ - Annotated `headers` dicts in `keep_github_workflow_active.py` as `dict[str, str | bytes]` so pyright accepts them as `requests` `HeadersType` (which is `MutableMapping[str, str | bytes]` and invariant on the value type). Restores green CI under types-requests 2.34.
9
+
10
+ ### Security
11
+ - Refreshed pip-audit ignore list: removed resolved entries for gitpython (`CVE-2026-42215`, `CVE-2026-42284`, `CVE-2026-44244`) and python-multipart (`CVE-2026-42561`); kept the pip CVEs (`CVE-2026-3219`, `CVE-2026-6357`) since the CI runner still ships pip 26.0.1; added `CVE-2026-44405` (paramiko, no fix yet) and `CVE-2026-44431`/`CVE-2026-44432` (urllib3 2.6.3 in the local bmk toolchain, fixed in 2.7.0)
12
+
13
+ ## [2.3.0] - 2026-05-03
14
+
15
+ ### Added
16
+ - New `SkippedWorkflowType.UPDATE_GRAPH` enum value to skip GitHub-managed `update-graph` workflows during enablement (these can't be enabled via the standard Actions API)
17
+ - New pytest `integration` marker registered in `pyproject.toml`; live-API tests in `tests/test_github_integration.py` now carry both `local_only` and `integration` markers so `make testintegration` collects them
18
+
19
+ ### Changed
20
+ - CI/CD workflow updated: `default_cicd_public.yml` matrix and codecov-action v6
21
+ - `updrootvol` automation cleanup: removed snyk badge from README
22
+
23
+ ### Security
24
+ - Added `CVE-2026-3219` (pip 26.0.1 concatenated tar+ZIP confusion, no fix yet) to pip-audit ignore list
25
+ - Cleaned obsolete entries from pip-audit ignore list (resolved or not flagged): `GHSA-4xh5-x5gv-qwph`, `CVE-2026-4539`, `CVE-2026-25990`, `CVE-2025-8869`, `CVE-2026-1703`
26
+ - Restored `PYSEC-2022-42969` after verifying `py` 1.11.0 is still flagged in the local audit environment
27
+
5
28
  ## [2.2.0] - 2026-03-29
6
29
 
7
30
  ### Added
@@ -1,4 +1,4 @@
1
- # BMK MAKEFILE 2.9.0
1
+ # BMK MAKEFILE 2.9.1
2
2
  # do not alter this file - it might be overwritten on new versions of BMK
3
3
  # if You want to alter it, remove the first line # BMK MAKEFILE 1.0 - then it is a custom makefile and will not be overwritten
4
4
  # bmk Makefile — thin wrapper using `uv tool install` for persistent bmk
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keep_github_workflows_active
3
- Version: 2.2.0
3
+ Version: 2.3.1
4
4
  Summary: Template for python apps with registered cli commands
5
5
  Project-URL: Homepage, https://github.com/bitranox/keep_github_workflows_active
6
6
  Project-URL: Repository, https://github.com/bitranox/keep_github_workflows_active.git
@@ -17,22 +17,22 @@ Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Typing :: Typed
19
19
  Requires-Python: >=3.10
20
- Requires-Dist: lib-cli-exit-tools>=2.3.0
21
- Requires-Dist: pydantic>=2.12.5
22
- Requires-Dist: requests>=2.33.0
20
+ Requires-Dist: lib-cli-exit-tools>=2.3.1
21
+ Requires-Dist: pydantic>=2.13.4
22
+ Requires-Dist: requests>=2.34.1
23
23
  Requires-Dist: rich-click>=1.9.7
24
24
  Provides-Extra: dev
25
25
  Requires-Dist: bandit>=1.9.4; extra == 'dev'
26
- Requires-Dist: build>=1.4.2; extra == 'dev'
26
+ Requires-Dist: build>=1.5.0; extra == 'dev'
27
27
  Requires-Dist: codecov-cli>=11.2.8; extra == 'dev'
28
28
  Requires-Dist: import-linter>=2.11; extra == 'dev'
29
29
  Requires-Dist: pip-audit>=2.10.0; extra == 'dev'
30
- Requires-Dist: pyright[nodejs]>=1.1.408; extra == 'dev'
30
+ Requires-Dist: pyright[nodejs]>=1.1.409; extra == 'dev'
31
31
  Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
32
- Requires-Dist: pytest>=9.0.2; extra == 'dev'
32
+ Requires-Dist: pytest>=9.0.3; extra == 'dev'
33
33
  Requires-Dist: rtoml>=0.13.0; extra == 'dev'
34
- Requires-Dist: ruff>=0.15.8; extra == 'dev'
35
- Requires-Dist: textual>=8.2.1; extra == 'dev'
34
+ Requires-Dist: ruff>=0.15.12; extra == 'dev'
35
+ Requires-Dist: textual>=8.2.6; extra == 'dev'
36
36
  Requires-Dist: twine>=6.2.0; extra == 'dev'
37
37
  Description-Content-Type: text/markdown
38
38
 
@@ -48,7 +48,6 @@ Description-Content-Type: text/markdown
48
48
  [![Code Style: Ruff](https://img.shields.io/badge/Code%20Style-Ruff-46A3FF?logo=ruff&labelColor=000)](https://docs.astral.sh/ruff/)
49
49
  [![codecov](https://codecov.io/gh/bitranox/keep_github_workflows_active/graph/badge.svg?token=UFBaUDIgRk)](https://codecov.io/gh/bitranox/keep_github_workflows_active)
50
50
  [![Maintainability](https://qlty.sh/badges/041ba2c1-37d6-40bb-85a0-ec5a8a0aca0c/maintainability.svg)](https://qlty.sh/gh/bitranox/projects/keep_github_workflows_active)
51
- [![Known Vulnerabilities](https://snyk.io/test/github/bitranox/keep_github_workflows_active/badge.svg)](https://snyk.io/test/github/bitranox/keep_github_workflows_active)
52
51
  [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
53
52
 
54
53
  > **CI cadence:** The GitHub Actions CI workflow runs automatically every Monday at 07:00 UTC, in addition to push and pull request triggers.
@@ -10,7 +10,6 @@
10
10
  [![Code Style: Ruff](https://img.shields.io/badge/Code%20Style-Ruff-46A3FF?logo=ruff&labelColor=000)](https://docs.astral.sh/ruff/)
11
11
  [![codecov](https://codecov.io/gh/bitranox/keep_github_workflows_active/graph/badge.svg?token=UFBaUDIgRk)](https://codecov.io/gh/bitranox/keep_github_workflows_active)
12
12
  [![Maintainability](https://qlty.sh/badges/041ba2c1-37d6-40bb-85a0-ec5a8a0aca0c/maintainability.svg)](https://qlty.sh/gh/bitranox/projects/keep_github_workflows_active)
13
- [![Known Vulnerabilities](https://snyk.io/test/github/bitranox/keep_github_workflows_active/badge.svg)](https://snyk.io/test/github/bitranox/keep_github_workflows_active)
14
13
  [![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
15
14
 
16
15
  > **CI cadence:** The GitHub Actions CI workflow runs automatically every Monday at 07:00 UTC, in addition to push and pull request triggers.
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "keep_github_workflows_active"
3
- version = "2.2.0"
3
+ version = "2.3.1"
4
4
  description = "Template for python apps with registered cli commands"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
7
- dependencies = ["rich-click>=1.9.7", "lib_cli_exit_tools>=2.3.0", "requests>=2.33.0", "pydantic>=2.12.5"]
7
+ dependencies = ["rich-click>=1.9.7", "lib_cli_exit_tools>=2.3.1", "requests>=2.34.1", "pydantic>=2.13.4"]
8
8
  license = { text = "MIT" }
9
9
  authors = [{ name = "bitranox", email = "bitranox@gmail.com" }]
10
10
  keywords = ["logging", "rich", "cli", "terminal", "ansi"]
@@ -19,6 +19,15 @@ classifiers = [
19
19
  "Programming Language :: Python :: 3.14",
20
20
  ]
21
21
 
22
+ # System packages required for CI runners (read by GitHub Actions workflow template)
23
+ # Format: "apt_package_name" for Ubuntu, future: {"apt": "...", "brew": "...", "choco": "..."}
24
+ [tool.ci]
25
+ system-dependencies-ubuntu = []
26
+ system-dependencies-macos = []
27
+ system-dependencies-windows-pip = []
28
+ system-dependencies-windows-choco = []
29
+ os = ["ubuntu-latest", "windows-latest", "macos-latest"]
30
+
22
31
  [project.urls]
23
32
  Homepage = "https://github.com/bitranox/keep_github_workflows_active"
24
33
  Repository = "https://github.com/bitranox/keep_github_workflows_active.git"
@@ -26,16 +35,16 @@ Issues = "https://github.com/bitranox/keep_github_workflows_active/issues"
26
35
 
27
36
  [project.optional-dependencies]
28
37
  dev = [
29
- "pytest>=9.0.2",
38
+ "pytest>=9.0.3",
30
39
  "pytest-cov>=7.1.0",
31
- "ruff>=0.15.8",
32
- "pyright[nodejs]>=1.1.408",
40
+ "ruff>=0.15.12",
41
+ "pyright[nodejs]>=1.1.409",
33
42
  "bandit>=1.9.4",
34
- "build>=1.4.2",
43
+ "build>=1.5.0",
35
44
  "twine>=6.2.0",
36
45
  "codecov-cli>=11.2.8",
37
46
  "pip-audit>=2.10.0",
38
- "textual>=8.2.1",
47
+ "textual>=8.2.6",
39
48
  "import-linter>=2.11",
40
49
  "rtoml>=0.13.0"
41
50
  ]
@@ -82,6 +91,7 @@ markers = [
82
91
  "os_posix: test exercises behavior requiring POSIX semantics",
83
92
  "os_linux: test exercises Linux-only behavior",
84
93
  "local_only: test requires local credentials or resources unavailable in CI",
94
+ "integration: test exercises external systems (e.g. live GitHub API)",
85
95
  ]
86
96
 
87
97
  [tool.coverage.run]
@@ -144,10 +154,9 @@ layers = [
144
154
 
145
155
  [tool.pip-audit]
146
156
  # Known vulnerabilities to ignore (unfixable or accepted risk)
147
- # GHSA-4xh5-x5gv-qwph: py library ReDoS via crafted SVN info (no fix available, low risk)
148
- # PYSEC-2022-42969: alias for GHSA-4xh5-x5gv-qwph
149
- # CVE-2026-4539: pygments AdlLexer ReDoS, local access only, no fix yet
150
- # CVE-2026-25990: pillow 12.0.0 (transitive dep, fix in 12.1.1)
151
- # CVE-2025-8869: pip 24.3.1 path traversal (fix in 25.3, system-managed)
152
- # CVE-2026-1703: pip 24.3.1 (fix in 26.0, system-managed)
153
- ignore-vulns = ["GHSA-4xh5-x5gv-qwph", "PYSEC-2022-42969", "CVE-2026-4539", "CVE-2026-25990", "CVE-2025-8869", "CVE-2026-1703"]
157
+ # CVE-2026-3219: pip 26.0.1 concatenated tar+ZIP confusion, no fix released yet (CI runner ships 26.0.1)
158
+ # CVE-2026-6357: pip 26.0.1 self-update wheel-import ordering, fix in 26.1 (CI runner ships 26.0.1)
159
+ # PYSEC-2022-42969: py 1.11.0 ReDoS via crafted SVN info, no fix available
160
+ # CVE-2026-44405: paramiko 4.0.0 rsakey.py allows SHA-1 (local bmk toolchain dep, no fix released yet)
161
+ # CVE-2026-44431/CVE-2026-44432: urllib3 2.6.3 (local bmk toolchain dep, fix in 2.7.0)
162
+ ignore-vulns = ["CVE-2026-3219", "CVE-2026-6357", "PYSEC-2022-42969", "CVE-2026-44405", "CVE-2026-44431", "CVE-2026-44432"]
@@ -24,7 +24,7 @@ name = "keep_github_workflows_active"
24
24
  #: Human-readable summary shown in CLI help output.
25
25
  title = "Template for python apps with registered cli commands"
26
26
  #: Current release version pulled from ``pyproject.toml`` by automation.
27
- version = "2.2.0"
27
+ version = "2.3.1"
28
28
  #: Repository homepage presented to users.
29
29
  homepage = "https://github.com/bitranox/keep_github_workflows_active"
30
30
  #: Author attribution surfaced in CLI output.
@@ -30,11 +30,13 @@ class SkippedWorkflowType(IntEnum):
30
30
 
31
31
  PAGES_BUILD_DEPLOYMENT = 1
32
32
  DEPENDABOT = 2
33
+ UPDATE_GRAPH = 3
33
34
 
34
35
 
35
36
  SKIPPED_WORKFLOW_PREFIXES: dict[SkippedWorkflowType, str] = {
36
37
  SkippedWorkflowType.PAGES_BUILD_DEPLOYMENT: "pages-build-deployment",
37
38
  SkippedWorkflowType.DEPENDABOT: "dependabot",
39
+ SkippedWorkflowType.UPDATE_GRAPH: "update-graph",
38
40
  }
39
41
 
40
42
 
@@ -493,7 +495,7 @@ def get_repositories(owner: str, github_token: str) -> list[str]:
493
495
 
494
496
  """
495
497
  repositories: list[str] = []
496
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
498
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
497
499
 
498
500
  # Try the org endpoint first (returns private repos too), fall back to user endpoint.
499
501
  org_url = f"https://api.github.com/orgs/{owner}/repos?per_page=100"
@@ -554,7 +556,7 @@ def get_workflows(owner: str, repository: str, github_token: str) -> list[str]:
554
556
  """
555
557
  workflows: list[str] = []
556
558
  url: str | None = f"https://api.github.com/repos/{owner}/{repository}/actions/workflows?per_page=100"
557
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
559
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
558
560
 
559
561
  while url:
560
562
  try:
@@ -597,7 +599,7 @@ def get_workflow_runs(owner: str, repository: str, github_token: str) -> list[in
597
599
 
598
600
  """
599
601
  url: str | None = f"https://api.github.com/repos/{owner}/{repository}/actions/runs?per_page=100"
600
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
602
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
601
603
 
602
604
  workflow_run_ids: list[int] = []
603
605
  while url:
@@ -633,7 +635,7 @@ def delete_workflow_run(owner: str, repository: str, github_token: str, run_id_t
633
635
  :return: None
634
636
  """
635
637
  url = f"https://api.github.com/repos/{owner}/{repository}/actions/runs/{run_id_to_delete}"
636
- headers = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
638
+ headers: dict[str, str | bytes] = {"Authorization": f"Bearer {github_token}", "Accept": "application/vnd.github.v3+json"}
637
639
 
638
640
  try:
639
641
  response = requests.delete(url, headers=headers, timeout=REQUEST_TIMEOUT_SECONDS)
@@ -688,7 +690,7 @@ def enable_workflow(owner: str, repository: str, workflow_filename: str, github_
688
690
 
689
691
  """
690
692
  url = f"https://api.github.com/repos/{owner}/{repository}/actions/workflows/{workflow_filename}/enable"
691
- headers = {"Accept": "application/vnd.github.v3+json", "Authorization": f"Bearer {github_token}"}
693
+ headers: dict[str, str | bytes] = {"Accept": "application/vnd.github.v3+json", "Authorization": f"Bearer {github_token}"}
692
694
 
693
695
  response: requests.Response | None = None
694
696
  try:
@@ -697,6 +699,8 @@ def enable_workflow(owner: str, repository: str, workflow_filename: str, github_
697
699
  result = f"Repository {repository}, workflow {workflow_filename} skipped - those can not be enabled"
698
700
  elif skip_reason == SkippedWorkflowType.DEPENDABOT:
699
701
  result = f"Repository {repository}, workflow {workflow_filename} skipped - managed by Dependabot"
702
+ elif skip_reason == SkippedWorkflowType.UPDATE_GRAPH:
703
+ result = f"Repository {repository}, workflow {workflow_filename} skipped - managed by GitHub dependency graph"
700
704
  else:
701
705
  response = requests.put(url, headers=headers, timeout=REQUEST_TIMEOUT_SECONDS)
702
706
  response.raise_for_status()
@@ -34,7 +34,7 @@ def _has_github_credentials() -> bool:
34
34
  return False
35
35
 
36
36
 
37
- pytestmark = [pytest.mark.local_only]
37
+ pytestmark = [pytest.mark.local_only, pytest.mark.integration]
38
38
 
39
39
 
40
40
  @pytest.mark.skipif(not _has_github_credentials(), reason="GitHub credentials not available")
@@ -1,129 +0,0 @@
1
- # Repository Guidelines
2
-
3
- ## On session start
4
-
5
- - Read following files from directory /media/srv-main-softdev/*/projects/softwarestack/systemprompts and keep their guidance in working memory:
6
- - core_programming_solid.md
7
- - use skill `bx-bash-clean-architecture`
8
- - bash_clean_code.md
9
- - bash_small_functions.md
10
- - python_solid_architecture_enforcer.md
11
- - python_clean_code.md
12
- - python_small_functions_style.md
13
- - use skill `bx-python-libraries-to-use`
14
- - python_structure_template.md
15
- - self_documenting.md
16
- - self_documenting_template.md
17
- - python_jupyter_notebooks.md
18
- - python_testing.md
19
-
20
- always apply those Rules :
21
-
22
- - core_programming_solid.md
23
-
24
- when writing or refracturing Bash scripts, apply those Rules :
25
-
26
- - core_programming_solid.md
27
- - use skill `bx-bash-clean-architecture`
28
- - bash_clean_code.md
29
- - bash_small_functions.md
30
-
31
- when writing or refracturing Python scripts, apply those Rules :
32
- - core_programming_solid.md
33
- - python_solid_architecture_enforcer.md
34
- - use skill `bx-python-clean-architecture`
35
- - python_clean_code.md
36
- - python_small_functions_style.md
37
- - use skill `bx-python-libraries-to-use`
38
- - python_lib_structure_template.md
39
-
40
- ## Project Structure & Module Organization
41
-
42
- - `src/keep_github_workflows_active/`: Python package
43
- - `scripts/`: shared automation
44
- - `tests/`: test suite
45
-
46
-
47
- ### Versioning & Releases
48
-
49
- - Single source of truth for the package version is `pyproject.toml` (`[project].version`).
50
- - Automation rewrites `src/keep_github_workflows_active/__init__conf__.py` from `pyproject.toml`, so runtime code imports generated constants instead of querying `importlib.metadata`.
51
- - After updating project metadata (version, summary, URLs, authors) run `make test` (or `python -m scripts.test`) to regenerate the metadata module before committing.
52
- - Tag releases `vX.Y.Z` and push tags; CI will build artifacts and publish when configured.
53
-
54
- ### Common Make Targets (Alphabetical)
55
-
56
-
57
- | Target | One-line description |
58
- |-------------------|--------------------------------------------------------------------------------|
59
- | `build` | Build wheel/sdist artifacts. |
60
- | `bump` | Bump version (VERSION=X.Y.Z or PART=major\|minor\|patch) and update changelog. |
61
- | `bump-major` | Increment major version ((X+1).0.0). |
62
- | `bump-minor` | Increment minor version (X.Y.Z → X.(Y+1).0). |
63
- | `bump-patch` | Increment patch version (X.Y.Z → X.Y.(Z+1)). |
64
- | `clean` | Remove caches, coverage, and build artifacts (includes `dist/` and `build/`). |
65
- | `dev` | Install package with dev extras. |
66
- | `help` | Show this table. |
67
- | `install` | Editable install. |
68
- | `menu` | Interactive TUI menu (make menu). |
69
- | `push` | Commit changes once and push to GitHub (no CI monitoring). |
70
- | `release` | Tag vX.Y.Z, push, sync packaging, run gh release if available. |
71
- | `run` | Run module entry (`python -m ... --help`). |
72
- | `test` | Lint, format, type-check, run tests with coverage, upload to Codecov. |
73
- | `version-current` | Print current version from `pyproject.toml`. |
74
-
75
-
76
- ## Coding Style & Naming Conventions
77
- - apply python_clean_code.md
78
-
79
-
80
- ## Commit & Pull Request Guidelines
81
-
82
- ## Architecture Overview
83
- - use skill `bx-python-clean-architecture`
84
-
85
- ## Data Architecture Rules
86
-
87
- This project follows strict data architecture rules using Pydantic models and Enums:
88
-
89
- ### Core Principles
90
- 1. **Pydantic at Boundaries**: All external data (API requests, file reads, env vars) is parsed into Pydantic models immediately upon entry
91
- 2. **Pydantic for Export**: All outputs use Pydantic's `.model_dump()` or `.model_dump_json()`
92
- 3. **No Internal Dicts**: Inside the application, never use raw dicts for structured data - use typed models
93
- 4. **Enums for Constants**: All string literals representing categories, statuses, or modes use Enums (prefer `IntEnum` for performance)
94
- 5. **Minimize Conversions**: Ideal flow is ONE parse at input, ONE dump at output
95
-
96
- ### Key Pydantic Models
97
- - `GitHubRepository`, `GitHubWorkflow`, `GitHubWorkflowRun` - GitHub API responses
98
- - `GitHubErrorResponse` - Error parsing with `from_response()` factory
99
- - `PaginationLink` - Typed wrapper for pagination headers with `from_link_dict()` factory
100
- - `EnvConfig` - Dynamic configuration with `__getattr__` for typed attribute access
101
-
102
- ### Enums
103
- - `SkippedWorkflowType` (IntEnum) - Workflow types to skip during enablement
104
-
105
- ### Exceptions to Rules (Framework Requirements)
106
- - `CLICK_CONTEXT_SETTINGS` dict - Required by Click framework API
107
- - Pydantic `model_validator(mode="before")` returning dict - Required by Pydantic
108
- - `sanitization.py` dict handling - Security utility designed for arbitrary dict sanitization
109
-
110
- ## Security & Configuration Tips
111
- - `.env` is only for local tooling (CodeCov tokens, etc.); do not commit secrets.
112
- - Rich logging should sanitize payloads before rendering once implemented.
113
- - All logging calls use `sanitization.sanitize_message()` to prevent credential leakage.
114
-
115
- ## Translations (Docs)
116
-
117
- ## Translations (App UI Strings)
118
-
119
- ## Changes in WEB Documentation
120
- - when asked to update documentation - only do that in the english docs under /website/docs because other languages will be translated automatically,
121
- unless stated otherwise by the user. In doubt - ask the user
122
-
123
- ## Changes in APP Strings
124
- - when i18 strings are changed, only to that in sources/\_locales/en because other languages will be translated automatically,
125
- unless stated otherwise by the user. In doubt - ask the user
126
-
127
- ## commit/push/GitHub policy
128
- - run "make test" before any push to avoid lint/test breakage.
129
- - after push, monitor errors in the github actions and try to correct the errors