Skip to content

[release/v7.6.1] Bump github/codeql-action from 4.34.1 to 4.35.1#27184

Merged
adityapatwardhan merged 2 commits intoPowerShell:release/v7.6.1from
adityapatwardhan:backport/release/v7.6.1/27120-79526d246
Apr 3, 2026
Merged

[release/v7.6.1] Bump github/codeql-action from 4.34.1 to 4.35.1#27184
adityapatwardhan merged 2 commits intoPowerShell:release/v7.6.1from
adityapatwardhan:backport/release/v7.6.1/27120-79526d246

Conversation

@adityapatwardhan
Copy link
Copy Markdown
Member

Backport of #27120 to release/v7.6.1

Triggered by @adityapatwardhan on behalf of @app/dependabot

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Updates the pinned github/codeql-action references used by CodeQL and scorecards workflows on release/v7.6.1 so the release branch receives the upstream 4.35.1 fix.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Cherry-picked PR #27120 onto release/v7.6.1 and resolved the workflow pin conflicts by applying the updated CodeQL action SHA to the existing release-branch workflow definitions. Validation was limited to reviewing the resulting YAML changes; no local GitHub Actions execution is available from this environment.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

The change only updates pinned GitHub Actions workflow dependencies, but it affects repository security-analysis workflows that run in CI. The scope is small and matches the original upstream dependency bump.

Merge Conflicts

Conflicts occurred because release/v7.6.1 had different pinned github/codeql-action SHAs in .github/workflows/analyze-reusable.yml and .github/workflows/scorecards.yml. Resolved by keeping the release-branch workflow structure and updating the pinned CodeQL action references to the SHA from PR #27120.

@adityapatwardhan adityapatwardhan added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Apr 2, 2026
@adityapatwardhan adityapatwardhan requested review from a team and jshigetomi as code owners April 2, 2026 23:58
Copilot AI review requested due to automatic review settings April 2, 2026 23:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Backport that updates the pinned github/codeql-action commit SHA used by the release/v7.6.1 security analysis workflows (CodeQL reusable analysis and Scorecards SARIF upload).

Changes:

  • Updated the pinned SHA for github/codeql-action/init and github/codeql-action/analyze in the reusable CodeQL workflow.
  • Updated the pinned SHA for github/codeql-action/upload-sarif in the Scorecards workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/analyze-reusable.yml Bumps the pinned CodeQL init/analyze action SHA used by the reusable CodeQL workflow.
.github/workflows/scorecards.yml Bumps the pinned CodeQL upload-sarif action SHA used to upload Scorecards SARIF results.

Comment on lines 49 to 51
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v3.29.5
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
with:
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

The inline version annotation still says v3.29.5, but this PR is described as bumping github/codeql-action to 4.35.1. Please update the trailing comment to reflect the actual CodeQL Action version corresponding to this pinned SHA so the workflow pin is unambiguous.

Copilot uses AI. Check for mistakes.
Comment on lines 68 to +70
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v3.29.5
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

The pinned SHA was updated, but the trailing version comment still says v3.29.5 while the PR intent/title is a bump to 4.35.1. Please update the comment to match the actual version for this SHA to avoid confusion during future dependency bumps/audits.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/analyze-reusable.yml Outdated
Comment on lines +76 to +77
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v3.29.5
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5 No newline at end of file
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

Same as the init step above: the SHA pin changed but the trailing comment still indicates v3.29.5 even though the PR is a bump to 4.35.1. Please align the inline version annotation with the actual version for this pinned commit.

Copilot uses AI. Check for mistakes.
@adityapatwardhan adityapatwardhan enabled auto-merge (squash) April 3, 2026 16:38
@adityapatwardhan adityapatwardhan merged commit c818284 into PowerShell:release/v7.6.1 Apr 3, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants