Class: Gem::Guardian::GitHubReleaseResult

Inherits:
Data
  • Object
show all
Defined in:
lib/gem/guardian/github_release_verifier.rb

Overview

Result object for GitHub release provenance checks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksum_assetsObject (readonly)

Returns the value of attribute checksum_assets

Returns:

  • (Object)

    the current value of checksum_assets



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def checksum_assets
  @checksum_assets
end

#dependencyObject (readonly)

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def dependency
  @dependency
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def error
  @error
end

#release_attestationObject (readonly)

Returns the value of attribute release_attestation

Returns:

  • (Object)

    the current value of release_attestation



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def release_attestation
  @release_attestation
end

#release_urlObject (readonly)

Returns the value of attribute release_url

Returns:

  • (Object)

    the current value of release_url



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def release_url
  @release_url
end

#repositoryObject (readonly)

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def repository
  @repository
end

#signature_assetsObject (readonly)

Returns the value of attribute signature_assets

Returns:

  • (Object)

    the current value of signature_assets



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def signature_assets
  @signature_assets
end

#signed_tagObject (readonly)

Returns the value of attribute signed_tag

Returns:

  • (Object)

    the current value of signed_tag



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def signed_tag
  @signed_tag
end

#signed_tag_reasonObject (readonly)

Returns the value of attribute signed_tag_reason

Returns:

  • (Object)

    the current value of signed_tag_reason



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def signed_tag_reason
  @signed_tag_reason
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def status
  @status
end

#tagObject (readonly)

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



6
7
8
# File 'lib/gem/guardian/github_release_verifier.rb', line 6

def tag
  @tag
end

Instance Method Details

#verified?Boolean

Returns true when the GitHub release checks succeeded.

Returns:

  • (Boolean)


11
12
13
# File 'lib/gem/guardian/github_release_verifier.rb', line 11

def verified?
  status == :verified
end