Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(GitHub): RHINENG-15637 fix checksum for installed packages #2366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

romanblanco
Copy link
Member

Secure Coding Practices Checklist GitHub Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.24%. Comparing base (e90e917) to head (62f2d93).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2366   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files         200      200           
  Lines        4454     4454           
=======================================
  Hits         4376     4376           
  Misses         78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@romanblanco romanblanco force-pushed the RHINENG-15637-fix-install-package-sha branch from a5c6ad8 to 4cd559d Compare January 30, 2025 08:29
@romanblanco romanblanco changed the title ci: RHINENG-15637 fix checksum for installed packages ci(GitHub): RHINENG-15637 fix checksum for installed packages Jan 30, 2025
@romanblanco romanblanco force-pushed the RHINENG-15637-fix-install-package-sha branch 2 times, most recently from 797f2ed to 99c95e5 Compare January 30, 2025 08:58
@romanblanco romanblanco marked this pull request as ready for review January 30, 2025 09:00
@romanblanco romanblanco requested a review from a team as a code owner January 30, 2025 09:00
@romanblanco romanblanco requested a review from vkrizan January 30, 2025 09:21
@@ -17,7 +17,7 @@ jobs:
base=$(grep -Po '(?<=FROM )([^\s]*)(?= AS build)' Dockerfile)
skopeo inspect "docker://$base" | jq .Digest --raw-output > .baseimagedigest
docker run --rm -u 0 quay.io/cloudservices/compliance-backend:latest sh -c \
'microdnf update -y $(cat /opt/installedpackages) > /dev/null; rpm -q $(cat /opt/installedpackages) | sort | sha256sum | cut -d " " -f 1' \
'microdnf update -y $(rpm -qa | grep -v 'gpg-pubkey') > /dev/null; rpm -q $(rpm -qa | grep -v 'gpg-pubkey') | sort | sha256sum | cut -d " " -f 1' \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to update the /opt/installedpackages file or use a parameter that would hold list of packages that are being installed outside of the base for this automation to track only those specific ones, not all?

@romanblanco romanblanco force-pushed the RHINENG-15637-fix-install-package-sha branch from 99c95e5 to ce81cae Compare January 30, 2025 13:22
@romanblanco romanblanco requested a review from vkrizan January 30, 2025 13:23
@romanblanco romanblanco force-pushed the RHINENG-15637-fix-install-package-sha branch from ce81cae to e58b5bc Compare January 30, 2025 13:40
            Currently fails with:
            cat: /opt/installedpackages: No such file or directory
@romanblanco romanblanco force-pushed the RHINENG-15637-fix-install-package-sha branch from e58b5bc to 62f2d93 Compare January 31, 2025 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants