Skip to content

DEVOPS-7261 - security: pin GitHub Actions to commit SHAs#2051

Merged
abacchilb merged 1 commit intodevelopfrom
cursor/actions-version-shas-f210
Mar 23, 2026
Merged

DEVOPS-7261 - security: pin GitHub Actions to commit SHAs#2051
abacchilb merged 1 commit intodevelopfrom
cursor/actions-version-shas-f210

Conversation

@abacchilb
Copy link
Contributor

@abacchilb abacchilb commented Mar 23, 2026

https://labelbox.atlassian.net/browse/DEVOPS-7261

Description

This PR pins all open-source GitHub Actions to specific commit SHAs instead of version tags to improve security and ensure immutable action versions. This follows GitHub security best practices to prevent potential supply chain attacks.

Changes Made

All GitHub Actions in workflow files have been updated to use commit SHAs with inline comments preserving version information:

Actions Updated

  • actions/checkout@v434e11487... (v4)
  • actions/checkout@v2ee0669bd... (v2)
  • actions/upload-artifact@v4ea165f8d... (v4)
  • actions/download-artifact@v4d3f86a10... (v4)
  • dorny/paths-filter@v3de90cc6f... (v3)
  • eifinger/setup-rye@v2787604a4... (v2)
  • pypa/gh-action-pypi-publish@release/v1ed0c5393... (release/v1)
  • docker/setup-buildx-action@v38d2750c6... (v3)
  • docker/login-action@v3c94ce9fb... (v3)
  • docker/build-push-action@v5ca052bb5... (v5)
  • ad-m/github-push-action@master4cc74773... (master)
  • trufflesecurity/trufflehog@main6c64db94... (main)
  • slsa-framework/slsa-github-generator@v2.0.05a775b36... (v2.0.0)

Modified Files

  • .github/workflows/notebooks.yml
  • .github/workflows/publish.yml
  • .github/workflows/secrets_scan.yml
  • .github/workflows/python-package-develop.yml
  • .github/workflows/lbox-publish.yml
  • .github/workflows/python-package-shared.yml
  • .github/workflows/lbox-develop.yml

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Document change (fix typo or modifying any markdown files, code comments or anything in the examples folder only)

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you provided a description?
  • Are your changes properly formatted?

Changes to Core Features

  • Have you written new tests for your core changes, as applicable? (N/A - workflow changes only)
  • Have you successfully run tests with your changes locally? (N/A - workflow changes only)
  • Have you updated any code comments, as applicable? (Added inline comments with version tags)

Slack Thread

Open in Web Open in Cursor 

- Pin all open-source GitHub Actions to specific commit SHAs
- Add inline comments to preserve version information
- Affected actions:
  - actions/checkout@v4 -> 34e11487
  - actions/checkout@v2 -> ee0669bd
  - actions/upload-artifact@v4 -> ea165f8d
  - actions/download-artifact@v4 -> d3f86a10
  - dorny/paths-filter@v3 -> de90cc6f
  - eifinger/setup-rye@v2 -> 787604a4
  - pypa/gh-action-pypi-publish@release/v1 -> ed0c5393
  - docker/setup-buildx-action@v3 -> 8d2750c6
  - docker/login-action@v3 -> c94ce9fb
  - docker/build-push-action@v5 -> ca052bb5
  - ad-m/github-push-action@master -> 4cc74773
  - trufflesecurity/trufflehog@main -> 6c64db94
  - slsa-framework/slsa-github-generator@v2.0.0 -> 5a775b36

This improves security by ensuring immutable action versions.

Co-authored-by: Aaron Bacchi <abacchilb@users.noreply.github.com>
@abacchilb abacchilb marked this pull request as ready for review March 23, 2026 16:47
@abacchilb abacchilb requested a review from a team as a code owner March 23, 2026 16:47
@abacchilb abacchilb changed the title security: pin GitHub Actions to commit SHAs DEVOPS-7261 - security: pin GitHub Actions to commit SHAs Mar 23, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@abacchilb abacchilb merged commit b1370db into develop Mar 23, 2026
12 checks passed
@abacchilb abacchilb deleted the cursor/actions-version-shas-f210 branch March 23, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants