Skip to content

fix: Pin GitHub Actions to commit SHAs for content gen - #909

Merged
Prajwal-Microsoft merged 1 commit into
devfrom
psl-workflow-update
Aug 19, 2026
Merged

fix: Pin GitHub Actions to commit SHAs for content gen#909
Prajwal-Microsoft merged 1 commit into
devfrom
psl-workflow-update

Conversation

@PrekshithD-Microsoft

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

Copy link
Copy Markdown
Contributor

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

Workflow Consistency

  • This update is applied consistently across all workflow files, including those for deployment, testing, linting, Docker builds, template validation, stale bot automation, artifact uploads, and more, ensuring a uniform and secure approach to action management. (All above references)

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?

  • 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

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL769937195% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
426 0 💤 0 ❌ 0 🔥 12.453s ⏱️

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 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> with uses: <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.

Copilot AI review requested due to automatic review settings August 18, 2026 07:00

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

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_dispatch and widening push/pull_request branch filters (e.g. adding psl-workflow-update and dev). 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:

Copilot AI review requested due to automatic review settings August 18, 2026 07:06

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

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/codeql.yml
@Prajwal-Microsoft
Prajwal-Microsoft merged commit 804f6ce into dev Aug 19, 2026
15 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