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
9 changes: 0 additions & 9 deletions pkg/actionpins/actionpins_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,15 +525,6 @@ func TestGetContainerPin_DefaultMCPImagesArePinned(t *testing.T) {
}
}

func TestGetActionPins_CacheCorrectnessOnRepeatedCalls(t *testing.T) {
t.Parallel()
first := getActionPins()
second := getActionPins()

require.NotEmpty(t, first, "Expected at least one action pin in embedded data")
assert.Equal(t, first, second, "Expected repeated calls to getActionPins() to return equal data (cache correctness)")
}

func TestGetCachedActionPins_InitializesCache(t *testing.T) {
t.Parallel()
cache := getCachedActionPins()
Expand Down
4 changes: 0 additions & 4 deletions pkg/actionpins/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ func getCachedActionPins() *actionPinsCache {
return cachedPins
}

func getActionPins() []ActionPin {
return getCachedActionPins().pins
}

// loadActionPinsData unmarshals embedded action pin data.
// Panics if the embedded JSON is invalid or any entry has an empty SHA, because
// those conditions indicate corrupted release data that would produce invalid workflow YAML.
Expand Down
Loading