Skip to content
Closed
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
8 changes: 8 additions & 0 deletions pkg/actionpins/actionpins_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ func TestEmbeddedContainerPins_DoNotIncludeVulnerableAWFCliProxy02744(t *testing
assert.False(t, ok, "ghcr.io/github/gh-aw-firewall/cli-proxy:0.27.44 should not be embedded as a pinned container image")
}

func TestEmbeddedContainerPins_DoNotIncludeVulnerableAWFSquid02744(t *testing.T) {
t.Parallel()

_, ok := GetContainerPin("ghcr.io/github/gh-aw-firewall/squid:0.27.44")

assert.False(t, ok, "ghcr.io/github/gh-aw-firewall/squid:0.27.44 should not be embedded as a pinned container image")
}

func TestFormatPinnedActionReference_PanicsWhenSHAIsEmpty(t *testing.T) {
t.Parallel()
assert.PanicsWithValue(t,
Expand Down