From 8a1ea7a8f159b1cae7b584bf5c87a63e5519c632 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Mon, 15 Sep 2025 21:48:28 -0500 Subject: [PATCH 1/2] feat: add workflow for repository dispatch deployment --- .github/workflows/workflow-repository.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/workflow-repository.yml diff --git a/.github/workflows/workflow-repository.yml b/.github/workflows/workflow-repository.yml new file mode 100644 index 0000000..f18dec9 --- /dev/null +++ b/.github/workflows/workflow-repository.yml @@ -0,0 +1,16 @@ +name: Workflow Repository Dispatch +on: + repository_dispatch: + types: [deploy] +jobs: + deploy-app: + runs-on: ubuntu-latest + steps: + - name: Deploy Application + run: | + echo "Deploying application..." + echo "payload: ${{ github.event.client_payload }}" + echo "action: ${{ github.event.action }}" + echo "repository: ${{ github.event.repository }}" + echo "sender: ${{ github.event.sender }}" + echo "branch: ${{ github.event.branch }}" From 77b3bad511a99cbad1deeaf29e366dee49e2b6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20D=C3=ADaz?= <164126437+christianncode@users.noreply.github.com> Date: Mon, 15 Sep 2025 22:33:08 -0500 Subject: [PATCH 2/2] Potential fix for code scanning alert no. 13: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/workflow-repository.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/workflow-repository.yml b/.github/workflows/workflow-repository.yml index f18dec9..c1f3085 100644 --- a/.github/workflows/workflow-repository.yml +++ b/.github/workflows/workflow-repository.yml @@ -1,4 +1,6 @@ name: Workflow Repository Dispatch +permissions: + contents: read on: repository_dispatch: types: [deploy]