r/devops • • 29d ago

Discussion GitHub Actions now supports dependency lockfiles

We often talk about securing the software supply chain in terms of application dependencies. For instance, pinning package versions, maintaining lockfiles, and auditing third-party libraries.

But what about the code that runs our CI/CD pipelines?

GitHub Actions workflows can execute third-party actions, and the security of those dependencies matters just as much when building and deploying software.

The introduction of workflow dependency lockfiles is an interesting step towards making CI/CD workflows more reproducible and secure.

I wrote about this recently, exploring why workflow lockfiles matter and how they fit into the broader software supply-chain security picture.

Read the article: https://amitmerchant.com/ci-pipeline-lockfile/

Curious how others are approaching dependency security in their CI/CD pipelines. Are you already pinning your actions and enforcing similar controls?

78 Upvotes

14 comments sorted by

View all comments

2

u/pdfops 29d ago

This mostly helps with transitive deps. Pinning the top-level action to a SHA already stopped the "someone force-pushed a new v4 tag" attack, but composite actions calling other actions underneath were invisible, you had no record of what those resolved to. A lockfile actually freezes that whole chain instead of just the first hop. Still want Dependabot or Renovate watching it so pins don't go stale for a year.