Skip to content

Commit

Permalink
update repository_url to identifier
Browse files Browse the repository at this point in the history
Signed-off-by: mehab <[email protected]>
  • Loading branch information
sahibamittal authored and mehab committed Sep 12, 2023
1 parent 95312d5 commit d553fee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ message IntegrityResult {
HashMatchStatus sha1_hash_match = 3;
//sha256 hash match status of component
HashMatchStatus sha256_hash_match = 4;
//URL of the repository with which the hashes were compared
string repository_url = 5;
//Identifier of the repository with which the hashes were compared
string repository_identifier = 5;
// When was the integrity check updated
google.protobuf.Timestamp updated = 6;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void process(FixedKeyRecord<PackageURL, Component> inputRecord) {
.setComponent(component)
.setSha1HashMatch(HashMatchStatus.HASH_MATCH_STATUS_COMPONENT_MISSING_HASH)
.setSha256HashMatch(HashMatchStatus.HASH_MATCH_STATUS_COMPONENT_MISSING_HASH)
.setRepositoryUrl(repository.getIdentifier());
.setRepositoryIdentifier(repository.getIdentifier());
result = resultBuilder.build();

}
Expand Down Expand Up @@ -160,7 +160,7 @@ private IntegrityResult getIntegrityResult(Repository repository, IntegrityModel
.setComponent(analyzerComponent)
.setSha1HashMatch(integrityModel.getHashMatchStatusSha1())
.setSha256HashMatch(integrityModel.getHashMatchStatusSha256())
.setRepositoryUrl(repository.getUrl())
.setRepositoryIdentifier(repository.getIdentifier())
.setUpdated(Timestamp.newBuilder().setSeconds(Instant.now().getEpochSecond()));
return resultBuilder.build();
}
Expand Down

0 comments on commit d553fee

Please sign in to comment.