Skip to content

security: pin GitHub Actions to reviewed SHAs - #11

Merged
mkarson1997 merged 2 commits into
mainfrom
security/pin-actions-sha
Sep 9, 2026
Merged

mkarson1997 merged 2 commits into
mainfrom
security/pin-actions-sha

Conversation

@mkarson1997

@mkarson1997 mkarson1997 commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • pin checkout in CI and CodeQL workflows to a reviewed immutable commit
  • pin setup-dotnet to the reviewed v4 commit
  • upgrade/pin CodeQL from mutable v3 tags to the reviewed v4 commit
  • preserve the existing Windows/.NET 8 restore, build and C# security-analysis behavior

Why

KARZOUN ERP is a flagship .NET desktop project. Its validation and security-analysis supply chain should not depend on mutable GitHub Action tags.

Merge only after the Windows build, CodeQL and SonarQube Cloud checks are green.

Summary by Sourcery

Harden GitHub Actions supply-chain integrity by replacing mutable workflow tags with reviewed immutable commits.

Enhancements:

  • Pin GitHub Actions used by CI and CodeQL workflows to reviewed immutable commits while retaining the existing .NET 8 build and C# security analysis behavior.

CI:

  • Update checkout, .NET setup, and CodeQL workflow actions to reviewed commit SHAs, including the CodeQL v4 release.

Copilot AI lite review requested due to automatic review settings September 9, 2026 11:52

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @mkarson1997, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 23 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sourcery-ai

sourcery-ai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Replaces mutable GitHub Actions tags with reviewed immutable commit SHAs across CI and CodeQL workflows, upgrades CodeQL actions to v4, and preserves the existing .NET 8 build and C# security-analysis configuration.

File-Level Changes

Change Details Files
Pin CI workflow dependencies to immutable, reviewed GitHub commit SHAs while retaining the existing Windows/.NET 8 validation behavior.
  • Pin checkout to the reviewed commit in CI and CodeQL workflows.
  • Pin setup-dotnet to the reviewed v4 commit.
  • Keep the .NET 8 SDK configuration unchanged.
.github/workflows/ci.yml
.github/workflows/codeql.yml
Upgrade CodeQL workflow actions to the reviewed v4 commit.
  • Pin CodeQL initialization, autobuild, and analysis actions to one reviewed immutable commit.
  • Preserve C# security-extended queries and analysis categorization.
.github/workflows/codeql.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@mkarson1997
mkarson1997 merged commit 3961faf into main Sep 9, 2026
4 checks passed
@mkarson1997
mkarson1997 deleted the security/pin-actions-sha branch September 9, 2026 11:59
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.

2 participants