lib/release_tools/security/mirrors.rb
def security_mirror(project)
        @client
          .get("/projects/#{project.id}/remote_mirrors")
          .detect(-> { raise NotFoundError }) { |m| m.url.include?('/gitlab-org/security/') }
      rescue NotFoundError, ::Gitlab::Error::NotFound, ::Gitlab::Error::Unauthorized => ex
        logger.warn(
          'Security mirror not found',
          project: project.path_with_namespace,
          error: ex.message
        )

        nil
      end
# Find a Canonical project's Security mirror
#
# project - Canonical Project object
Find a Canonical project's Security mirror
project - Canonical Project object
Find a Canonical project ' s Security mirror project - Canonical Project object
def security_mirror(project)
        @client
          .get("/projects/#{project.id}/remote_mirrors")
          .detect(-> { raise NotFoundError }) { |m| m.url.include?('/gitlab-org/security/') }
      rescue NotFoundError, ::Gitlab::Error::NotFound, ::Gitlab::Error::Unauthorized => ex
        logger.warn(
          'Security mirror not found',
          project: project.path_with_namespace,
          error: ex.message
        )
        nil
      end
def security_mirror ( project ) @client . get ( "/projects/#{project.id}/remote_mirrors" ) . detect ( -> { raise NotFoundError } ) { | m | m . url . include? ( '/gitlab-org/security/' ) } rescue NotFoundError , :: Gitlab :: Error :: NotFound , :: Gitlab :: Error :: Unauthorized => ex logger . warn ( 'Security mirror not found' , project : project . path_with_namespace , error : ex . message ) nil end
Find a Canonical project's Security mirror
project - Canonical Project object
Find a Canonical project ' s Security mirror project - Canonical Project object
project