Repository navigation
chore(plumber): extend the default policy, keep only the deliberate overrides - #37
Merged
Merged
Conversation
…verrides The policy file was a 379-line copy of the v0.4.13 CLI template: the 11 controls added since read as disabled, and two lists were stale copies of that era's defaults. The file now extends plumber:default and keeps only what was tailored on purpose: the required toolchain actions, plus the two chart-CI actions (d3adb5/helm-unittest-action, dorny/test-reporter, both pinned through the actions lockfile) authorized explicitly, which the re-enabled source control requires. The re-enabled checkout control needs every checkout to stop persisting the token: ci.yml's five and the publish workflow's one now set persist-credentials: false, and the two steps of the publish workflow that push (the release tag, the gh-pages index) wire gh as git's credential helper, as the monorepo's release workflow already does. Resolved policy: 14 -> 25 controls enabled; Plumber Score 70 -> 100 under the new policy. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LrKoq78WJL2zhtmpEBErwx
Bumps the getplumber/plumber action from v0.7.18 to v0.7.23 (latest, 2026-11-07) in plumber.yml and plumber-pr.yml, with the version input and the actions.lock entry (ref + resolved commit ec8cb3a7). Still 100 / 100 under v0.7.23 with the extends-default policy from this PR. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LrKoq78WJL2zhtmpEBErwx
Contributor
Author
|
Added a second commit bumping the pinned Plumber CLI from v0.7.18 to v0.7.23 (latest) in plumber.yml + plumber-pr.yml, with the version input and actions.lock (resolved commit |
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.
Why
The org attestation (score.getplumber.io/github.com/getplumber) lists this repository as Custom, 11 off. None of the 11 was disabled on purpose:
.plumber.yamlwas a 379-line copy of the v0.4.13 CLI template, and a self-contained file is held to the controls it lists, so the 11 controls added to the CLI since (actionRefsMustExistUpstream,actionsMustNotExecuteMutableRemoteCode,checkoutMustNotPersistCredentials,externalRefsMustNotCollide,githubActionMustComeFromAuthorizedSources,pipelineMustNotExecuteUnverifiedScripts,pullRequestTargetMustNotCheckoutHead,untrustedTriggersMustNotWriteCache,workflowMustNotExportEntireSecretsContext,workflowMustNotWriteUntrustedContentToGitHubEnv,workflowsMustBeValid) read as disabled.What changes
.plumber.yamlnow extendsplumber:defaultand keeps only what was tailored on purpose:workflowMustIncludeRequiredActions: required: actions/checkout AND azure/setup-helm AND actions/setup-python(kept as is)githubActionMustComeFromAuthorizedSources.trustedGithubActions: [d3adb5/helm-unittest-action, dorny/test-reporter]: a new, explicit trust decision. Re-enabling the source control flags these two chart-CI actions (HIGH, ISSUE-713); both are pinned throughactions.lock. The entry merges with the default allowlist (resolved 163 entries). If you would rather not trust them, the alternative is dropping thecharts-unit-testsjob, sincechart-v2-schemaalready runshelm unittestthroughscripts/ci/chart-check.sh.Dropped as stale copies of the v0.4.13 defaults:
trustedOwners(gainsdependabot) andsecurityJobPatterns(gains thesemgrep,trivy,snykand secret-detection patterns).Workflows, so the re-enabled checkout control passes (6 LOW findings, ISSUE-307):
persist-credentials: falseon the fiveci.ymlcheckouts and thepublish-release.ymlone.publish-release.ymlsteps that push (the release tag, the gh-pages index) rungh auth setup-gitfirst, and the index step getsGH_TOKEN, the same pattern the monorepo's release workflow uses. Worth watching on the next release: both pushes now authenticate through gh's credential helper instead of the checkout's persisted token.Effect
requiredresolves exactly as before.plumber analyzeon this branch: 100 / 100 (it was 70 with the new policy before the workflow fixes; the PR gate is 90). actionlint: clean.Same change for
getplumber/platform(identical legacy file).🤖 Generated with Claude Code
https://claude.ai/code/session_01LrKoq78WJL2zhtmpEBErwx