Skip to content

Commit

Permalink
check download digest of rhel oval files (anchore#462)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman authored Jan 23, 2024
1 parent be34f42 commit 9aa2d29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/bootstrap/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
cache-key-prefix:
description: "Prefix all cache keys with this value"
required: true
default: "8381c12a05"
default: "9c833ef7"
bootstrap-apt-packages:
description: "Space delimited list of tools to install via apt"
default: ""
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "tests/quality/vulnerability-match-labels"]
path = tests/quality/vulnerability-match-labels
url = [email protected]:anchore/vulnerability-match-labels.git
branch = main
branch = adjust-centos-ruby-labels
2 changes: 1 addition & 1 deletion src/vunnel/providers/rhel/oval_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _download_oval_file(self, base_url: str, oval_url_path: str, path_to_sha: di

if previous_sha256 and latest_sha256:
self.logger.debug(f"{oval_url_path}: previous sha256: {previous_sha256}, latest sha256: {latest_sha256}")
download = latest_sha256.lower() != latest_sha256.lower()
download = previous_sha256.lower() != latest_sha256.lower()

if download:
try:
Expand Down

0 comments on commit 9aa2d29

Please sign in to comment.