Repository navigation
feat: Patchbot fact schema version 2 and an exact security count (0.3.0) - #2
Merged
Merged
Conversation
Closes the module side of G-72.3-5b: class patchbot now delivers the version 2 patchbot fact instead of the v1 fact. - facts.d/patchbot.sh and facts.d/patchbot.ps1 are byte-identical copies of the development copy in the Puppet Stagehand Console repository (lab source commit d6af8a8f), proved with cmp. sha256 patchbot.sh daf7d4fb4ad702f2cbe55cc9d3c8dc58a6cb630dc69403a535389200633431f1 sha256 patchbot.ps1 fd934bbec566b876b93e9adc81c32c556e6e57688b6462ed7da291ecd593f333 - Fact: schema_version 2, a three-state reboot_status with a fixed reboot_status_reason, dnf status/check_error, repos, package_count and truncated, and a security count that is exact (one per pending update, matched by exact package name, never above available). - metadata.json version 0.3.0 (0.2.0 was never tagged); CHANGELOG and the README fact section describe the version 2 fact. The patch task is unchanged. Checked locally: dnf security smoke on a real AlmaLinux 8.9 userland and the EL7 yum smoke, both against this tree's facts.d; shellcheck; tasks/patch_test.sh; tools/supplychain/scan.sh (0 findings); gitleaks, tree and history. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01McuAWfE22TvftB9SGnvzTT
REFERENCE.md: puppet-strings 4.1.2 drops trailing spaces and the final blank line; content is unchanged. The lint gate failed on the drift. .bundler-audit.yml waives GHSA-r6vf-943r-2wvw (minitar 0.12.1, held below 1.0 by bolt, r10k and puppet_forge via puppet_litmus) and GHSA-4m5j-jjfc-97gx (mcp 0.25.0, from rubocop). Both are dev/test gems that the module does not ship. The release workflow runs the same audit, so without this a v* tag would publish no Release. Verified in a ruby:3.2 container: rake validate lint metadata_lint exits 0, rake spec 241 examples 0 failures, bundler-audit check clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01McuAWfE22TvftB9SGnvzTT
Collaborator
Author
|
Merging with the four |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Patchbot fact schema version 2, released as 0.3.0.
securitynow counts distinct pending updates whose exact package name has a security advisory. Before, it counted advisory rows, so one package with several advisories was counted several times andsecuritycould be larger thanavailable.security_nameshelper built onnevra_name, so both platforms use the same definition.schema_version: 2and areboot_statusofrequired,not_requiredorunknown, with areboot_status_reasoncode when it is unknown (for exampleplugin_missing).facts.d/patchbot.shandfacts.d/patchbot.ps1are byte-identical to the console repo's lab copies:patchbot.shsha256daf7d4fb4ad702f2cbe55cc9d3c8dc58a6cb630dc69403a535389200633431f1patchbot.ps1sha256fd934bbec566b876b93e9adc81c32c556e6e57688b6462ed7da291ecd593f333CI housekeeping:
REFERENCE.mdregenerated (whitespace only, puppet-strings 4.1.2) and.bundler-audit.ymlwaives two dev-only gem advisories (minitar via bolt/r10k/puppet_forge, mcp via rubocop), each with its reason.Test plan
schema_version2 andsecurityno larger thanavailable🤖 Generated with Claude Code
https://claude.ai/code/session_01McuAWfE22TvftB9SGnvzTT