Skip to content

Commit be8fe2e

Browse files
nodeselectorCopilot
andcommitted
fix: narrow same-owner actions to patch versions too
The isSameOwner guard in applyPin was skipping patch-version narrowing for all same-org actions (e.g. github/codeql-action in a github/* repo). This meant codeql-action@v4 stayed as v4 instead of narrowing to v4.35.2. The guard was redundant — IsMutableVersionTag already filters out non-version refs like 'main', so default-branch pins were never reaching this code path anyway. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4fda526 commit be8fe2e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

internal/doctor/apply.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ func (rem *Remediator) applyPin(wr WorkflowReport) error {
8282
if !IsMutableVersionTag(dep.Ref) {
8383
continue
8484
}
85-
// Skip internal actions pinned to default branch.
86-
if rem.isSameOwner(strings.SplitN(dep.NWO, "/", 3)[0]) {
87-
continue
88-
}
8985
parts := strings.SplitN(dep.NWO, "/", 3)
9086
if len(parts) < 2 {
9187
continue

0 commit comments

Comments
 (0)