From: Michael Kaply <345868+mkaply@users.noreply.github.com> Date: Mon, 20 Apr 2026 20:53:42 +0000 (-0400) Subject: Update workflow to use allowed commands X-Git-Tag: v7.10 X-Git-Url: https://git.p6c8.net/policy-templates.git/commitdiff_plain/962e848e4068ad57ff89d26ebbac476ca486e85d?hp=--cc Update workflow to use allowed commands --- 962e848e4068ad57ff89d26ebbac476ca486e85d diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8417bcb..ca8e4f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,8 +45,10 @@ jobs: zip -r "policy_templates_${GITHUB_REF_NAME}.zip" docs/ mac/ windows/ linux/ LICENSE - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - name: ${{ github.ref_name }} - draft: true - files: policy_templates_${{ github.ref_name }}.zip + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${GITHUB_REF_NAME}" \ + --title "${GITHUB_REF_NAME}" \ + --draft \ + "policy_templates_${GITHUB_REF_NAME}.zip"