From ebe49da232b19b55f3aab87b6efcaa847a13f9aa Mon Sep 17 00:00:00 2001 From: Mawi Man <185532606+mawi-officiel@users.noreply.github.com> Date: Sun, 31 Aug 2025 22:16:08 +0100 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20Workflow=20Update=20?= =?UTF-8?q?=E2=80=93=20Windows=20Only=20Support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## GitHub Actions Workflow Update – Windows Only Support The `download.yml` workflow file has been successfully updated! Linux and macOS builds were removed, keeping only the Windows version. Additionally, `permissions` blocks were added to resolve **GITHUB_TOKEN** issues. ### Key Changes: - Added `permissions: contents: read` at the global workflow level - Added `permissions: contents: read` for the first job **download-info** - Added `permissions: {}` for the second job **test-downloads** - Removed all Linux/macOS references from **Display Download Information** - Removed Linux/macOS installation commands - Removed Linux/macOS download test steps - Kept **Windows-only** build across all workflow sections ✅ Now `download.yml` supports **Windows only** and no longer triggers **GITHUB_TOKEN permissions** warnings. --- .github/workflows/download.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index b67d5d4..f6a53dc 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -1,5 +1,8 @@ name: CIN CLI Download Workflow +permissions: + contents: read + on: workflow_dispatch: push: @@ -10,6 +13,8 @@ on: jobs: download-info: runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout repository uses: actions/checkout@v4 @@ -18,24 +23,14 @@ jobs: run: | echo "CIN CLI Download Links:" echo "Windows: https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli.exe" - echo "Linux: https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli_linux" - echo "macOS: https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli_mac_intel" echo "" echo "Installation Commands:" echo "Windows (PowerShell): iwr -useb https://raw.githubusercontent.com/cin-framework/cin-cli/main/install.ps1 | iex" - echo "Linux/macOS: curl -fsSL https://raw.githubusercontent.com/cin-framework/cin-cli/main/install.sh | bash" test-downloads: runs-on: ubuntu-latest + permissions: {} steps: - name: Test Windows Download run: | - curl -I https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli.exe - - - name: Test Linux Download - run: | - curl -I https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli_linux - - - name: Test macOS Download - run: | - curl -I https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli_mac_intel \ No newline at end of file + curl -I https://github.com/cin-framework/cin-cli/releases/download/cin-cli-external-panel/cin-cli.exe \ No newline at end of file