secretscreen 0.6.0__tar.gz → 0.6.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.
- secretscreen-0.6.1/.github/scripts/mutation_report.py +110 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/automerge.yml +9 -5
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/ci.yml +3 -3
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/codeql.yml +3 -3
- secretscreen-0.6.1/.github/workflows/mutation.yml +73 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/publish.yml +2 -2
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/release.yml +5 -5
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/scorecard.yml +3 -3
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/workflows/test-gate.yml +1 -1
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.gitignore +4 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/PKG-INFO +4 -4
- {secretscreen-0.6.0 → secretscreen-0.6.1}/pyproject.toml +9 -1
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/FUNDING.yml +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/dependabot.yml +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/pull_request_template.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/.github/scripts/pr_test_gate.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/CODE_OF_CONDUCT.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/CONTRIBUTING.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/LICENSE +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/NOTICE +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/README.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/SECURITY.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/docs/audits/security-audit-2026-04-05.md +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/__init__.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_cli.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_config.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_core.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_entropy.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_formats.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_keys.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_parsers.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/_urls.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/gitleaks.toml +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/src/secretscreen/py.typed +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/__init__.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_architecture.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_cli.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_config.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_core.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_entropy.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_explain.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_formats.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_keys.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_parsers.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_urls.py +0 -0
- {secretscreen-0.6.0 → secretscreen-0.6.1}/tests/test_yaml_and_prefixes.py +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"""Turn a finished `mutmut run` into a report a reviewer can act on without rerunning it.
|
|
2
|
+
|
|
3
|
+
`mutmut results` lists survivor names and `mutmut show` prints one diff per process
|
|
4
|
+
start, about two seconds each; hundreds of survivors would take longer than the run.
|
|
5
|
+
This reads the same state in one process and writes:
|
|
6
|
+
|
|
7
|
+
mutation-report/summary.json counts, score, per-file breakdown
|
|
8
|
+
mutation-report/survivors.md every non-killed mutant with its diff, by file and function
|
|
9
|
+
|
|
10
|
+
It imports mutmut internals, so it is tied to the version pinned in the workflow.
|
|
11
|
+
Run from the repository root after `mutmut run`.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
import os
|
|
18
|
+
import subprocess
|
|
19
|
+
import sys
|
|
20
|
+
from collections import Counter, defaultdict
|
|
21
|
+
from pathlib import Path
|
|
22
|
+
|
|
23
|
+
from mutmut.mutation.data import SourceFileMutationData
|
|
24
|
+
from mutmut.mutation.diff_apply import get_diff_for_mutant
|
|
25
|
+
from mutmut.stats import status_by_exit_code
|
|
26
|
+
from mutmut.utils.file_utils import walk_mutatable_files
|
|
27
|
+
|
|
28
|
+
OUT = Path("mutation-report")
|
|
29
|
+
|
|
30
|
+
# Statuses that mean the tests did not catch the change. Timeouts and suspicious
|
|
31
|
+
# results are listed too: they are not proof of a gap, but each needs a look.
|
|
32
|
+
REPORTED = ("survived", "no tests", "timeout", "suspicious", "segfault")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _function_of(mutant: str) -> str:
|
|
36
|
+
# secretscreen._config.x_merge__mutmut_5 -> merge ; class methods: xǁClassǁmethod__mutmut_3
|
|
37
|
+
name = mutant.rpartition(".")[-1].rpartition("__mutmut_")[0]
|
|
38
|
+
return name.removeprefix("x_").removeprefix("x").replace("ǁ", ".").strip(".")
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def main() -> int:
|
|
42
|
+
totals: Counter[str] = Counter()
|
|
43
|
+
per_file: dict[str, Counter[str]] = {}
|
|
44
|
+
found: dict[str, dict[str, list[tuple[str, str, str]]]] = defaultdict(lambda: defaultdict(list))
|
|
45
|
+
|
|
46
|
+
for path in walk_mutatable_files():
|
|
47
|
+
data = SourceFileMutationData(path=path)
|
|
48
|
+
data.load()
|
|
49
|
+
if not data.exit_code_by_key:
|
|
50
|
+
continue
|
|
51
|
+
counts: Counter[str] = Counter()
|
|
52
|
+
for mutant, code in sorted(data.exit_code_by_key.items()):
|
|
53
|
+
status = status_by_exit_code[code]
|
|
54
|
+
counts[status] += 1
|
|
55
|
+
if status in REPORTED:
|
|
56
|
+
found[str(path)][_function_of(mutant)].append((mutant, status, get_diff_for_mutant(mutant, path=path)))
|
|
57
|
+
per_file[str(path)] = counts
|
|
58
|
+
totals.update(counts)
|
|
59
|
+
|
|
60
|
+
if not per_file:
|
|
61
|
+
print("no mutation results found; run `mutmut run` first", file=sys.stderr)
|
|
62
|
+
return 1
|
|
63
|
+
|
|
64
|
+
not_checked = totals["not checked"]
|
|
65
|
+
if not_checked:
|
|
66
|
+
print(f"{not_checked} mutants were never checked; the run did not finish", file=sys.stderr)
|
|
67
|
+
return 1
|
|
68
|
+
|
|
69
|
+
total = sum(totals.values())
|
|
70
|
+
commit = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=False).stdout.strip()
|
|
71
|
+
summary = {
|
|
72
|
+
"commit": commit,
|
|
73
|
+
"run_url": os.environ.get("RUN_URL", ""),
|
|
74
|
+
"total": total,
|
|
75
|
+
"statuses": dict(totals),
|
|
76
|
+
"score": round(100 * totals["killed"] / total, 1),
|
|
77
|
+
"files": {
|
|
78
|
+
p: {"total": sum(c.values()), "survived": c["survived"], "statuses": dict(c)} for p, c in per_file.items()
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
OUT.mkdir(exist_ok=True)
|
|
83
|
+
(OUT / "summary.json").write_text(json.dumps(summary, indent=2) + "\n")
|
|
84
|
+
|
|
85
|
+
lines = [
|
|
86
|
+
f"# Mutation survivors at {commit[:12]}",
|
|
87
|
+
"",
|
|
88
|
+
f"Score {summary['score']}% — {totals['killed']} killed of {total}. "
|
|
89
|
+
+ ", ".join(f"{s}: {totals[s]}" for s in REPORTED if totals[s]),
|
|
90
|
+
"",
|
|
91
|
+
"| File | Mutants | Survived | Other unkilled |",
|
|
92
|
+
"|---|---:|---:|---:|",
|
|
93
|
+
]
|
|
94
|
+
for p, c in sorted(per_file.items(), key=lambda kv: -kv[1]["survived"]):
|
|
95
|
+
other = sum(c[s] for s in REPORTED if s != "survived")
|
|
96
|
+
lines.append(f"| `{p}` | {sum(c.values())} | {c['survived']} | {other} |")
|
|
97
|
+
for p in sorted(found, key=lambda f: -sum(len(v) for v in found[f].values())):
|
|
98
|
+
lines += ["", f"## `{p}`"]
|
|
99
|
+
for func in sorted(found[p], key=lambda fn: -len(found[p][fn])):
|
|
100
|
+
lines += ["", f"### `{func}` — {len(found[p][func])}"]
|
|
101
|
+
for mutant, status, diff in found[p][func]:
|
|
102
|
+
lines += ["", f"`{mutant}` ({status})", "", "```diff", diff.rstrip(), "```"]
|
|
103
|
+
(OUT / "survivors.md").write_text("\n".join(lines) + "\n")
|
|
104
|
+
|
|
105
|
+
print(f"score {summary['score']}%: {totals['killed']}/{total} killed, {totals['survived']} survived")
|
|
106
|
+
return 0
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
if __name__ == "__main__":
|
|
110
|
+
sys.exit(main())
|
|
@@ -25,15 +25,19 @@ jobs:
|
|
|
25
25
|
# secrets, so checking out PR head code would hand them to the PR author.
|
|
26
26
|
- name: Generate token
|
|
27
27
|
id: generate_token
|
|
28
|
-
uses: actions/create-github-app-token@v3
|
|
28
|
+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
|
|
29
29
|
with:
|
|
30
|
-
|
|
30
|
+
client-id: ${{ secrets.BOT_CLIENT_ID }}
|
|
31
31
|
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
32
32
|
|
|
33
|
+
# gh with the app token, not a third-party action: one less dependency to
|
|
34
|
+
# pin, and hmarr/auto-approve-action targets Node 20, which runners now
|
|
35
|
+
# force onto Node 24.
|
|
33
36
|
- name: Approve PR
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
run: gh pr review --approve "$PR_URL"
|
|
38
|
+
env:
|
|
39
|
+
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
40
|
+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
|
|
37
41
|
|
|
38
42
|
# Must be the app token, not GITHUB_TOKEN. GitHub does not start new
|
|
39
43
|
# workflow runs for events triggered by GITHUB_TOKEN, so an auto-merge
|
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
steps:
|
|
26
26
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
27
27
|
|
|
28
|
-
- uses: actions/setup-python@
|
|
28
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
29
29
|
with:
|
|
30
30
|
python-version: "3.13"
|
|
31
31
|
cache: pip
|
|
@@ -50,7 +50,7 @@ jobs:
|
|
|
50
50
|
steps:
|
|
51
51
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
52
52
|
|
|
53
|
-
- uses: actions/setup-python@
|
|
53
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
54
54
|
with:
|
|
55
55
|
python-version: ${{ matrix.python-version }}
|
|
56
56
|
cache: pip
|
|
@@ -63,7 +63,7 @@ jobs:
|
|
|
63
63
|
|
|
64
64
|
- name: Upload coverage
|
|
65
65
|
if: matrix.python-version == '3.13'
|
|
66
|
-
uses: codecov/codecov-action@
|
|
66
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
67
67
|
with:
|
|
68
68
|
files: coverage.xml
|
|
69
69
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -21,12 +21,12 @@ jobs:
|
|
|
21
21
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
|
|
23
23
|
- name: Initialize CodeQL
|
|
24
|
-
uses: github/codeql-action/init@
|
|
24
|
+
uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
25
25
|
with:
|
|
26
26
|
languages: python
|
|
27
27
|
|
|
28
28
|
- name: Autobuild
|
|
29
|
-
uses: github/codeql-action/autobuild@
|
|
29
|
+
uses: github/codeql-action/autobuild@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
30
30
|
|
|
31
31
|
- name: Perform CodeQL Analysis
|
|
32
|
-
uses: github/codeql-action/analyze@
|
|
32
|
+
uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Mutation
|
|
2
|
+
|
|
3
|
+
# Coverage says a line ran; mutation testing says a test would notice if it were
|
|
4
|
+
# wrong. For a redaction library that is the property that matters: a surviving
|
|
5
|
+
# mutant in a key pattern or entropy threshold is a secret that leaks with the
|
|
6
|
+
# suite still green.
|
|
7
|
+
#
|
|
8
|
+
# Informational, not a gate. The report is the product: survivors.md lists every
|
|
9
|
+
# mutant the suite did not kill, with its diff, so it can be triaged without
|
|
10
|
+
# rerunning anything. A threshold gets added once the survivors have been read,
|
|
11
|
+
# not before.
|
|
12
|
+
#
|
|
13
|
+
# The score depends only on src/ and tests/, so it reruns when they change on
|
|
14
|
+
# main. The monthly run catches what a pinned file cannot: the runner's Python
|
|
15
|
+
# and the standard library moving underneath unchanged code.
|
|
16
|
+
|
|
17
|
+
on:
|
|
18
|
+
push:
|
|
19
|
+
branches: [main]
|
|
20
|
+
paths:
|
|
21
|
+
- "src/**"
|
|
22
|
+
- "tests/**"
|
|
23
|
+
- ".github/workflows/mutation.yml"
|
|
24
|
+
- ".github/scripts/mutation_report.py"
|
|
25
|
+
# A change to the tooling itself is proven on the pull request, before it
|
|
26
|
+
# can break the scheduled run on main.
|
|
27
|
+
pull_request:
|
|
28
|
+
paths:
|
|
29
|
+
- ".github/workflows/mutation.yml"
|
|
30
|
+
- ".github/scripts/mutation_report.py"
|
|
31
|
+
schedule:
|
|
32
|
+
- cron: "0 7 1 * *"
|
|
33
|
+
workflow_dispatch:
|
|
34
|
+
|
|
35
|
+
concurrency:
|
|
36
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
37
|
+
cancel-in-progress: true
|
|
38
|
+
|
|
39
|
+
permissions:
|
|
40
|
+
contents: read
|
|
41
|
+
|
|
42
|
+
jobs:
|
|
43
|
+
mutmut:
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
timeout-minutes: 60
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
48
|
+
|
|
49
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
50
|
+
with:
|
|
51
|
+
python-version: "3.13"
|
|
52
|
+
cache: pip
|
|
53
|
+
|
|
54
|
+
# mutmut is pinned here rather than in [dev]: .github/scripts/mutation_report.py
|
|
55
|
+
# reads its internals, and nothing else needs it.
|
|
56
|
+
- name: Install dependencies
|
|
57
|
+
run: pip install -e ".[dev]" mutmut==3.8.1
|
|
58
|
+
|
|
59
|
+
- name: Run mutmut
|
|
60
|
+
run: mutmut run --max-children "$(nproc)"
|
|
61
|
+
|
|
62
|
+
- name: Build report
|
|
63
|
+
env:
|
|
64
|
+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
65
|
+
run: |
|
|
66
|
+
python .github/scripts/mutation_report.py
|
|
67
|
+
head -n 20 mutation-report/survivors.md >> "$GITHUB_STEP_SUMMARY"
|
|
68
|
+
|
|
69
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
70
|
+
with:
|
|
71
|
+
name: mutation-report
|
|
72
|
+
path: mutation-report/
|
|
73
|
+
retention-days: 90
|
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
ref: ${{ github.event.release.tag_name }}
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
|
-
- uses: actions/setup-python@
|
|
24
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
25
25
|
with:
|
|
26
26
|
python-version: "3.13"
|
|
27
27
|
|
|
@@ -31,4 +31,4 @@ jobs:
|
|
|
31
31
|
python -m build
|
|
32
32
|
|
|
33
33
|
- name: Publish to PyPI
|
|
34
|
-
uses: pypa/gh-action-pypi-publish@
|
|
34
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -41,9 +41,9 @@ jobs:
|
|
|
41
41
|
# exempt from main-protection.
|
|
42
42
|
- name: Generate promoter token
|
|
43
43
|
id: promoter
|
|
44
|
-
uses: actions/create-github-app-token@v3
|
|
44
|
+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
|
|
45
45
|
with:
|
|
46
|
-
|
|
46
|
+
client-id: ${{ secrets.PROMOTER_CLIENT_ID }}
|
|
47
47
|
private-key: ${{ secrets.PROMOTER_PRIVATE_KEY }}
|
|
48
48
|
|
|
49
49
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
@@ -105,9 +105,9 @@ jobs:
|
|
|
105
105
|
# published. This is the one credential this workflow needs.
|
|
106
106
|
- name: Generate token
|
|
107
107
|
id: generate_token
|
|
108
|
-
uses: actions/create-github-app-token@v3
|
|
108
|
+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
|
|
109
109
|
with:
|
|
110
|
-
|
|
110
|
+
client-id: ${{ secrets.BOT_CLIENT_ID }}
|
|
111
111
|
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
|
112
112
|
|
|
113
113
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
@@ -120,7 +120,7 @@ jobs:
|
|
|
120
120
|
# file to write and no commit to make — which means no push to a protected
|
|
121
121
|
# branch and no bypass actor anywhere. Rulesets cover branches, not tags.
|
|
122
122
|
- name: Python Semantic Release
|
|
123
|
-
uses: python-semantic-release/python-semantic-release@
|
|
123
|
+
uses: python-semantic-release/python-semantic-release@b700dbeb1f431a0fcc30a79f3f0869407fe07278 # v10.7.0
|
|
124
124
|
with:
|
|
125
125
|
github_token: ${{ steps.generate_token.outputs.token }}
|
|
126
126
|
force: ${{ github.event.inputs.force || '' }}
|
|
@@ -5,7 +5,7 @@ on:
|
|
|
5
5
|
schedule:
|
|
6
6
|
- cron: "0 6 * * 1"
|
|
7
7
|
push:
|
|
8
|
-
branches: [
|
|
8
|
+
branches: [develop]
|
|
9
9
|
|
|
10
10
|
permissions: read-all
|
|
11
11
|
|
|
@@ -23,13 +23,13 @@ jobs:
|
|
|
23
23
|
persist-credentials: false
|
|
24
24
|
|
|
25
25
|
- name: Run analysis
|
|
26
|
-
uses: ossf/scorecard-action@
|
|
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
31
|
|
|
32
32
|
- name: Upload to code-scanning
|
|
33
|
-
uses: github/codeql-action/upload-sarif@
|
|
33
|
+
uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
|
|
34
34
|
with:
|
|
35
35
|
sarif_file: results.sarif
|
|
@@ -32,7 +32,7 @@ jobs:
|
|
|
32
32
|
# base revision of src/ out in place.
|
|
33
33
|
fetch-depth: 0
|
|
34
34
|
|
|
35
|
-
- uses: actions/setup-python@
|
|
35
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
36
36
|
with:
|
|
37
37
|
python-version: "3.13"
|
|
38
38
|
cache: pip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: secretscreen
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Detect and redact secrets in key-value pairs, dicts, and environment variables. Library and CLI.
|
|
5
5
|
Project-URL: Homepage, https://github.com/featurecreep-cron/secretscreen
|
|
6
6
|
Project-URL: Repository, https://github.com/featurecreep-cron/secretscreen
|
|
@@ -24,10 +24,10 @@ Classifier: Topic :: Utilities
|
|
|
24
24
|
Classifier: Typing :: Typed
|
|
25
25
|
Requires-Python: >=3.11
|
|
26
26
|
Provides-Extra: dev
|
|
27
|
-
Requires-Dist: mypy==2.
|
|
27
|
+
Requires-Dist: mypy==2.4.1; extra == 'dev'
|
|
28
28
|
Requires-Dist: pytest-cov==7.1.0; extra == 'dev'
|
|
29
|
-
Requires-Dist: pytest==9.
|
|
30
|
-
Requires-Dist: ruff==0.
|
|
29
|
+
Requires-Dist: pytest==9.2.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: ruff==0.17.6; extra == 'dev'
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
|
|
33
33
|
# secretscreen
|
|
@@ -34,7 +34,7 @@ secretscreen = "secretscreen._cli:main"
|
|
|
34
34
|
# linters previously carried upper bounds still applies and is now covered by
|
|
35
35
|
# the pin: an unpinned ruff minor bump (0.15 -> 0.16) silently changed
|
|
36
36
|
# formatting rules and broke an unrelated PR.
|
|
37
|
-
dev = ["pytest==9.
|
|
37
|
+
dev = ["pytest==9.2.0", "pytest-cov==7.1.0", "ruff==0.17.6", "mypy==2.4.1"]
|
|
38
38
|
|
|
39
39
|
[project.urls]
|
|
40
40
|
Homepage = "https://github.com/featurecreep-cron/secretscreen"
|
|
@@ -100,3 +100,11 @@ allowed_tags = [
|
|
|
100
100
|
[tool.semantic_release.branches.main]
|
|
101
101
|
match = "main"
|
|
102
102
|
prerelease = false
|
|
103
|
+
|
|
104
|
+
[tool.mutmut]
|
|
105
|
+
# The architecture tests read the package source to check its shape. Under
|
|
106
|
+
# mutmut that source is the instrumented copy, which imports mutmut, so they
|
|
107
|
+
# fail on every mutant -- and being static, they could never kill one anyway.
|
|
108
|
+
source_paths = ["src/secretscreen"]
|
|
109
|
+
pytest_add_cli_args_test_selection = ["tests/"]
|
|
110
|
+
pytest_add_cli_args = ["--ignore=tests/test_architecture.py"]
|
|
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
|