CLI
Controls index
Every control of the Plumber CLI, grouped by what it analyzes, as on the Issues page: pick a tab to keep one group. A control read on both providers shows under its GitHub group and its GitLab group. For how a control block is written, switched on or off and inherited, see Controls configuration.
What Plumber analyzes
Index
Id is the control’s CTRL-nnn, as the Platform’s Policies page shows it. Baseline is the state in plumber:default.
GitHub workflows
GitHub repository
| Id | Control | Baseline | Issues |
|---|---|---|---|
CTRL-501 | branchMustBeProtected | on | 501, 505 |
CTRL-510 | tagMustBeProtected | on | 510 |
Mise
| Id | Control | Baseline | Issues |
|---|---|---|---|
CTRL-1001 | mise-en-place (top-level mise: block) | on | 1001 to 1019 |
GitLab CI
| Id | Control | Baseline | Issues |
|---|---|---|---|
CTRL-102 | containerImageMustNotUseForbiddenTags | on | 102, 103 |
CTRL-203 | pipelineMustNotEnableDebugTrace | on | 203 |
CTRL-410 | securityJobsMustNotBeWeakened | on | 410 |
CTRL-411 | pipelineMustNotExecuteUnverifiedScripts | on | 411 |
CTRL-412 | pipelineMustNotUseDockerInDocker | on | 412, 413 |
CTRL-402 | externalRefsMustNotCollide | on | 402 |
CTRL-101 | containerImageMustComeFromAuthorizedSources | on | 101 |
CTRL-414 | componentMustComeFromAuthorizedSources | on | 414 |
CTRL-415 | functionMustComeFromAuthorizedSources | on | 415 |
CTRL-403 | includesMustBeUpToDate | on | 403 |
CTRL-404 | includesMustNotUseForbiddenVersions | on | 404 |
CTRL-204 | pipelineMustNotUseUnsafeVariableExpansion | on | 204 |
CTRL-205 | pipelineMustNotOverrideJobVariables | on | 205 |
CTRL-401 | pipelineMustNotIncludeHardcodedJobs | off | 401 |
CTRL-408 | pipelineMustIncludeComponent | off | 408, 409 |
CTRL-405 | pipelineMustIncludeTemplate | off | 405, 406 |
GitLab project
| Id | Control | Baseline | Issues |
|---|---|---|---|
CTRL-501 | branchMustBeProtected | on | 501, 505 |
CTRL-510 | tagMustBeProtected | on | 510 |
CTRL-201 | cicdVariablesMustBeProtected | off | 201 |
CTRL-202 | cicdVariablesMustBeMasked | off | 202 |
CTRL-502 | mergeRequestApprovalRulesMustRequireMinimumApprovals | off | 502 |
CTRL-504 | mergeRequestApprovalRulesMustCoverAllProtectedBranches | off | 504 |
CTRL-503 | mergeRequestApprovalSettingsMustBeCompliant | off | 503 |
CTRL-506 | mergeRequestSettingsMustBeCompliant | off | 506 |
CTRL-507 | numberOfProjectMembersMustRespectQuota | off | 507 |
CTRL-601 | projectMustHaveSecurityPolicySource | off | 601 |
Controls
Reading the tables
Default is the value Plumber uses when you write no .plumber.yaml, or extend plumber:default. unset is what applies when a full configuration leaves the key out. Long default lists are in the YAML block under the table, and every YAML block pastes into .plumber.yaml as it is.
containerImageMustNotUseForbiddenTags
Flags container images referenced by a mutable tag and, when digest pinning is required, any image not pinned by digest. Raises ISSUE-102 (medium) and ISSUE-103 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
tags | 6 tags, see below | Tags considered mutable and therefore forbidden. |
containerImagesMustBePinnedByDigest | true (unset: false) | Requires every image to be referenced by an immutable @sha256: digest. Takes precedence over tags: a version tag such as alpine:3.19 is then also flagged. |
exemptImages | empty | Images that neither ISSUE-102 nor ISSUE-103 checks while they use one of the tags. See Exempting an image. |
gitlab: controls: containerImageMustNotUseForbiddenTags: enabled: true tags: [latest, dev, development, staging, main, master] containerImagesMustBePinnedByDigest: truegithub: controls: containerImageMustNotUseForbiddenTags: enabled: true tags: [latest, dev, development, staging, main, master] containerImagesMustBePinnedByDigest: trueExempting an image
Some images are only published on a mutable tag, for example an internal tool released as :latest only. Rather than turning the whole control off, list them in exemptImages.
An image is exempt from both ISSUE-102 and ISSUE-103 when its registry and name match an entry and its tag is one of the tags. Its digest plays no part. Any other tag of the same image is still checked. With the configuration below:
| Image | Result |
|---|---|
ghcr.io/my-org/report-tool:latest | Exempt |
ghcr.io/my-org/report-tool:latest@sha256:… | Exempt: the digest is ignored |
ghcr.io/my-org/report-tool:v1.0.2 | Not exempt: v1.0.2 is not a forbidden tag, so ISSUE-103 is raised |
debian:latest, docker.io/library/debian:latest | Exempt |
public.ecr.aws/docker/library/debian:latest | Not exempt: another registry |
github: controls: containerImageMustNotUseForbiddenTags: enabled: true tags: [latest, dev, development, staging, main, master] containerImagesMustBePinnedByDigest: true exemptImages: - ghcr.io/my-org/report-tool - debian - "quay.io/my-org/*"- No tag in the entries. An entry is a registry and an image name. Which tags are accepted comes from
tags. - Docker Hub spellings match each other.
debian,library/debian,docker.io/debiananddocker.io/library/debianname the same image, in the entry and in the pipeline alike. A namespace still counts, soredisdoes not matchredis/redis-stack-server. - Globs.
*matches any characters, slashes included:quay.io/my-org/*covers every image of that namespace, and*/busyboxcoversbusyboxon any registry. Quote an entry that starts with*. - Variables.
$REGISTRY/tooland${REGISTRY}/toolmatch each other. The variable is compared by name, not expanded. - One block per provider. The list is read from the block of the provider being analyzed. An entry under
gitlab.controlshas no effect on a GitHub analysis. - Exempt images stay visible. The report lists them under Exempted by configuration, and they are not counted as unpinned.
pipelineMustNotEnableDebugTrace
Flags a pipeline that sets a debug variable to a truthy value, which dumps every variable, masked secrets included, into the job log. Raises ISSUE-203 (critical). There is no built-in list: the control checks only the variables you list.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
forbiddenVariables | per provider, see below | Variable names that must not be set to true (1 and yes also count on GitHub). |
gitlab: controls: pipelineMustNotEnableDebugTrace: enabled: true forbiddenVariables: [CI_DEBUG_TRACE, CI_DEBUG_SERVICES]github: controls: pipelineMustNotEnableDebugTrace: enabled: true forbiddenVariables: [ACTIONS_STEP_DEBUG, ACTIONS_RUNNER_DEBUG]securityJobsMustNotBeWeakened
Flags security scanning jobs that are allowed to fail, whose rules were overridden to skip them, or that were made manual. Raises ISSUE-410 (critical). Only jobs matching securityJobPatterns are checked, and the control counts as skipped when all three sub-checks are off.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
securityJobPatterns | per provider, see below | Job name patterns treated as security jobs. Wildcards are supported. On GitHub the pattern is matched against <workflow file>/<job id>, for example codeql/analyze. |
allowFailureMustBeFalse.enabled | GitLab false, GitHub true | The job must not carry allow_failure: true (GitLab) or continue-on-error: true (GitHub). Off on GitLab because GitLab’s own security templates ship with allow_failure: true. |
rulesMustNotBeRedefined.enabled | true | The job’s rules: must not be overridden to when: never or when: manual. |
whenMustNotBeManual.enabled | true | The job must not be when: manual (GitLab) or reachable only through a manual dispatch trigger (GitHub). |
gitlab: controls: securityJobsMustNotBeWeakened: enabled: true securityJobPatterns: - "*-sast" - "secret_detection" - "container_scanning" - "*_dependency_scanning" - "gemnasium-*" - "dast" - "dast_*" - "license_scanning" allowFailureMustBeFalse: { enabled: false } rulesMustNotBeRedefined: { enabled: true } whenMustNotBeManual: { enabled: true }github: controls: securityJobsMustNotBeWeakened: enabled: true securityJobPatterns: - "*codeql*" - "*dependency-review*" - "*trufflehog*" - "*gitleaks*" - "*osv-scanner*" - "*semgrep*" - "*trivy*" - "*snyk*" - "*-sast" - "*-sast-*" - "*-scan" - "*scan*" - "*-security" - "*-security-*" - "*-audit" - "*-audit-*" - "*secret*detect*" - "*detect*secret*" allowFailureMustBeFalse: { enabled: true } rulesMustNotBeRedefined: { enabled: true } whenMustNotBeManual: { enabled: true }pipelineMustNotExecuteUnverifiedScripts
Flags scripts downloaded and executed in one go (curl | bash, wget | sh) from a URL that is not trusted. Raises ISSUE-411 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustedUrls | empty | URL patterns that do not trigger a finding. Wildcards are supported; matching is host-precise, so https://example.com/* does not cover a subdomain. |
gitlab: controls: pipelineMustNotExecuteUnverifiedScripts: enabled: true trustedUrls: - https://internal-artifacts.example.com/*github: controls: pipelineMustNotExecuteUnverifiedScripts: enabled: true trustedUrls: - https://internal-artifacts.example.com/*pipelineMustNotUseDockerInDocker
Flags jobs that run a Docker-in-Docker service and, optionally, an insecure daemon configuration in those jobs. Raises ISSUE-412 (high) and ISSUE-413 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
detectInsecureDaemon | true | Also flags an empty DOCKER_TLS_CERTDIR or a plaintext DOCKER_HOST such as tcp://docker:2375 in a DinD job (ISSUE-413). |
gitlab: controls: pipelineMustNotUseDockerInDocker: enabled: true detectInsecureDaemon: truegithub: controls: pipelineMustNotUseDockerInDocker: enabled: true detectInsecureDaemon: trueexternalRefsMustNotCollide
Flags an include (GitLab) or an action reference (GitHub) whose ref exists both as a tag and as a branch upstream, so what runs is ambiguous. Raises ISSUE-402 (medium). Without a token the control abstains. No field beyond enabled.
actionsMustBePinnedByCommitSha
Flags a third-party action referenced by a tag or branch instead of a full commit SHA. Raises ISSUE-701 (high).
A tag backed by an immutable GitHub release counts as pinned: such a tag can never be moved or deleted. Only the exact released tag qualifies (@v4.2.1, not the floating @v4). Plumber reads the release through the GitHub API, so the exemption needs a token (gh auth login, GH_TOKEN or PLUMBER_METADATA_TOKEN). Without one, or when the release cannot be read, the reference is reported.
A workflow dependency lockfile also counts: when the analyzed branch commits .github/workflows/actions.lock, the runner executes the commits it records, so the steps of the repository’s own jobs are accepted. Reusable-workflow calls are not in the lockfile schema and still need a commit SHA or an immutable release tag. There is nothing to configure.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustedOwners | actions, github | Action owners exempt from the requirement. List only owners inside your trust boundary. Case does not matter in the owner and repository: actions covers Actions/checkout. |
github: controls: actionsMustBePinnedByCommitSha: enabled: true trustedOwners: [actions, github, myorg]githubActionMustComeFromAuthorizedSources
Flags an action whose owner is not trusted by any of the four rules below. Raises ISSUE-713 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustGithubOfficialActions | true | Trusts GitHub’s own actions, actions/* and github/*, in any letter case. |
trustSameOrgActions | true | Trusts actions owned by the same organization or user as the scanned repository. |
minimumStars | 20000 (unset: 0, off) | Trusts any action whose repository has at least this many stars. Needs API access; an unresolvable star count falls back to the allowlist instead of a finding. |
trustedGithubActions | curated list, about 150 entries | Trusted actions as owner/repo or owner/*. Case does not matter in the owner and repository, as on GitHub. The baseline covers the major cloud vendors, build and release tooling, language ecosystems, security vendors and developer platforms. Print it with plumber config view. |
includePlumberDefaults | true | Overlay mode: true adds your trustedGithubActions to the curated list, false trusts only your entries. |
github: controls: githubActionMustComeFromAuthorizedSources: enabled: true trustGithubOfficialActions: true trustSameOrgActions: true minimumStars: 20000 includePlumberDefaults: true trustedGithubActions: - myorg/* - partner-org/deploy-actionactionsMustNotBeArchived
Flags an action hosted in an archived repository, which no longer receives fixes. Raises ISSUE-702 (high). Without API access the control abstains. No field beyond enabled.
actionRefsMustExistUpstream
Flags a pinned commit SHA that does not belong to the action’s repository. Raises ISSUE-707 (critical). Fires only on a definitive not-found answer from a readable repository. No field beyond enabled.
actionsMustNotCarryKnownCVEs
Flags an action version that has a published advisory in the GitHub Advisory Database. Raises ISSUE-703 (critical). Without API access the control abstains; PLUMBER_METADATA_TOKEN can carry the version lookup, see the CLI reference. No field beyond enabled.
actionsMustNotExecuteMutableRemoteCode
Inspects the source of each third-party action and flags one that downloads and runs code from a mutable location. Raises ISSUE-714 (high) for a fetch in the open, ISSUE-715 (critical) for an obfuscated one, and ISSUE-716 (low) when the action source could not be read. No field beyond enabled.
untrustedTriggersMustNotWriteCache
Flags a job whose triggers include an event GitHub restricts to read-only cache access (pull_request_target, issue_comment, workflow_run, discussion…) and whose cache-mode is write or write-only, set on the job or inherited from its workflow. Code running in such a job can write caches every default-branch run restores. Raises ISSUE-705 (high). push, workflow_dispatch, repository_dispatch, delete, registry_package, page_build, schedule, pull_request and its review events, release and merge_group are safe triggers, and a job without cache-mode is silent.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
exemptWorkflows | empty | A list of globs on the workflow file name, such as triage.yml; every job of a matching workflow is exempt. |
exemptJobs | empty | A list of globs on <workflow>/<job id>, such as triage/label; a matching job is exempt. |
An exemption accepts the risk: the check skips the job, and the output lists every exempted job it would have flagged under Exempted by configuration, so the exemption stays visible.
github: controls: untrustedTriggersMustNotWriteCache: enabled: true exemptWorkflows: [] exemptJobs: [] # - 'bot/warm-cache'Info
This control replaces releaseWorkflowsMustNotRestoreUntrustedCache, which flagged release jobs restoring a cache not scoped to the release ref. A configuration that still uses the old key is ignored with a warning: run plumber config migrate to rename it. publishActions, cacheActions, publishScriptPatterns, publishScriptExcludePatterns and allowedJobs are gone; list the jobs you accept under exemptJobs.
reusableWorkflowsMustNotInheritSecrets
Flags a reusable workflow call with secrets: inherit, which passes every repository secret to the callee. Raises ISSUE-302 (high). No field beyond enabled.
checkoutMustNotPersistCredentials
Flags an actions/checkout step that does not set persist-credentials: false, leaving the token in the clone’s .git/config. Raises ISSUE-307 (low) when the credential merely persists and ISSUE-310 (high) when a later upload-artifact step packs it into a downloadable artifact. No field beyond enabled.
workflowMustNotExportEntireSecretsContext
Flags toJSON(secrets) and other expressions that expose the whole secrets context at once. Raises ISSUE-309 (critical). No field beyond enabled.
workflowMustNotInjectUserInputInScripts
Flags a run: script that inlines a user-controlled expression such as ${{ github.event.pull_request.title }}, a template injection. Raises ISSUE-207 (critical). No field beyond enabled.
workflowMustNotWriteUntrustedContentToGitHubEnv
Flags a step that writes user-controlled content to $GITHUB_ENV or $GITHUB_PATH. Raises ISSUE-209 (high). No field beyond enabled.
workflowMustNotUseDangerousTriggers
Flags the pull_request_target and workflow_run triggers, which run with write access on untrusted input. Raises ISSUE-802 (critical). No field beyond enabled.
pullRequestTargetMustNotCheckoutHead
Flags a pull_request_target workflow that checks out the pull request head, running untrusted code with the repository’s secrets. Raises ISSUE-804 (critical). No field beyond enabled.
workflowsMustDeclarePermissions
Flags a workflow with no explicit permissions: block, which runs with the repository’s default token permissions. Raises ISSUE-801 (medium). No field beyond enabled.
workflowMustNotGrantPermissionsWriteAll
Flags the permissions: write-all shortcut at the workflow or job level. Per-scope permissions are not audited. Raises ISSUE-803 (high). No field beyond enabled.
workflowsMustBeValid
Flags a file under .github/workflows that cannot be parsed as a workflow (an undefined YAML anchor, a duplicate key, a tab-indented block, a syntax error), which GitHub shows as an invalid workflow and never runs. The other workflow files are analyzed and scored as usual; when every file is invalid, the controls that read the workflows show as not evaluated. Only YAML parse failures are reported: a well-formed file GitHub still rejects (a job without runs-on, say) is left to the Actions tab or actionlint. Duplicate keys are compared ignoring case, as GitHub does. Raises ISSUE-423 (low). No field beyond enabled. When the control is off, or absent from a full configuration without extends, the control shows as skipped, but an invalid file is not dropped silently: it degrades the run and the score is withheld.
workflowMustIncludeRequiredActions
Checks that the workflows of the repository, taken together, reference the required actions or reusable workflows. Raises ISSUE-417 (high).
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
required | unset | The requirement as a boolean expression of owner/repo or owner/repo/path entries, matched without regard to the @ref: myorg/sast-scan matches myorg/sast-scan@v2 and myorg/sast-scan/sub@abc123. Exclusive with requiredGroups. |
requiredGroups | empty | The same requirement as a list of lists (an OR of ANDs). Exclusive with required. |
github: controls: workflowMustIncludeRequiredActions: enabled: true required: myorg/sast-scan AND myorg/policy/.github/workflows/scan.ymlbranchMustBeProtected
Checks that the branches matching namePatterns (and the default branch) are protected, and that their protection meets the expectations you set. Raises ISSUE-501 (critical) when a branch is not protected and ISSUE-505 (high) when its settings are not compliant. Without a token the control abstains. On GitHub it reads both classic branch protection and rulesets, and evaluates the stricter of the two.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
defaultMustBeProtected | true | Also requires the default branch to be protected, whether or not it matches namePatterns. |
namePatterns | 5 patterns, see below | Branch name patterns that must be protected. Wildcards are supported. |
allowForcePush | false | Expectation: false requires force push to be disabled. |
codeOwnerApprovalRequired | false | Expectation: true requires code owner approval. GitLab Premium |
minMergeAccessLevel | GitLab 30, GitHub unset | Expectation: the minimum access level allowed to merge. GitLab only. |
minPushAccessLevel | GitLab 40, GitHub unset | Expectation: the minimum access level allowed to push. GitLab only. |
GitLab access levels: 0 No one (the strictest), 30 Developer, 40 Maintainer.
gitlab: controls: branchMustBeProtected: enabled: true defaultMustBeProtected: true namePatterns: [main, master, release/*, production, dev] allowForcePush: false codeOwnerApprovalRequired: false minMergeAccessLevel: 30 minPushAccessLevel: 40github: controls: branchMustBeProtected: enabled: true defaultMustBeProtected: true namePatterns: [main, master, release/*, production, dev] allowForcePush: false codeOwnerApprovalRequired: falsetagMustBeProtected
Checks that tags are protected: tag updates and deletions blocked, and tag creation restricted. By default every tag must be covered by one rule on all tags: a GitLab protected tag *, or GitHub tag rulesets targeting All tags with no exclude pattern. List namePatterns to check specific patterns instead. Raises ISSUE-510 (critical, or high when no pipeline or workflow runs on a tag). Nothing is checked until the repository has a tag or a pipeline or workflow runs on tags. Workflow tag triggers never add a pattern to check, they only raise the severity. On GitLab it reads protected tags; on GitHub, active tag rulesets, the repository’s own and the organization’s. Without access the control reports “not evaluated” and raises no finding. On GitLab it is not evaluated in Platform mode yet.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
namePatterns | [] | Tag name patterns that must be protected, each checked on its own. Wildcards are supported. Empty means all tags: a GitLab protected tag *, or GitHub rulesets on All tags (~ALL), with no exclusion. |
requireCreationRestricted | true | Expectation: true also requires tag creation to be restricted (GitLab: left to Maintainers or narrower; GitHub: Restrict creations). false checks updates and deletions only. |
gitlab: controls: tagMustBeProtected: enabled: true namePatterns: [] # all tags; or [v*] to check specific patterns requireCreationRestricted: truegithub: controls: tagMustBeProtected: enabled: true namePatterns: [] # all tags; or [v*] to check specific patterns requireCreationRestricted: truemise-en-place
Checks the mise files of the repository, the configs, lockfiles, .tool-versions and task files that decide what CI installs with mise install. Plumber reads the files and never runs mise. The control is configured by a top-level mise: block, next to gitlab: and github: rather than under controls, because it does not depend on the provider: one block applies to both. It holds four checks, each with its own sub-block, and every code carries the check’s subject in the JSON catalog.
| Check | Baseline | Issues |
|---|---|---|
lockfile | on | 1001 to 1009, 1018, 1019 |
presence (required) | off | 1010 |
versions | on | 1011, 1012 |
sources | off | 1013 to 1016 |
tasks | off | 1017 |
Every committed mise config is checked, in any directory. The walk skips .git, node_modules, vendor and hidden directories other than .config and .mise. Each config pairs with the lockfile next to it (mise.toml with mise.lock, mise.<env>.toml with mise.<env>.lock, a conf.d/ fragment with the mise.lock of the directory holding conf.d/); with [monorepo] lockfile = true in the root config, subproject configs pair with the root lockfiles.
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. With false or no mise block, no mise file is read and nothing is reported. |
required | false | true reports a repository that commits no mise config outside exemptPaths (ISSUE-1010). A .tool-versions file alone does not count. |
exemptPackages | [] | Tool keys exempted from every mise check. Globs allowed. |
exemptPaths | [] | Repository paths whose mise files are not checked, for example examples/** for fixtures. * stays within a directory, ** crosses directories. |
lockfile
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the lockfile check on. |
requireChecksums | true | A locked download must carry a checksum (ISSUE-1004), and a binary tool must lock a URL or checksum (ISSUE-1018). |
requireProvenance | unset | Backends whose locked downloads must record a provenance (ISSUE-1006), for example ["aqua:*"]. |
trustedProvenance | every kind mise records | Provenance kinds a locked download may record (ISSUE-1005): slsa, github-attestations, cosign, minisign. |
requiredPlatforms | unset | Platforms every tool that locks downloads must lock (ISSUE-1007), for example [linux-x64, linux-arm64]. |
minimumLockfileVersion | unset | Oldest accepted lockfile_version (ISSUE-1008). |
versions
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the versions check on. It reads no lockfile, so it runs on its own. |
forbiddenVersions | 12 patterns, see below | Globs a tool request must not match (ISSUE-1011). A bare major such as node = "24" is not caught. ref:* is left out because a ref pinned to a commit SHA cannot move: add it to forbid every git ref. |
sources (off: write the block to turn it on)
| Field | Default | Description |
|---|---|---|
enabled | true once the block is written | Turns the sources check on. |
trustedTools | unset | Tools that may be installed, by full mise name (aqua:jqlang/jq). A shorthand such as terraform takes the backend its mise.lock entry records (ISSUE-1013). |
trustedRegistries | unset | Download URLs mise.lock may record (ISSUE-1014). Left out, locked URLs are not checked; [] trusts none. |
trustedReplacement | unset | Where [settings] url_replacements may send downloads (ISSUE-1015). Absent or [] trusts none. |
trustedOptions | unset | URLs a tool option may set: api_url, url, platforms.<p>.url, pip indexes (ISSUE-1016). Absent or [] trusts none. |
Patterns in the sources lists are globs, matched case-insensitively.
tasks (off: write the block to turn it on)
| Field | Default | Description |
|---|---|---|
enabled | true once the block is written | Turns the tasks check on. |
required | unset | Tasks every mise project must declare, as mise run sees them there (ISSUE-1017). Each entry matches a task name or alias, globs allowed (lint:*). It is a list: the expression form (lint AND test) is a configuration error. |
version: "2.0"gitlab: controls: ...github: controls: ...mise: enabled: true required: false lockfile: enabled: true requireChecksums: true # requireProvenance: ["aqua:*"] # trustedProvenance: [slsa, github-attestations, cosign, minisign] # requiredPlatforms: [linux-x64, linux-arm64] # minimumLockfileVersion: 1 versions: enabled: true forbiddenVersions: [latest, lts, "lts/*", "lts-*", stable, nightly, beta, "branch:*", "path:*", system, "sub-*", "prefix:*"] # sources: # enabled: true # trustedTools: ["core:*", "aqua:*", "github:my-org/*"] # trustedRegistries: ["https://github.com/*", "https://nodejs.org/*"] # trustedReplacement: [] # trustedOptions: [] # tasks: # enabled: true # required: [lint, test] exemptPackages: [] exemptPaths: []Glob patterns are checked when the configuration loads: a bad pattern is a configuration error, not a silent pass.
Unreadable files stop the run
A mise file Plumber cannot read stops the run with exit code 2 and no report: a config or lockfile that is not valid TOML, a file over 2 MiB, or a symlink that points outside the repository, at a device, or nowhere. Plumber reads every mise file first, then lists every file that failed in one error:
cannot read the mise files below; fix them or list their paths in mise.exemptPaths:A symlink that resolves to a file inside the repository is followed, as mise follows it. A file under exemptPaths does not stop the run, unless a checked config pairs with that lockfile. A run with only the versions check reads no lockfile, so a broken mise.lock does not stop it, and a TOML task file that cannot be parsed stops the run only when the tasks check is on.
Remote runs
Without a local checkout (plumber analyze on a remote GitHub repository, or a GitLab run whose working tree is not at the analyzed ref), Plumber reads the mise files of the analyzed commit through the provider’s API. The run’s provider decides which API is used; the mise block has no provider key.
| GitHub | GitLab | |
|---|---|---|
| Tree | one REST git/trees/<commit>?recursive=1 request | the recursive tree, 100 entries a page |
| Files | GraphQL, 50 files a query | GraphQL blobs, 50 files a query, sizes asked first so a file over 2 MiB is never downloaded |
| Fallback | one request per file whose GraphQL text is truncated or not byte-exact | the raw file over REST when the instance does not answer the blobs query (GitLab older than 13.11) |
| Ref | the commit the workflows were read at | the analyzed commit, or the branch by name when its head could not be fetched |
A file only a task include or a symlink reaches is read in a later batch, up to 4 more. Reading the files of a small repository takes about one to two seconds. Since the control is on in the baseline, every remote run now lists the repository tree.
The analyzed repository is treated as untrusted: a symlink target over 4,096 bytes is refused, and nothing under a skipped directory is fetched. An empty repository has no mise file and does not stop the run.
When the control is not evaluated
The control never passes on files it did not read. It is reported as not evaluated when:
- the repository is too large to read remotely: a GitHub tree over 100,000 entries or 7 MB, or more than 5,000 files to fetch. The run is marked degraded and every other control still reports. A local checkout is always read in full.
- a GitLab run stops early (no CI file, or a CI file it could not read).
- in platform mode, a policy turns mise on over a run that did not read the mise files.
An enabled mise block with no check turned on and required: false reports the control as needing configuration.
Known limits
- mise settings set from the CI file (
MISE_LOCKFILE=0,MISE_URL_REPLACEMENTS) and versions set from the pipeline (MISE_NODE_VERSION,mise use node@latest) are not read. - The tasks check does not verify that the workflow actually runs the required tasks.
- Only binary backends (aqua, github, gitlab, ubi, http) lock a download URL, so ISSUE-1014 does not see the source of a go, npm, cargo or pip tool. Mirror settings and
[env]index variables are not read. - Idiomatic version files (
.nvmrc,.node-version,.python-version) are not read. - The legacy
--outputJSON does not carry mise findings.
containerImageMustComeFromAuthorizedSources
Flags a job image that does not come from a trusted registry or publisher. Raises ISSUE-101 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustDockerHubOfficialImages | true (unset: false) | Trusts Docker Hub official images such as nginx or alpine. |
trustedUrls | curated list, about 90 entries | Trusted registry URLs or image patterns, wildcards supported. The baseline covers the project registry ($CI_REGISTRY_IMAGE:*, $CI_REGISTRY/*), registry.gitlab.com/security-products/*, common Docker Hub publishers and selected namespaces on ghcr.io, quay.io, gcr.io and mcr.microsoft.com. Print it with plumber config view. |
includePlumberDefaults | true | Overlay mode: true adds your trustedUrls to the curated list, false trusts only your entries. |
Prefer namespace patterns such as ghcr.io/myorg/* over host-wide wildcards such as ghcr.io/*, which trust every publisher on that host.
gitlab: controls: containerImageMustComeFromAuthorizedSources: enabled: true trustDockerHubOfficialImages: true includePlumberDefaults: true trustedUrls: - $CI_REGISTRY_IMAGE:* - registry.example.com/platform/*componentMustComeFromAuthorizedSources
Flags an include: component: whose source is not trusted by any of the rules below. Components run with the job’s full context, secrets and CI_JOB_TOKEN included. Raises ISSUE-414 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustSameGroupComponents | true | Trusts components under the scanned project’s root namespace (top-level group) on the same GitLab instance. |
trustSameInstanceComponents | true | Trusts any component hosted on the scanned GitLab instance. Always off on gitlab.com, even when set to true, because every gitlab.com user shares that instance. |
trustGitlabOfficialComponents | true | Trusts GitLab’s curated namespaces on gitlab.com, gitlab.com/components/* and gitlab.com/gitlab-org/*. A same-named namespace on a self-hosted instance is not covered. |
trustedComponents | gitlab.com/getplumber/* | Trusted component sources, wildcards and $VAR / ${VAR} notation supported. The baseline trusts Plumber’s own component. |
Hosts and namespaces compare case-insensitively, as GitLab resolves them. A source with a . or .. path segment is never trusted. Plumber’s own component (gitlab.com/getplumber/*) is trusted by the baseline, the way its container image is.com/getplumber/*totrustedComponents` if you include it.
componentMustComeFromAuthorizedSources: enabled: true trustSameGroupComponents: true trustSameInstanceComponents: true trustGitlabOfficialComponents: true trustedComponents: - gitlab.com/getplumber/* - gitlab.com/to-be-continuous/*functionMustComeFromAuthorizedSources
Flags a GitLab Function referenced by a run: step (func:, or the deprecated step:) whose source is not trusted. Functions run with the job’s full context, the same exposure as components. Raises ISSUE-415 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
trustSameGroupFunctions | true | Trusts functions under the scanned project’s root namespace, hosted on the instance’s container registry (OCI form, the registry host the GitLab API reports for the project) or its web host (deprecated git form). CI/CD variables such as CI_REGISTRY never move this anchor. |
trustedFunctions | empty | Trusted function references, wildcards supported. The runner does not expand $VAR in func:, so list literal hosts and paths. A pattern that references a $CI_* variable is rejected when the pipeline redefines that variable. |
The structured forms are checked like their string equivalents: func: {git: {url, rev, dir, file}} as url/-/dir/file@rev, func: {oci: {registry, repository, tag}} as registry/repository:tag. A func: value Plumber cannot read is reported, never skipped. Local paths and GitLab built-in functions (builtin://...) are out of scope. Hosts and namespaces compare case-insensitively, and a reference with a . or .. path segment is never trusted.
The deprecated forms (step:, git references) are counted in the Deprecated stat of the report. Being deprecated does not raise a finding on its own, and does not exempt a reference from the trust check.
functionMustComeFromAuthorizedSources: enabled: true trustSameGroupFunctions: true trustedFunctions: - registry.example.com/platform-team/*includesMustBeUpToDate
Flags an included template or component pinned to a version older than the latest available. Raises ISSUE-403 (low). No field beyond enabled.
includesMustNotUseForbiddenVersions
Flags an include pinned to a mutable ref. Raises ISSUE-404 (medium).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
forbiddenVersions | 5 patterns, see below | Version patterns considered forbidden. |
defaultBranchIsForbiddenVersion | true | Also forbids the included project’s default branch, whatever its name. |
gitlab: controls: includesMustNotUseForbiddenVersions: enabled: true forbiddenVersions: [latest, "~latest", main, master, HEAD] defaultBranchIsForbiddenVersion: truepipelineMustNotUseUnsafeVariableExpansion
Flags a user-controlled variable (merge request title, commit message, branch name) used where the shell re-interprets it: eval, sh -c, bash -c, source <(...), envsubst | sh, xargs sh. Plain uses such as echo $CI_COMMIT_BRANCH are not flagged. Raises ISSUE-204 (medium).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
dangerousVariables | 10 variables, see below | Variables whose value comes from user input. |
allowedPatterns | empty | A list of regular expressions; a matching script line is not flagged. Escape $ as \\$ and braces as \\{, \\}. |
gitlab: controls: pipelineMustNotUseUnsafeVariableExpansion: enabled: true dangerousVariables: - CI_MERGE_REQUEST_TITLE - CI_MERGE_REQUEST_DESCRIPTION - CI_COMMIT_MESSAGE - CI_COMMIT_TITLE - CI_COMMIT_TAG_MESSAGE - CI_COMMIT_REF_NAME - CI_COMMIT_REF_SLUG - CI_COMMIT_BRANCH - CI_MERGE_REQUEST_SOURCE_BRANCH_NAME - CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME allowedPatterns: - "helm.*--set.*\\$CI_" - "docker build.*--build-arg.*\\$CI_"pipelineMustNotOverrideJobVariables
Flags a controlled variable defined in the pipeline file, where it can silently disable or redirect a security scanner. Such variables belong in the project’s CI/CD settings. Raises ISSUE-205 (high).
| Field | Default | Description |
|---|---|---|
enabled | true | Turns the control on. |
variables | 10 variables, see below | Variable names that must not be defined in .gitlab-ci.yml, at the top level or in a job. |
gitlab: controls: pipelineMustNotOverrideJobVariables: enabled: true variables: - SECURE_ANALYZERS_PREFIX - SAST_DISABLED - SAST_EXCLUDED_PATHS - SAST_EXCLUDED_ANALYZERS - SECRET_DETECTION_DISABLED - SECRET_DETECTION_EXCLUDED_PATHS - CONTAINER_SCANNING_DISABLED - DAST_DISABLED - DEPENDENCY_SCANNING_DISABLED - LICENSE_SCANNING_DISABLEDpipelineMustNotIncludeHardcodedJobs
Flags jobs defined directly in .gitlab-ci.yml instead of coming from an included template or component. Raises ISSUE-401 (medium). Off by default because without a components strategy it flags most jobs. No field beyond enabled.
pipelineMustIncludeComponent
Checks that the pipeline includes the required CI/CD components and does not override their jobs. Raises ISSUE-408 (high) when a component is missing and ISSUE-409 (medium) when a required component’s job is overridden.
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
required | unset | The requirement as a boolean expression of component paths (group/project/component). See Required expressions. Exclusive with requiredGroups. |
requiredGroups | empty | The same requirement as a list of lists (an OR of ANDs). Exclusive with required. |
gitlab: controls: pipelineMustIncludeComponent: enabled: true required: components/sast/sast AND components/secret-detection/secret-detection AND getplumber/plumber/plumberpipelineMustIncludeTemplate
Checks that the pipeline includes the required templates and does not override their jobs. Raises ISSUE-405 (high) and ISSUE-406 (medium).
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
required | unset | The requirement as a boolean expression of template paths. Exclusive with requiredGroups. |
requiredGroups | empty | The same requirement as a list of lists (an OR of ANDs). Exclusive with required. |
gitlab: controls: pipelineMustIncludeTemplate: enabled: true requiredGroups: - ["templates/go/go", "templates/trivy/trivy"] - ["templates/full-go-pipeline"]cicdVariablesMustBeProtected
Flags a CI/CD variable in the project settings that is not marked protected. Raises ISSUE-201 (medium). Needs read access to the project variables; a 401 or 403 is reported as not evaluable, never as a pass. No field beyond enabled.
cicdVariablesMustBeMasked
Flags a CI/CD variable in the project settings that is not masked. Raises ISSUE-202 (medium). GitLab cannot mask values shorter than 8 characters; those are still flagged. No field beyond enabled.
mergeRequestApprovalRulesMustRequireMinimumApprovals
Flags an approval rule covering all protected branches that requires fewer approvals than the minimum. Raises ISSUE-502 (high).
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
minimumRequiredApprovals | 1 | The fewest approvals a rule covering all protected branches must require. Unset asserts nothing. |
gitlab: controls: mergeRequestApprovalRulesMustRequireMinimumApprovals: enabled: true minimumRequiredApprovals: 2mergeRequestApprovalRulesMustCoverAllProtectedBranches
Flags a project where no approval rule targets all protected branches. Raises ISSUE-504 (high). On GitLab Free the approvals API returns no rule, so the control would fire on every project. No field beyond enabled.
mergeRequestApprovalSettingsMustBeCompliant
Compares the project’s merge request approval settings with the expectations you set. Raises ISSUE-503 (high). A field you leave out (or set to false) is not checked.
| Field | Default | Expects |
|---|---|---|
enabled | false | Turns the control on. |
preventApprovalByAuthor | unset | Authors cannot approve their own merge requests. |
preventApprovalsByCommitters | unset | Users who committed to a merge request cannot approve it. |
preventEditingApprovalRulesInMR | unset | Approval rules cannot be edited in a merge request. |
requireReAuthToApprove | unset | Approving requires re-authentication (password or SAML). |
behaviorWhenCommitIsAdded | unset | The minimum strictness when a commit is added to an open merge request: keep_approvals, remove_approvals_by_code_owners or remove_all_approvals, from least to most strict. A stricter project setting passes. |
gitlab: controls: mergeRequestApprovalSettingsMustBeCompliant: enabled: true preventApprovalByAuthor: true preventApprovalsByCommitters: true preventEditingApprovalRulesInMR: true requireReAuthToApprove: true behaviorWhenCommitIsAdded: remove_all_approvalsmergeRequestSettingsMustBeCompliant
Compares the project’s merge request settings with the expectations you set, for exact equality. Raises ISSUE-506 (medium). A field you leave out is not checked.
| Field | Default | Expects |
|---|---|---|
enabled | false | Turns the control on. |
mergeMethod | unset | The merge method: merge, ff or rebase_merge. |
squashOption | unset | The squash setting: never, always, default_on or default_off. |
mergePipelinesEnabled | unset | The “merged results pipelines” setting. GitLab Premium |
mergeTrainsEnabled | unset | The “merge trains” setting. GitLab Premium |
allowMergeOnSkippedPipeline | unset | The “allow merge when the pipeline is skipped” setting. |
resolveOutdatedDiffDiscussions | unset | The “automatically resolve outdated diff discussions” setting. |
printingMergeRequestLinkEnabled | unset | The “show the merge request link when pushing” setting. |
removeSourceBranchAfterMerge | unset | The “delete source branch after merge” default. |
pipelinesMustSucceed | unset | The “Pipelines must succeed” merge check. Available on every GitLab tier. |
allThreadsMustBeResolved | unset | The “All threads must be resolved” merge check. Available on every GitLab tier. |
The finding names each deviating setting with GitLab’s label, for example Pipelines must succeed is disabled (expected enabled). With a Plumber Platform that does not serve one of these two settings yet, that setting is left out of the comparison and the others are checked as usual: a deviation on another setting is still reported. When nothing deviates and an expected merge check could not be read, the control reports not evaluable (snapshot_lacks_merge_gates) instead of a pass, until the platform is updated.
gitlab: controls: mergeRequestSettingsMustBeCompliant: enabled: true mergeMethod: ff squashOption: default_on allowMergeOnSkippedPipeline: false removeSourceBranchAfterMerge: true pipelinesMustSucceed: true allThreadsMustBeResolved: truenumberOfProjectMembersMustRespectQuota
Flags a role whose member count is outside the bounds you set. Counts everyone with effective access (direct members, members inherited from parent groups and members of invited groups), each person once at their highest role. Access-token bots are excluded, and so are people who cannot use their access: a membership still awaiting approval, and a blocked or banned account. A deactivated account is counted, because it comes back by signing in. Owner, Maintainer and Developer are counted by role; total is every member at any role. Every bound is optional and inclusive: a bound you leave out is not checked. Raises ISSUE-507 (medium), one issue per role outside its bounds. GitLab only. Listing members needs a token with read_api on the project, which a CI job token does not have. Without a usable token, or on a project with more than 2000 members, the control reports “not evaluated” and raises no issue. It does not need a CI file: on a project with none, or with an invalid one, it is still checked and its issue is listed.
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
ownerMin | unset | Fewest members with the Owner role. |
ownerMax | unset | Most members with the Owner role. |
maintainerMin | unset | Fewest members with the Maintainer role. |
maintainerMax | unset | Most members with the Maintainer role. |
developerMin | unset | Fewest members with the Developer role. |
developerMax | unset | Most members with the Developer role. |
totalMin | unset | Fewest members at any role, bots excluded. |
totalMax | unset | Most members at any role, bots excluded. |
gitlab: controls: numberOfProjectMembersMustRespectQuota: enabled: true ownerMin: 1 ownerMax: 3 maintainerMin: 1 maintainerMax: 5 developerMin: 1 developerMax: 20 totalMin: 2 totalMax: 30projectMustHaveSecurityPolicySource
Checks that the project is linked to a security policy project, optionally a specific one. Raises ISSUE-601 (critical).
| Field | Default | Description |
|---|---|---|
enabled | false | Turns the control on. |
expectedProjectId | unset | The numeric ID the linked policy project must have. Unset only requires that some policy project is linked. |
expectedProjectPath | unset | The namespace/project path the linked policy project must have, compared case-insensitively. Ignored when expectedProjectId is set. |
gitlab: controls: projectMustHaveSecurityPolicySource: enabled: true expectedProjectPath: my-group/security-policy-project