-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix sbom generation inconsistency (#61)
prior to this commit SBOMs would have inconsistency in their hashing on the configuration file. The representation of the config file in fact would differ at certain stages of the gok commands lifecycle, where at packer running time, an extra InternalCompatibilityFlag, Sudo, would be added in memory (while that not being the case at `gok sbom` time), resulting in a differing config and as such differing SBOM hashes, same goes for the differing pointer addresses that were skew the hashing results. This is now fixed by using the SudoOrDefault() accessor, as well as converting the config into a string before computing the hash, to avoid differing pointer problems.
- Loading branch information
Showing
5 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters