Files
MyAiConfiguration/shared/rules/security/references/supply-chain.md
T
Julian Lechner c3e22eb902
CI / CI configuration security checks (push) Successful in 6s
CI / Python tests and compilation (push) Failing after 12s
CI / QMD unit tests (push) Skipped
CI / Capabilities and shell quality (push) Successful in 1m50s
CI / Build and inspect generated packages (push) Skipped
CI / Bash integration and installation guards (push) Skipped
CI / Installed client configuration smoke tests (push) Skipped
CI / PowerShell tests on Ubuntu (push) Failing after 7m24s
corrections
2026-11-19 10:30:43 +01:00

1.8 KiB

Supply-chain security

Apply these rules when changing dependencies, packages, plugins, builds, containers, infrastructure as code, deployment, or CI.

  • Keep dependencies minimal, maintained, and from verified sources; respect lockfiles and review identity and compatibility before adding or upgrading packages.
  • Verify package identity, source, maintainer, release history, transitive dependencies, and install-time behavior. Treat typosquats and unexpected ownership changes as risks.
  • Pin or constrain versions according to project policy, commit lockfiles, and remove unused dependencies. Review lockfile changes instead of hand-editing generated entries.
  • Review dependency and build-tool updates for breaking behavior and security advisories; upgrade deliberately and verify the resulting artifact.
  • Treat plugins, build scripts, CI actions, compiler plugins, generated artifacts, and caches as part of the attack surface. Pin CI actions to reviewed immutable revisions where supported.
  • Use least-privilege build and deployment identities. Separate untrusted pull-request jobs from secret-bearing jobs and protect release credentials from untrusted code.
  • Never expose credentials in pipelines, logs, caches, artifacts, command output, or generated packages. Limit secret lifetime and scope.
  • Verify artifact provenance and integrity before release or installation; avoid downloading and executing unverified content dynamically.
  • Build containers from minimal, pinned base images, run them as a non-root user with a read-only filesystem where possible, and never bake secrets into image layers or build arguments.
  • Keep infrastructure as code reviewed and least privilege: no public storage, open ports, or wildcard IAM permissions by default, encryption enabled, and security-relevant settings checked in review or by policy tooling.