security

Link repeated findings after a repository move

Carry finding context across a repository rename or migration. Preserve verified equivalence without merging records from unrelated code or deployments.

TrustIvan · · 10 min read

The claims service moves to a new organization and its scanner integration starts assigning new issue numbers. The team sees 18 new results during the first week even though it copied the same source revision at cutover. Thirteen may already have an owner in the old project. Three could be findings from additional checks. Two have ambiguous matches. Treat the migration as a change in evidence scope and identity before treating the new queue as an increase in risk.

Keep the original records and establish links when evidence supports continuity. A repository display name is useful context. The stronger evidence includes provider identity, verified commit or branch mapping, finding type and scope, and any artifact or workload associated with the observation. A move can preserve the technical issue while changing the organization authorized to make the next decision.

Establish which parts of the identity changed

Document the old and new source destinations, their provider-scoped repository identifiers, tenant or organization, branches, the cutover time, and who approved it. Distinguish an in-place rename, a transfer of the same repository, a mirror, a copy into a new provider, or a split of one project into several. The evidence you can use depends on the type of move. A same-provider redirect can make an old link work even though the scanner, permissions and automation now see a different integration.

For a simple rename, verify continuity through an approved provider record and the source history. Some integrations still need new references. GitHub, for example, documents redirects for many repository operations after a rename and an exception for calls to actions hosted by the renamed repository. Test alert ingestion and check names explicitly before assuming the same scan continues. GitHub repository rename guidance.

For a cross-provider copy, record the mapping between the old and new repository identifiers and approved branch names. Equivalent trees can sometimes have different commits if history was rewritten, squashed or reconstructed. Record a verified tree or path comparison for the covered files. Treat unknown or unrelated project names as separate until an authorized repository owner provides evidence. Preserve any differences between active default branches and release branches still in use.

Freeze a useful before-and-after baseline

Export the old repository's open issues and the relevant recent closed or excepted records. Keep their original identifiers, first and last observed times, status, owner, scan version, rule set, run category and the source revision or artifact they apply to. Scope the export to the authorized team. Retain origin data in its existing permission boundary or store only the permitted summary where teams have different access.

At cutover, retain a before scan on a known revision and an after scan on a corresponding revision with comparable settings. Save exclusions, workspace roots, dependency scanner inputs and any new checks. If the destination lacks a previously configured analyzer, absence of findings can be a coverage gap. Find a positive control for that old analyzer and check whether an equivalent result can still be produced. Use observation and inspection times to separate work done before or after the transfer.

Where your rollout can support it, keep the old integration's data readable through an approved read-only path while the destination is validated. Decide which tracked workflow creates new tickets during overlapping scans. Two live connectors can cause duplicate work for one period. Conversely, turning both off during cutover removes useful evidence. Define who observes successful ingestion and what timestamp marks the end of the overlap.

Choose match criteria that fit each finding type

For source findings, combine the mapped repository scope, rule identity or mapped rule revision, relative path and verified code evidence. A scanner fingerprint can be a useful signal when both runs use comparable inputs and agree on the relevant finding. Tools can differ in line hashes and path normalization. A moved sensitive location can have a changed fingerprint, while cloned snippets can look similar enough to collide. Do not rewrite scanner output to force a match. Attach evidence of equivalence alongside its original identifiers.

For systems importing SARIF, review which fingerprints and analysis categories the actual integration uses. GitHub describes the use of SARIF partial fingerprints to associate logically equivalent results and gives guidance for URI representation. Correlation within that consumer does not prove equivalence across tenants or differently scoped analyses. Use repository and artifact evidence independently where appropriate. GitHub SARIF support.

For dependency findings, require ecosystem and component identity, version, affected path or workspace, and scope of source or artifact observation. The same vulnerable transitive package can exist in two independently deployed workers. Link their common underlying component or advisory when it is useful, but preserve which consumer actually packaged and deployed it. For artifact findings, check digest, platform and workload evidence across the move. A rebuilt image can legitimately get a new digest even if the same code issue persists.

Reconcile an example migration one observation at a time

Use test organizations and synthetic records. Copy the approved claims source into the second organization while the old source is kept read-only. Set the new integration to retain the original scanner checks for the overlapping scope and add a distinct newly enabled check. Keep the inputs and stable record references somewhere the authorized review owner can access.

Old recordDestination observationDecision in the fixture
C-24 on the active claims branchN-11 has mapped commit, same rule and same code locationLink as verified continuity and keep original discovery date
C-31 in an older runtime imageNew source scan has no corresponding componentKeep old runtime observation open until the affected workload is verified
C-42 risk exception for private test runnerN-20 matches technical issue in a wider shared pipelineLink findings and seek a new exposure decision
C-57, deprecated validatorScanner result on a same-named repo in a separate tenantKeep records separate pending independent scope evidence
No prior equivalent ruleN-29 detected by a new destination-only checkNew detection with scan scope change documented
C-66, code extracted into two new projectsSimilar lines in both destination repositoriesVerify each consumer and preserve a one-to-many relationship if justified

Review C-24 with a second owner. Let that person trace the source and scan settings without seeing your chosen classification. Then present C-42 and ask them to distinguish technical continuity from approval scope. A new deploy route for shared build agents can make a previous test-only exception inapplicable. Retain the old approval and its reason as evidence of what was decided then. Create an independent review for the new exposure and owner. The policy does not carry over because the old result ID is familiar.

Divide the week's 18 observations into the 13 verified continuity candidates in this example, three newly detected items and two that are still unresolved. Label the results with the observation window, the checks involved and the names of the scope owners. Avoid announcing that the count increased by 18, or assuming all 18 can be collapsed into the previous backlog. If some of the 13 turn out to reference separately deployed targets, keep the relationship and revise the scope classification.

Preserve both records and their access rules

Use relationships that allow the reader to distinguish a repeated finding, a replacement observation, a prior closure that has reopened, or another affected consumer. Save the original and new record identifiers, decision owner, reason, time and source links. Provide a correction path for mistaken associations. If one source record maps to two independent release branches, keep both decisions available, as they may close at different times.

Check successor ownership and authority. A ticket can carry an original owner and new assignment history. An accepted-risk decision has an authorized approver, scope and expiry. Test whether the approver still has authority in the new organization and whether its workflow changes exposure. A dismissal reason may contain sensitive content or internal contact details. Before copying it, verify that the destination's review membership is appropriate. A restricted origin and a destination summary can preserve accountability without disclosing the full evidence.

Reconfirm the resolution of any old records that appear absent. Explicit closure measures can include an equivalent rescan, an inspection of the replaced variant or confirmed retirement of the old environment. A missing run or a disabled scanner gives a different status. Keep these distinct when reporting how many findings the move actually resolved.

Make the reporting window comparable

Keep a reporting annotation for the migration date. In a sample month with 50 open observations, linking 13 scanned equivalents after cutover should leave their original ages visible, while three new check results and two unresolved mappings remain distinguishable. The old deployment with a missing analyzer still needs a coverage state. Export both observed source counts and the reconciled view so a report reader can explain why those values differ. A metric change can reflect the expansion of checks, removal of a namespace, or a real change in what is exposed.

Review one weekly dashboard with the receiving team. Ask them to trace one continuing item to its previous review and one newly detected item to the added check. Decide how the unresolved pair affects any headline number and assign review deadlines. If the team later corrects an association, retain the reasoning and publish the corrected reconciliation without silently changing the previous period's source evidence.

Dry-run the migration against both false matches and missed matches

Select several representative samples, including a confirmed continuity case, a similar issue from a different tenant, a renamed path with changed fingerprints, an absent scanner category and a case with approved historical remediation. Run your import or review method in staging. Compare expected associations with observed ones and examine which evidence drove each. A tool that can return an unresolved classification may be preferable to forcing a match for every result.

Test separations after the links are made. Move one scope from the first reviewer to another and confirm both source and destination history remain readable by appropriate teams. Submit another scan of the same mapped revision and check that a third copy is not opened without cause. Then supply a new result on the next release revision to make sure the workflow still notices a changed condition. If an old branch keeps running after cutover, verify that its history remains observable and assigned through the agreed retirement path.

When comparing services, give each evaluator the same pair of repository and scan snapshots. Require exportable evidence showing the source of each match, both record identities, original status transitions and current owner. Ask where consumers need manual review to protect separate tenants or release branches. Review the product's Semgrep comparison for adjacent source-scanning criteria. The finding lifecycle guide covers related decisions that need to survive repeated scans.

A successful cutover lets the receiving owner explain which findings continued, which changed scope and which remain uncertain. The original evidence is still readable, and each new decision can be reproduced using the mapped sources and release records.