Skip to content

fix: set publish.yml CommonSource build property to stable BED-7878#211

Closed
lrfalslev wants to merge 1 commit into2.Xfrom
lfalslev/bed-7878
Closed

fix: set publish.yml CommonSource build property to stable BED-7878#211
lrfalslev wants to merge 1 commit into2.Xfrom
lfalslev/bed-7878

Conversation

@lrfalslev
Copy link
Copy Markdown
Contributor

@lrfalslev lrfalslev commented Apr 7, 2026

Description

Publishing should build against SHCommon stable version

Motivation and Context

This PR addresses: BED-7878

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

Summary by CodeRabbit

  • Chores
    • Updated CI/CD workflow to use the latest checkout action for improved reliability and security.
    • Adjusted build configuration settings to optimize the release process.

@lrfalslev lrfalslev self-assigned this Apr 7, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 7, 2026

Walkthrough

Updated the CI workflow to upgrade the checkout action from v2 to v6 and modified the dotnet build command to set the CommonLibSource MSBuild property from Release to Stable.

Changes

Cohort / File(s) Summary
CI Workflow Configuration
.github/workflows/publish.yml
Updated actions/checkout from v2 to v6 and changed CommonLibSource MSBuild property from Release to Stable in the dotnet build step.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hop, hop, hooray! The workflow takes flight,
From v2 to v6, the checkout shines bright!
Release becomes Stable—a steady stance,
Our builds now dance the dependency dance! 🎯

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly reflects the main change: updating the publish.yml workflow to set the CommonLibSource property to stable, addressing ticket BED-7878.
Description check ✅ Passed The description covers key sections including motivation, change type, and checklist completion, though the testing details section is incomplete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch lfalslev/bed-7878

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/publish.yml:
- Line 39: The CI uses the wrong MSBuild property name: update the dotnet build
invocation that sets CommonLibSource to instead set CommonSource so the package
selection in Sharphound.csproj (which checks CommonSource) receives the intended
value; locate the dotnet build command (the line with "dotnet build -c ${{
matrix.release.type }} -p:Version=${VERSION:1}") and replace the
-p:CommonLibSource=... with -p:CommonSource=... so the stable/dev selection
works as expected.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 73916b67-f40a-4690-8b7b-8b45de0a36f4

📥 Commits

Reviewing files that changed from the base of the PR and between e35240b and 435958b.

📒 Files selected for processing (1)
  • .github/workflows/publish.yml

run: |
VERSION=${{ github.ref_name }}
dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonLibSource=Release
dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonLibSource=Stable
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Use the correct MSBuild property name (CommonSource)

Line 39 sets CommonLibSource, but package version selection in Sharphound.csproj is based on CommonSource (Sharphound.csproj:17-40). As written, this can leave the build on the default dev path instead of stable.

Proposed fix
-          dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonLibSource=Stable
+          dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonSource=Stable
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonLibSource=Stable
dotnet build -c ${{ matrix.release.type }} -p:Version=${VERSION:1} -p:CommonSource=Stable
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/publish.yml at line 39, The CI uses the wrong MSBuild
property name: update the dotnet build invocation that sets CommonLibSource to
instead set CommonSource so the package selection in Sharphound.csproj (which
checks CommonSource) receives the intended value; locate the dotnet build
command (the line with "dotnet build -c ${{ matrix.release.type }}
-p:Version=${VERSION:1}") and replace the -p:CommonLibSource=... with
-p:CommonSource=... so the stable/dev selection works as expected.

@lrfalslev lrfalslev closed this Apr 7, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant