Skip to content

Commit

Permalink
Merge pull request dependabot#5444 from jeffwidman/fix-security-alert…
Browse files Browse the repository at this point in the history
…-unescaped-regex

Fix incomplete regular expression for hostnames
  • Loading branch information
jeffwidman committed Jul 29, 2022
2 parents 3852316 + aa20be6 commit 24f9ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/lib/dependabot/docker/file_parser.rb
Expand Up @@ -32,7 +32,7 @@ class FileParser < Dependabot::FileParsers::Base
%r{^#{FROM}\s+(#{PLATFORM}\s+)?(#{REGISTRY}/)?
#{IMAGE}#{TAG}?#{DIGEST}?#{NAME}?}x.freeze

AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+).amazonaws\.com/.freeze
AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+)\.amazonaws\.com/.freeze

def parse
dependency_set = DependencySet.new
Expand Down
2 changes: 1 addition & 1 deletion docker/lib/dependabot/docker/utils/credentials_finder.rb
Expand Up @@ -9,7 +9,7 @@ module Dependabot
module Docker
module Utils
class CredentialsFinder
AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+).amazonaws\.com/.freeze
AWS_ECR_URL = /dkr\.ecr\.(?<region>[^.]+)\.amazonaws\.com/.freeze

def initialize(credentials)
@credentials = credentials
Expand Down

0 comments on commit 24f9ee3

Please sign in to comment.