Skip to content

Update main.yml to explain use of SHA tags in workflow #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2025

Conversation

amshamah419
Copy link
Collaborator

Status

Ready

Related Issues

fixes: internal discussion FYI @kobymeir @sapirshuker

Description

This update pins the GitHub Action by commit SHA instead of a version tag. This approach ensures deterministic builds by preventing issues caused by tag changes or retagging in the upstream repository.

How to Bump the Version

To update to a newer version of the Action:

  • Go to the Action’s repository on GitHub (e.g., actions/checkout).
  • Navigate to the Commits tab.
  • Copy the SHA of the desired commit.
  • Replace the existing SHA in the workflow file (e.g., uses: actions/checkout@).
  • Commit and push your changes.

Using a SHA ensures you always get the exact same code. You can update the SHA at any time to pull in changes as needed.

Must have

  • Unit Test or Example Code
  • Changelog entry - Infra related, not necessary at this time

@amshamah419 amshamah419 self-assigned this May 8, 2025
@amshamah419 amshamah419 merged commit 15f61de into master May 11, 2025
9 checks passed
@amshamah419 amshamah419 deleted the amshamah419-patch-2 branch May 11, 2025 09:18
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.

2 participants