Skip to content

In-depth lesson · CI/CD pipeline abuse

Typical fixes

Every point the CI/CD pipeline abuse reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 6 of 6
  1. Pin and scope package names so builds do not resolve from public registries.

    Seen in 3 reports
  2. Put Jenkins instances behind authentication and remove public reachability.

    Seen in 2 reports
  3. Sanitise untrusted input such as pull request names before passing it to workflow steps.

    Seen in 1 report
  4. Reset the git hooks path and clean the working copy between jobs on a reused runner.

    Seen in 1 report
  5. Validate or reject pushes of git replace refs.

    Seen in 1 report
  6. Add integrity checks to the shared CI/CD cache and scope it per branch.

    Seen in 1 report