From d580e519d60c8fd8662b3fd5ebc5c09ebf7ae44b Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Wed, 8 Oct 2025 10:57:16 +0200 Subject: [PATCH] chore(ci): Fix the used `gh` token --- .github/workflows/propose_osc_changes.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/propose_osc_changes.yml b/.github/workflows/propose_osc_changes.yml index befd8c24..9602670a 100644 --- a/.github/workflows/propose_osc_changes.yml +++ b/.github/workflows/propose_osc_changes.yml @@ -4,6 +4,9 @@ on: pull_request: types: ["closed"] +permissions: + contents: read + jobs: generate: if: github.event.pull_request.merged == true @@ -52,7 +55,7 @@ jobs: - name: Get commit message from merged PR id: commit env: - GH_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }} + GH_TOKEN: ${{ github.token }} run: | PR_NUMBER=${{ github.event.pull_request.number }} COMMIT_MESSAGE=$(gh pr view $PR_NUMBER --json commits --jq '.commits[-1].commit.message')