fix: Pin GitHub Actions to commit SHAs for content gen - #909
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request hardens the repository’s CI/CD posture by updating GitHub Actions workflow dependencies to reference exact commit SHAs (instead of mutable version tags), reducing supply-chain risk while keeping workflow behavior the same.
Changes:
- Replaced
uses: <action>@<tag>withuses: <action>@<commit-sha>across workflow steps. - Preserved the intended major/minor action versions via inline comments (e.g.,
# v6) for readability/auditing.
Reviewed changes
Copilot reviewed 18 out of 18 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 actions to commit SHAs. |
| .github/workflows/test.yml | Pins checkout/setup-python actions to commit SHAs. |
| .github/workflows/test-automation-v2.yml | Pins checkout/setup-python/azure-login/upload-artifact actions to commit SHAs. |
| .github/workflows/telemetry-template-check.yml | Pins checkout action to a commit SHA. |
| .github/workflows/stale-bot.yml | Pins stale/checkout/upload-artifact actions to commit SHAs. |
| .github/workflows/scheduled-Dependabot-PRs-Auto-Merge.yml | Pins checkout action to a commit SHA. |
| .github/workflows/pylint.yml | Pins checkout/setup-python actions to commit SHAs. |
| .github/workflows/pr-title-checker.yml | Pins semantic PR title checker action to a commit SHA. |
| .github/workflows/job-docker-build.yml | Pins checkout/docker buildx/azure login/docker build-push actions to commit SHAs. |
| .github/workflows/job-deploy.yml | Pins checkout/azure login actions to commit SHAs. |
| .github/workflows/job-deploy-windows.yml | Pins checkout/setup-azd/azure login actions to commit SHAs. |
| .github/workflows/job-deploy-linux.yml | Pins checkout/setup-azd/azure login actions to commit SHAs. |
| .github/workflows/job-cleanup-deployment.yml | Pins azure login action to a commit SHA. |
| .github/workflows/docker-build.yml | Pins checkout/docker buildx/azure login/docker build-push actions to commit SHAs. |
| .github/workflows/codeql.yml | Pins checkout/codeql init/codeql analyze actions to commit SHAs. |
| .github/workflows/broken-links-checker.yml | Pins checkout/changed-files/lychee actions to commit SHAs. |
| .github/workflows/azure-dev.yml | Pins checkout/setup-azd/azure login actions to commit SHAs. |
| .github/workflows/azd-template-validation.yml | Pins checkout/template-validation action to commit SHAs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.
Suppressed comments (1)
.github/workflows/codeql.yml:7
- This PR is described as only pinning action versions, but this workflow also changes trigger behavior by adding
workflow_dispatchand wideningpush/pull_requestbranch filters (e.g. addingpsl-workflow-updateanddev). That is a functional CI behavior change and should either be reverted or explicitly called out/justified in the PR description.
on:
workflow_dispatch:
push:
branches: [ "main", "psl-workflow-update" ]
paths:
PrekshithD-Microsoft
force-pushed
the
psl-workflow-update
branch
from
August 18, 2026 07:06
d5c3011 to
17753c7
Compare
Prajwal-Microsoft
approved these changes
Aug 19, 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 in the repository's workflow files to use exact commit SHAs instead of version tags. This change improves security by ensuring that the workflows always use the intended, reviewed versions of third-party actions, protecting against potential supply chain attacks or unexpected changes in upstream actions.
The most important changes include:
Security and Dependency Management
uses:references for GitHub Actions in workflow files (such asactions/checkout,actions/setup-python,azure/login,docker/build-push-action, and others) have been updated to pin to specific commit SHAs instead of relying on version tags. This ensures that the exact reviewed version of each action is used in CI/CD pipelines, reducing the risk of supply chain attacks. [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]Workflow Consistency
No other functional or logic changes are introduced; this PR is focused solely on improving the security and reliability of the CI/CD workflows by pinning all action dependencies.## Purpose
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information