Skip to content

Commit

Permalink
Merge pull request #40 from stacklok/skip-local-list
Browse files Browse the repository at this point in the history
`ghactions list`: skip local references from list
  • Loading branch information
JAORMX committed Dec 12, 2023
2 parents 1cefc1e + c55c1bc commit 5a2bf7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/ghactions/ghactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ func setOfActions(node *yaml.Node) (mapset.Set[Action], error) {

if foundUses {
foundUses = false

// If the value is a local path, skip it
if IsLocal(v.Value) {
continue
}

a, err := parseValue(v.Value)
if err != nil {
return nil, fmt.Errorf("failed to parse action reference '%s': %w", v.Value, err)
Expand Down

0 comments on commit 5a2bf7a

Please sign in to comment.