MCPcopy Create free account
hub / github.com/github/gh-aw / extractActionVersion

Function extractActionVersion

pkg/workflow/action_pins.go:54–56  ·  view source on GitHub ↗

extractActionVersion extracts the version from a uses string.

(uses string)

Source from the content-addressed store, hash-verified

52
53// extractActionVersion extracts the version from a uses string.
54func extractActionVersion(uses string) string {
55 return actionpins.ExtractVersion(uses)
56}
57
58// ghesArtifactPin holds the version tag and commit SHA for a GHES-compatible artifact action pin.
59type ghesArtifactPin struct {

Calls 1

ExtractVersionFunction · 0.92

Tested by 2

TestExtractActionVersionFunction · 0.68