Skip to content

chore(plumber): extend the default policy, keep only the deliberate overrides - #37

Merged
thomasboni merged 2 commits into
mainfrom
chore/plumber-policy-extends-default
Nov 10, 2026
Merged

thomasboni merged 2 commits into
mainfrom
chore/plumber-policy-extends-default

Conversation

@thomasboni

Copy link
Copy Markdown
Contributor

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.yaml was 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.yaml now extends plumber:default and 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 through actions.lock. The entry merges with the default allowlist (resolved 163 entries). If you would rather not trust them, the alternative is dropping the charts-unit-tests job, since chart-v2-schema already runs helm unittest through scripts/ci/chart-check.sh.

Dropped as stale copies of the v0.4.13 defaults: trustedOwners (gains dependabot) and securityJobPatterns (gains the semgrep, trivy, snyk and secret-detection patterns).

Workflows, so the re-enabled checkout control passes (6 LOW findings, ISSUE-307):

  • persist-credentials: false on the five ci.yml checkouts and the publish-release.yml one.
  • The two publish-release.yml steps that push (the release tag, the gh-pages index) run gh auth setup-git first, and the index step gets GH_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

  • Resolved policy: 14 -> 25 controls enabled, 0 disabled; required resolves exactly as before.
  • plumber analyze on 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

thomasboni and others added 2 commits November 10, 2026 01:15
…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
@thomasboni

Copy link
Copy Markdown
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 ec8cb3a7). Re-scored with the v0.7.23 binary against this PR's extends-default policy: still 100 / 100.

@thomasboni
thomasboni merged commit bd0e86f into main Nov 10, 2026
8 checks passed
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.

1 participant