Skip to content

Commit

Permalink
add gcr.io to valid docker regstry domain
Browse files Browse the repository at this point in the history
  • Loading branch information
takaidohigasi committed Oct 21, 2024
1 parent 141b363 commit f3d455e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rule_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ var BrandingIcons = map[string]struct{}{
// https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsimage
func isImageOnDockerRegistry(image string) bool {
return strings.HasPrefix(image, "docker://") ||
strings.HasPrefix(image, "gcr.io/") ||
strings.HasPrefix(image, "ghcr.io/") ||
strings.HasPrefix(image, "docker.io/")
}
Expand Down

0 comments on commit f3d455e

Please sign in to comment.