Skip to content

DR:Using Dependabot to update GHA

Suman2795 edited this page Jan 20, 2023 · 5 revisions

This is a record in the Decision Records on Solutions Adopted.

Issue

Problem Statement

   Updating out-of-date dependencies of GHA using Github Dependabot.

Potential Solution

Our GHA are not latest version and hence we need to be notified when dependencies are out-of-date so that they don't break unexpectedly. The issue #2065 was created to check for updates to GHA at timed interval i.e. one week.

But now Github Dependabot was updated to give out alerts for vulnerable GHA to stay up-to-date and fix security vulnerabilities in the actions workflow. It is powered by Github Advisory Database which will create an advisory to document the vulnerability when it is encountered in an action, triggering an alert for the impacted repository.

Pull requests raised by Dependabot to update dependencies is in accordance with how the repository is configured i.e., version updates and/or security updates and can be managed as other PRs but with extra commands which can be referred to here.

Feasibility Determination

Advantages for using GHA Dependabot:

  • As Github Advisory Database powers Dependabot alerts for the impacted GH repository, so no additional action needs to be performed after Dependabot is enabled which has been done .
  • Dependabot alert makes it easier to stay up-to-date and can be managed similar to other PRs ,thus eliminating the need for issue #2065.

Notes: We need to configure a dependabot.yml file to have dependabot create pull requests. Link to how to configure the file. The issue to create the file

Related Links:


Clone this wiki locally