From 935c09569e11f36e60994b74e543d37853edafbf Mon Sep 17 00:00:00 2001 From: Katerina Vankova Date: Thu, 7 Nov 2024 19:26:48 +0100 Subject: [PATCH] ci: change yaml --- .github/workflows/code-embedder.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-embedder.yml b/.github/workflows/code-embedder.yml index 2d3f080..b8d4be2 100644 --- a/.github/workflows/code-embedder.yml +++ b/.github/workflows/code-embedder.yml @@ -1,8 +1,10 @@ name: Code Embedder on: - pull_request_target: - types: [opened, synchronize] + pull_request + +permissions: + contents: write jobs: code_embedder: @@ -12,10 +14,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Run code embedder uses: kvankova/code-embedder@v0.5.1 env: - GITHUB_TOKEN: ${{ secrets.CODE_EMBEDDER }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}