Skip to content

Commit

Permalink
Adding Nil check on TagName
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom committed Nov 14, 2023
1 parent af22b87 commit cb60ccf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/client/ghcr/ghcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func (c *Client) Tags(ctx context.Context, host, owner, repo string) ([]api.Imag
}

for _, rel := range releases {
if rel.TagName == nil {
continue
}
tags = append(tags, api.ImageTag{
Tag: *rel.TagName,
SHA: "",
Expand Down

0 comments on commit cb60ccf

Please sign in to comment.