You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb0b25c
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(sections): trim the factory's secret facet to the one shape a section declares; the guard runs before a section's live conflicts
SecretPath admits a dotted path under mapping only, where both carriers declare the unverifiable facet; the top-level arm rode update and no section used it. The snapshot reference id drops the multi-secret suffix and the store is the noun itself. missingDrift and unreadableSecretNote (one caller each) are inlined; Remedies.value is a string suffix again; liveByIdentity's describe defaults to the key and the call sites that repeated it drop the argument; custom_properties and secret_scanning_custom_patterns guard through one closure each; the secrets engine's listSecretValues goes through secretValuesOf.
The live-duplicate guard now runs before a section's own live conflicts, so two deploy keys under one title are reported before a colliding holder's material. The upgrade doc's duplicate-webhook example carries the hook ids the guard prints, and the two #204 snapshot scenarios pin the SECRET_WEBHOOK_<id> placeholder.
Copy file name to clipboardExpand all lines: docs/upgrading/v2-to-v3.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ Snapshot targets ride the same seal now: a private target's notes, file path, an
194
194
v2 picked one silently (the factory sections refused only a claimed pair; milestones, rulesets, webhooks, custom properties, secret scanning patterns, environment secrets and variables kept the last one listed). v3 refuses every list section the same way, whether or not the settings file declares the pair:
195
195
196
196
```text
197
-
webhooks: GitHub holds webhooks that resolve to one identity: "https://ci.example.com/hook" and "https://ci.example.com/hook". This section manages one webhook per identity, so it cannot tell them apart; delete all but one of each on GitHub, then run again
197
+
webhooks: GitHub holds webhooks that resolve to one identity: "https://ci.example.com/hook (hook id 11)" and "https://ci.example.com/hook (hook id 12)". This section manages one webhook per identity, so it cannot tell them apart; delete all but one of each on GitHub, then run again
198
198
```
199
199
200
200
Snapshot says the same. Delete the duplicates on GitHub, then re-run.
Copy file name to clipboardExpand all lines: src/sections/contract/module.ts
+3-17Lines changed: 3 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -693,31 +693,17 @@ export function undeclaredNote(opts: {
693
693
return`${opts.subject}${state} in the settings file; kept under "_undeclared: keep" - add ${add} to the settings file to manage ${manage}, or set "_undeclared: delete" to have apply ${opts.action}`;
694
694
}
695
695
696
-
/**
697
-
* The drift line for a declared resource the live side lacks. `where` names the home when "the repo"
698
-
* understates it (a nested list says "the environment"); `action` when apply does more than create it.
699
-
*/
700
-
exportfunctionmissingDrift(
701
-
label: string,
702
-
opts: {where?: string;action?: string}={},
703
-
): string{
704
-
constwhere=opts.where??"the repo";
705
-
constaction=opts.action??"create it";
706
-
return`${label}: missing - declared in the settings file but not on ${where}; apply will ${action}`;
707
-
}
708
-
709
696
/**
710
697
* The drift line for a field whose live value differs, operands always in this order: declared first,
711
-
* live second. Both arrive rendered (JSON.stringify, or a section's own spelling such as "unset");
712
-
* `remedy: null` drops the clause when a generic line beside it names the remedy.
698
+
* live second. Both arrive rendered (JSON.stringify, or a section's own spelling such as "unset").
713
699
*/
714
700
exportfunctionvalueDrift(
715
701
label: string,
716
702
declared: string,
717
703
live: string,
718
-
remedy: string|null="apply will set the declared value",
0 commit comments