Class: Gem::Guardian::ProvenanceResult

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

Overview

Result object for a provenance verification attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actual_sha256Object (readonly)

Returns the value of attribute actual_sha256

Returns:

  • (Object)

    the current value of actual_sha256



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

def actual_sha256
  @actual_sha256
end

#attestation_urlObject (readonly)

Returns the value of attribute attestation_url

Returns:

  • (Object)

    the current value of attestation_url



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

def attestation_url
  @attestation_url
end

#dependencyObject (readonly)

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



6
7
8
# File 'lib/gem/guardian/provenance_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/provenance_verifier.rb', line 6

def error
  @error
end

#expected_sha256Object (readonly)

Returns the value of attribute expected_sha256

Returns:

  • (Object)

    the current value of expected_sha256



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

def expected_sha256
  @expected_sha256
end

#github_releaseObject (readonly)

Returns the value of attribute github_release

Returns:

  • (Object)

    the current value of github_release



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

def github_release
  @github_release
end

#issuerObject (readonly)

Returns the value of attribute issuer

Returns:

  • (Object)

    the current value of issuer



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

def issuer
  @issuer
end

#refObject (readonly)

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



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

def ref
  @ref
end

#repositoryObject (readonly)

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



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

def repository
  @repository
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

#subjectObject (readonly)

Returns the value of attribute subject

Returns:

  • (Object)

    the current value of subject



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

def subject
  @subject
end

#trusted_publishingObject (readonly)

Returns the value of attribute trusted_publishing

Returns:

  • (Object)

    the current value of trusted_publishing



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

def trusted_publishing
  @trusted_publishing
end

#workflowObject (readonly)

Returns the value of attribute workflow

Returns:

  • (Object)

    the current value of workflow



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

def workflow
  @workflow
end

Instance Method Details

#verified?Boolean

Returns true when provenance verification succeeded.

Returns:

  • (Boolean)


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

def verified?
  status == :verified
end