Class: Gem::Guardian::GitHubReleaseResult
- Inherits:
-
Data
- Object
- Data
- Gem::Guardian::GitHubReleaseResult
- Defined in:
- lib/gem/guardian/github_release_verifier.rb
Overview
Result object for GitHub release provenance checks.
Instance Attribute Summary collapse
-
#checksum_assets ⇒ Object
readonly
Returns the value of attribute checksum_assets.
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#release_attestation ⇒ Object
readonly
Returns the value of attribute release_attestation.
-
#release_url ⇒ Object
readonly
Returns the value of attribute release_url.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#signature_assets ⇒ Object
readonly
Returns the value of attribute signature_assets.
-
#signed_tag ⇒ Object
readonly
Returns the value of attribute signed_tag.
-
#signed_tag_reason ⇒ Object
readonly
Returns the value of attribute signed_tag_reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#verified? ⇒ Boolean
Returns true when the GitHub release checks succeeded.
Instance Attribute Details
#checksum_assets ⇒ Object (readonly)
Returns the value of attribute 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
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
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
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
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
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
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
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
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
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
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.
11 12 13 |
# File 'lib/gem/guardian/github_release_verifier.rb', line 11 def verified? status == :verified end |