Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Build (${{ matrix.release.type }})

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Build
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.


- name: Zip
run: 7z a -tzip -mx9 SharpHound_${{ github.ref_name }}${{ matrix.release.suffix }}_windows_x86.zip $PWD/bin/${{ matrix.release.type }}/net472/*
Expand Down
Loading