Skip to content

Commit

Permalink
Merge pull request #463 from takaidohigasi/add-gcr-io-to-valid-docker…
Browse files Browse the repository at this point in the history
…-regstry-domain

add gcr.io and pkg.dev to valid docker regstry domain
  • Loading branch information
rhysd authored Oct 21, 2024
2 parents d2750d4 + d3e7407 commit b7ebeb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rule_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ 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, "pkg.dev/") ||
strings.HasPrefix(image, "ghcr.io/") ||
strings.HasPrefix(image, "docker.io/")
}
Expand Down

0 comments on commit b7ebeb4

Please sign in to comment.