r/devops • u/amitmerchant • 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?
View all comments
1
u/josejulianariza 20d ago
Pinning actions by commit SHA instead of using floating tags (like u/v3) is the first step to avoid a supply chain attack in the pipeline. It's something almost no one does until it happens to them.
On your question, what usually works is combining that with ephemeral runners. If a third-party action turns out to be compromised, the attacker won't find anything because the environment is destroyed when the job finishes.
And for credentials, the golden rule is not leaving static tokens (like AWS keys) in the runner's variables. Using federated authentication (OIDC) to generate short-lived tokens saves a lot of headaches. Great article you shared.