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_assets ⇒ Object (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

#dependency ⇒ Object (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

#error ⇒ Object (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_attestation ⇒ Object (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_url ⇒ Object (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

#repository ⇒ Object (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_assets ⇒ Object (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_tag ⇒ Object (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_reason ⇒ Object (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

#status ⇒ Object (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

#tag ⇒ Object (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