fix: pin GitHub Actions to commit SHAs - #493
Merged
Merged
Conversation
|
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request hardens the repository’s GitHub Actions workflows by replacing floating action version tags with commit-SHA pins, improving supply-chain security and making CI/CD behavior deterministic across runs.
Changes:
- Pinned common actions (e.g.,
actions/checkout,actions/setup-python,actions/upload-artifact,azure/login, Docker actions) to specific commit SHAs. - Added inline version comments (e.g.,
# v6,# v3) alongside pinned SHAs to preserve readability and upgrade intent. - Applied the pinning consistently across build, test, validation, deployment, and automation workflows.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/validate-bicep-params.yml | Pins checkout/setup-python/upload-artifact to SHAs for deterministic bicep param validation runs. |
| .github/workflows/test.yml | Pins checkout/setup-python to SHAs for stable test workflow execution. |
| .github/workflows/test-automation.yml | Pins checkout/setup-python/azure-login/upload-artifact to SHAs for repeatable automation runs. |
| .github/workflows/test-automation-v2.yml | Pins checkout/setup-python/azure-login/upload-artifact to SHAs for repeatable automation v2 runs. |
| .github/workflows/telemetry-template-check.yml | Pins checkout to a SHA to stabilize template checks. |
| .github/workflows/stale-bot.yml | Pins stale/checkout/upload-artifact to SHAs to reduce supply-chain risk in maintenance automation. |
| .github/workflows/scheduled-Dependabot-PRs-Auto-Merge.yml | Pins checkout to a SHA for scheduled Dependabot auto-merge workflow determinism. |
| .github/workflows/pylint.yml | Pins checkout/setup-python to SHAs for consistent lint runs. |
| .github/workflows/pr-title-checker.yml | Pins semantic PR title checker action to a SHA for deterministic PR policy checks. |
| .github/workflows/job-docker-build.yml | Pins checkout/docker actions/azure-login to SHAs for consistent container build/push jobs. |
| .github/workflows/job-deploy.yml | Pins checkout/azure-login to SHAs for deterministic deployment jobs. |
| .github/workflows/job-deploy-windows.yml | Pins checkout/setup-azd/azure-login to SHAs for stable Windows deployment jobs. |
| .github/workflows/job-deploy-linux.yml | Pins checkout/setup-azd/azure-login to SHAs for stable Linux deployment jobs. |
| .github/workflows/job-cleanup-deployment.yml | Pins azure-login to a SHA for deterministic cleanup operations. |
| .github/workflows/deploy.yml | Pins checkout/azure-login to SHAs across deployment jobs for consistent auth + execution. |
| .github/workflows/build-docker.yml | Pins checkout/azure-login/docker actions to SHAs for deterministic Docker builds. |
| .github/workflows/broken-links-checker.yml | Pins checkout/lychee-action to SHAs to stabilize link-check automation. |
| .github/workflows/azure-dev.yml | Pins checkout/setup-azd/azure-login to SHAs for deterministic dev environment workflow runs. |
| .github/workflows/azd-template-validation.yml | Pins checkout/template-validation-action to SHAs for consistent azd template validation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
4 tasks
Prajwal-Microsoft
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates all GitHub Actions used in the repository's workflow files to reference specific commit SHAs instead of version tags. This change improves security and reliability by ensuring that workflows always use the exact, reviewed version of each action, preventing unexpected changes from upstream updates.
The most important changes are:
Security and Reliability Improvements:
actions/checkout,actions/setup-python,azure/login,docker/build-push-action, and others) are now pinned to specific commit SHAs rather than floating version tags. This prevents accidental or malicious changes from upstream action updates. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33]Affected Workflow Areas:
Consistency Across the Repository:
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information