From a8898320542d3ee98881533e43b45683be5d0516 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Fri, 31 Oct 2025 18:17:41 +0200 Subject: [PATCH 1/2] feat(cd): adding dispatch workflow for cd --- .github/workflows/deploy-tigger.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/deploy-tigger.yml diff --git a/.github/workflows/deploy-tigger.yml b/.github/workflows/deploy-tigger.yml new file mode 100644 index 0000000000..394ac30f7d --- /dev/null +++ b/.github/workflows/deploy-tigger.yml @@ -0,0 +1,33 @@ +name: Trigger Deployment Workflow + +on: + push: + branches: + - vnext + - master + workflow_dispatch: + inputs: + branch: + description: 'Input a branch name (e.g., vnext)' + required: true + +jobs: + trigger: + runs-on: ubuntu-latest + + steps: + - name: Trigger Workflow in Another Repository + run: | + # Set the required variables + repo_owner="IgniteUI" + repo_name="igniteui-actions" + event_type="igniteui-angular-samples-cd" + branch="${{ github.ref_name }}" + + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.PAT }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ + -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"branch\": \"$branch\", \"unit\": false, \"integration\": true}}" \ No newline at end of file From 7d858640edf310729036eb5e1ed2f6b18a1c7e88 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Fri, 31 Oct 2025 18:25:44 +0200 Subject: [PATCH 2/2] Potential fix for code scanning alert no. 7: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/deploy-tigger.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-tigger.yml b/.github/workflows/deploy-tigger.yml index 394ac30f7d..776f5b35ad 100644 --- a/.github/workflows/deploy-tigger.yml +++ b/.github/workflows/deploy-tigger.yml @@ -11,6 +11,8 @@ on: description: 'Input a branch name (e.g., vnext)' required: true +permissions: + contents: read jobs: trigger: runs-on: ubuntu-latest