Hub rules-jenkins

rules-jenkins

v3 public Verified

Jenkins

Jenkins is an open-source automation server that helps automate the parts of software development related to building, testing, and deploying. These rules govern pipeline configuration, plugin management, and CI/CD security for AI agents.

@sigmashakeinc 2 pulls 8 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-jenkins →
Severity
5 error 3 warn 0 info
demo.cast
Jenkins is an open-source automation server that helps automate the parts of software development related to building, testing, and deploying. These rules govern pipeline configuration, plugin management, and CI/CD security for AI agents.

Rules index

8 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

jenkins

no-agent-any-public-jenkins warning log

agent: any runs the pipeline on any available agent without restriction. For sensitive pipelines, use labeled agents to control which nodes execute privileged jobs.

Rule source requires an active Pro or Enterprise subscription.
no-archive-sensitive-artifacts-jenkins warning log

Archiving .env or credential files as Jenkins artifacts stores secrets in the Jenkins artifact store, accessible to anyone with artifact read access. Exclude sensitive files from archiveArtifacts.

Rule source requires an active Pro or Enterprise subscription.
no-docker-privileged-jenkins error block

Running a Docker container with --privileged inside a Jenkins pipeline grants the container full host kernel capabilities, allowing container escape and full host compromise. Remove --privileged and use only the specific capabilities or volume mounts the job actually requires.

Rule source requires an active Pro or Enterprise subscription.
no-groovy-eval-jenkins error block

evaluate() and GroovyShell execute arbitrary Groovy code at runtime — a critical RCE vector in Jenkins pipelines. Use parameterized pipeline stages with validated inputs instead.

Rule source requires an active Pro or Enterprise subscription.
no-hardcoded-credentials-jenkins error block

Hardcoded credentials in Jenkinsfiles or Groovy scripts are stored in plaintext in version control. Use Jenkins Credentials Store: withCredentials([string(credentialsId: 'my-secret', variable: 'SECRET')])

Rule source requires an active Pro or Enterprise subscription.
no-input-step-no-timeout-jenkins warning log

An input() step without a timeout() wrapper blocks the pipeline executor indefinitely if no human approves — wasting executor slots and potentially preventing other builds from running. Wrap with: timeout(time: 1, unit: 'HOURS') { input 'Approve?' }

Rule source requires an active Pro or Enterprise subscription.
no-script-security-bypass-jenkins error log

@NonCPS methods bypass Jenkins' Groovy sandbox security restrictions. Audit @NonCPS usage carefully — it can access the Jenkins controller with full privileges.

Rule source requires an active Pro or Enterprise subscription.
no-sh-string-interpolation-jenkins error log

Groovy string interpolation of params.* or env.* in sh steps enables command injection — a malicious parameter value can execute arbitrary shell commands. Use single-quoted sh steps and pass variables as environment variables.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
933d03eed8621d18c02a664a3d790497d4768f7ace94b1d0c9728808d1841e16
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-jenkins/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-jenkins. The published version only bumps when a maintainer resyncs.

No commit history available.