Upgrade GitHub Actions checkout from v2 to v4

Priority

Parent

Labels

Affects versions

None

Fix versions

None

Sprint

Description

Background:
The current workflow in the distro repository utilizes actions/checkout@v2 with Node.js 12.

Objective:
Upgrade the workflow to leverage actions/checkout@v4 for enhanced performance and security.

Changes to be Made:
Update the workflow configuration to replace actions/checkout@v2 with actions/checkout@v4.

Implementation Steps:

  1. Locate the .github/workflows/build-test.yml file.

  2. Modify the uses: actions/checkout@v2 line to uses: actions/checkout@v4.

  3. Validate the successful execution of the updated workflow without errors.

Rationale:

  • Node.js 16 offers superior performance and enhanced security compared to Node.js 12.

  • The update ensures compatibility with the latest GitHub features.

  • Maintains backward compatibility with existing workflow configurations.

  • Provides customizable Git configuration options.

  • Improves error handling and supports efficient handling of large repositories.

  • Introduces support for shallow cloning.

  • Incorporates feedback from the GitHub community to enhance usability and reliability.

Activity

Show:

Jayasanka Weerasinghe July 24, 2024 at 1:28 PM

bcoder96 July 16, 2024 at 2:22 PM

sure let's streamline the process by reusing the original ticket number

bcoder96 July 16, 2024 at 2:20 PM

bcoder96 July 16, 2024 at 2:19 PM

bcoder96 July 16, 2024 at 2:18 PM

Fixed

Details

Assignee

Reporter

Goals

None

Designated Committer

Created July 4, 2024 at 12:59 PM
Updated July 24, 2024 at 1:29 PM
Resolved July 24, 2024 at 1:29 PM