From 84982c1a8ac30719c185fb43e47e6ad89db1961b Mon Sep 17 00:00:00 2001 From: "Vic Perdana (MSFT)" <7114832+vicperdana@users.noreply.github.com> Date: Sat, 18 Apr 2026 13:03:32 +1000 Subject: [PATCH] fix: replace softprops/action-gh-release with gh CLI Replace third-party softprops/action-gh-release action with the built-in GitHub CLI (gh release create) in all three release workflows. This eliminates a third-party dependency that isn't in the Azure org's Actions allowlist, avoiding the need to add an external action. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release-psdocs-azure.yml | 12 +++++++----- .github/workflows/release-psdocs.yml | 12 +++++++----- .github/workflows/release-vscode.yml | 15 ++++++++------- 3 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-psdocs-azure.yml b/.github/workflows/release-psdocs-azure.yml index d22bd8a..1ec234b 100644 --- a/.github/workflows/release-psdocs-azure.yml +++ b/.github/workflows/release-psdocs-azure.yml @@ -49,8 +49,10 @@ jobs: Publish-Module -Path packages/psdocs-azure/out/modules/PSDocs.Azure -NuGetApiKey $env:PSGALLERY_API_KEY - name: Create GitHub Release - uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 - with: - name: PSDocs.Azure v${{ steps.version.outputs.version }} - body_path: packages/psdocs-azure/CHANGELOG.md - generate_release_notes: true + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${{ github.ref_name }}" \ + --title "PSDocs.Azure v${{ steps.version.outputs.version }}" \ + --notes-file packages/psdocs-azure/CHANGELOG.md \ + --generate-notes diff --git a/.github/workflows/release-psdocs.yml b/.github/workflows/release-psdocs.yml index 3b17475..aa3cf94 100644 --- a/.github/workflows/release-psdocs.yml +++ b/.github/workflows/release-psdocs.yml @@ -49,8 +49,10 @@ jobs: Publish-Module -Path packages/psdocs/out/modules/PSDocs -NuGetApiKey $env:PSGALLERY_API_KEY - name: Create GitHub Release - uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 - with: - name: PSDocs v${{ steps.version.outputs.version }} - body_path: packages/psdocs/CHANGELOG.md - generate_release_notes: true + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${{ github.ref_name }}" \ + --title "PSDocs v${{ steps.version.outputs.version }}" \ + --notes-file packages/psdocs/CHANGELOG.md \ + --generate-notes diff --git a/.github/workflows/release-vscode.yml b/.github/workflows/release-vscode.yml index c9541d7..ceca26f 100644 --- a/.github/workflows/release-vscode.yml +++ b/.github/workflows/release-vscode.yml @@ -72,10 +72,11 @@ jobs: npx @vscode/vsce publish --packagePath "${{ steps.vsix.outputs.file }}" --pat "$VSCE_PAT" - name: Create GitHub Release - uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1 - with: - name: VS Code Extension v${{ steps.version.outputs.version }} - body_path: packages/vscode-extension/CHANGELOG.md - generate_release_notes: true - files: | - ${{ steps.vsix.outputs.path }} + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release create "${{ github.ref_name }}" \ + --title "VS Code Extension v${{ steps.version.outputs.version }}" \ + --notes-file packages/vscode-extension/CHANGELOG.md \ + --generate-notes \ + "${{ steps.vsix.outputs.path }}"