Wesley Dean

DevSecOps Engineer, Author, and Mentor

I’m a technologist, author, and mentor who helps people and organizations move from complexity to clarity. Through consulting, writing, and workshops, I bridge the gap between technical and non-technical teams, translating risk into meaningful decisions and sustainable action. My work centers on leadership, connection, and disciplined execution, drawing on decades of experience to help teams build secure, reliable systems while strengthening trust, alignment, and shared understanding.

Picture of Wesley Dean wearing a black dress shirt

Latest 3 Posts ↓

View all posts →
Making MegaLinter Do Less Work image

Making MegaLinter Do Less Work

11 min read

This is the fourth and final post in a four-part series following a MegaLinter optimization investigation. The previous post ended with a deliberate constraint: keep the configured linter set intact and make that workload faster. That took the steady-state Jenkins pipeline from about three minutes and 39 seconds to 58 seconds.

At that point, I was willing to change the question.

Some of the remaining linters were doing work that did not provide useful evidence for this repository. The next step changed from making the same work cheaper to deciding which work belonged in the pipeline at all.

Read More

Beyond Grype: Making Disposable MegaLinter Runs Fast image

Beyond Grype: Making Disposable MegaLinter Runs Fast

14 min read

This is the third post in a four-part series following a MegaLinter optimization investigation. The first post moved the workload from GitHub Actions to Jenkins; the second followed Grype from roughly three minutes to about four seconds. This post asks whether the persistence lesson from Grype generalizes to the rest of the pipeline.

By the time I reduced Grype from roughly three minutes to about four seconds, I was less interested in Grype as an isolated problem.

The more useful discovery was architectural.

MegaLinter was still running in disposable containers, exactly as I wanted. Each invocation started clean and disappeared when the lint job finished. The problem was that some of the tools inside those containers performed expensive work whose useful lifetime was much longer than the container that happened to perform it.

Grype made that mismatch visible. It prepared a large vulnerability database inside a container started with docker run --rm, used the database, and then lost the prepared state when Docker removed the container. Giving that database a lifecycle independent of the MegaLinter container reduced a representative Grype run from roughly 190 seconds to about four seconds.

Once that worked, another question followed naturally:

Which other MegaLinter scanners were rebuilding useful state inside a container that was going to disappear a few seconds later?

I did not want to respond by caching everything I could find. Temporary execution state is one of the reasons I like disposable containers in the first place. The goal was narrower: identify expensive filesystem state that was designed to be reused, preserve that state outside the container, and leave the execution environment disposable.

That distinction became the organizing principle for the next round of optimization.

Read More

Griping About Grype and How a Three-Minute Scan Became a Four-Second Scan image

Griping About Grype and How a Three-Minute Scan Became a Four-Second Scan

14 min read

While optimizing MegaLinter on my Jenkins infrastructure, one scanner stood out. Grype was consistently taking roughly three minutes to analyze a small Bash project whose generated artifact was about 12.3 KB.

At that point, the broader MegaLinter work had already taught me to be cautious about attributing an elapsed time directly to the thing named in a timing report. Moving the workload from GitHub Actions to Jenkins had initially made it slower, and the later improvement came from understanding image acquisition, persistence, locality, and cache lifecycles rather than from the platform change itself.

Grype looked like the next version of the same kind of problem.

Three minutes to scan almost nothing

One representative Grype result looked like this:

RunGrype runtime
Representative run186.64 seconds
Additional run 1192.72 seconds
Additional run 2189.66 seconds
Additional run 3186.88 seconds

That immediately attracted my attention. This was not a large container image containing thousands of operating-system and application packages, a monorepo, or a software distribution with an enormous dependency graph. The thing being scanned was measured in tens of kilobytes.

Read More

51 more posts can be found in the archive.