Skip to content

fix: pin GitHub Actions to commit SHAs - #493

Merged
Prajwal-Microsoft merged 1 commit into
mainfrom
psl-workflows-update
Aug 27, 2026
Merged

fix: pin GitHub Actions to commit SHAs#493
Prajwal-Microsoft merged 1 commit into
mainfrom
psl-workflows-update

Conversation

@PrekshithD-Microsoft

@PrekshithD-Microsoft PrekshithD-Microsoft commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

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:

Affected Workflow Areas:

  • The updates cover a wide range of workflows, including build, deployment, Docker image creation, Azure login, Python setup, stale bot, artifact upload, and various validation and test automation workflows. (see references above)

Consistency Across the Repository:

  • All workflows now consistently use SHA-pinned actions, reducing the risk of inconsistent behavior between jobs or environments. (see references above)## Purpose
  • ...

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@github-actions

Copy link
Copy Markdown
Tests Skipped Failures Errors Time
1 0 💤 0 ❌ 1 🔥 4.958s ⏱️

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@Prajwal-Microsoft
Prajwal-Microsoft merged commit 7592ea9 into main Aug 27, 2026
16 of 18 checks passed
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