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 →
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

Moving MegaLinter Off GitHub Actions and What Actually Made it Faster image

Moving MegaLinter Off GitHub Actions and What Actually Made it Faster

10 min read

I did not set out to investigate CI architecture. I set out to understand why I had burned through roughly 3,000 GitHub Actions minutes in about five days.

The usage came from three private repositories, one of which was under active development. My development workflow contributed significantly to the volume. I use GitHub issues to describe and track individual work items, and an automation creates a branch and an associated draft pull request whenever I create an issue. I like this arrangement because the draft pull request gives me a natural place to accumulate work, comments, commits, and related context while the issue is still underway. The arrangement had an unintended consequence: MegaLinter was running against those draft pull requests as I pushed incremental changes.

The workflow was effectively this:

An issue creates a branch and draft pull request; incremental pushes repeatedly trigger MegaLinter until the pull request is ready for review

That behavior makes sense for a pull request that is ready for review. It makes less sense for a draft pull request whose primary purpose is to provide a workspace for something that may change ten more times before anyone needs a complete CI result. Because I use issues aggressively to describe and organize work, the number of runs accumulated faster than I expected.

GitHub includes 3,000 Actions minutes per month with the plans I was using for these private repositories. As of September 2026, GitHub lists the baseline actions_linux runner at $0.006 per minute. My included allowance absorbed those 3,000 minutes, so I did not receive an $18 bill for five days of development. The equivalent paid usage was still useful for understanding the scale of what I was consuming.

3,000 minutes x $0.006/minute = $18.00

If I repeated that five-day development pattern across a 25-workday month, the comparison becomes more interesting:

Read More

50 more posts can be found in the archive.