Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
cf2fef5c4c8a156f6303311b040428620a2bbc95:internal/hostruntime/operation_receipt_test.go:generic-api-key:13
8075e44d05b02bcdd117e60f057d624b37a0dcab:internal/hostruntime/operation_receipt_test.go:generic-api-key:13
cafa5cbaf5123c8e46028b535997f32e45db972e:tests/config/schema-validation.test.mjs:github-pat:89
cafa5cbaf5123c8e46028b535997f32e45db972e:tests/sanitization/test_sanitize_public.py:generic-api-key:361
cafa5cbaf5123c8e46028b535997f32e45db972e:tests/sanitization/test_sanitize_public.py:generic-api-key:580
cafa5cbaf5123c8e46028b535997f32e45db972e:tests/sanitization/test_sanitize_public.py:generic-api-key:788
32 changes: 27 additions & 5 deletions tests/repository/test_ci_portability_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,31 @@

REPO_ROOT = Path(__file__).resolve().parents[2]

GITLEAKS_FINGERPRINT = (
"cf2fef5c4c8a156f6303311b040428620a2bbc95:"
"internal/hostruntime/operation_receipt_test.go:generic-api-key:13"
GITLEAKS_FINGERPRINTS = (
(
"cf2fef5c4c8a156f6303311b040428620a2bbc95:"
"internal/hostruntime/operation_receipt_test.go:generic-api-key:13"
),
(
"8075e44d05b02bcdd117e60f057d624b37a0dcab:"
"internal/hostruntime/operation_receipt_test.go:generic-api-key:13"
),
(
"cafa5cbaf5123c8e46028b535997f32e45db972e:"
"tests/config/schema-validation.test.mjs:github-pat:89"
),
(
"cafa5cbaf5123c8e46028b535997f32e45db972e:"
"tests/sanitization/test_sanitize_public.py:generic-api-key:361"
),
(
"cafa5cbaf5123c8e46028b535997f32e45db972e:"
"tests/sanitization/test_sanitize_public.py:generic-api-key:580"
),
(
"cafa5cbaf5123c8e46028b535997f32e45db972e:"
"tests/sanitization/test_sanitize_public.py:generic-api-key:788"
),
)


Expand Down Expand Up @@ -65,12 +87,12 @@ def test_legacy_layout_matches_docker_full_line_sort(self) -> None:
),
)

def test_gitleaks_exception_is_one_exact_historical_fingerprint(self) -> None:
def test_gitleaks_exceptions_are_exact_historical_fingerprints(self) -> None:
ignore = REPO_ROOT / ".gitleaksignore"
self.assertTrue(ignore.is_file())
self.assertEqual(
ignore.read_text(encoding="utf-8").splitlines(),
[GITLEAKS_FINGERPRINT],
list(GITLEAKS_FINGERPRINTS),
)
self.assertEqual(
(REPO_ROOT / ".gitleaks.toml").read_text(encoding="utf-8"),
Expand Down
Loading