Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
This repository was archived by the owner on May 24, 2026. It is now read-only.

security: GitHub Actions not pinned to full SHA — supply chain risk #21

Open

Description

@SimplicityGuy

Summary

The GitHub Actions workflow uses major-version pins (e.g., @v6) for third-party actions. Major version tags are mutable — a compromised action maintainer could push malicious code under the same tag and it would run automatically in CI.

Location

.github/workflows/build.yml — multiple uses: lines, e.g.:

uses: actions/checkout@v6

Risk

  • Supply chain attack via a compromised action maintainer
  • Arbitrary code execution in the CI/CD environment, potentially leaking secrets or publishing a backdoored image

Recommended Fix

Pin all third-party actions to a full commit SHA:

# Before
uses: actions/checkout@v6

# After
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  # v6.2.0

SHA pins can be maintained automatically by Dependabot with update-type: pin or tools like pin-github-action.

Severity

Low / Info

Activity

  1. added
    security
    on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions