From d72d7918e2520bbfc2c17f9040ab9cd9d3331c20 Mon Sep 17 00:00:00 2001 From: Raman Aktsisiuk Date: Sat, 10 Aug 2024 15:05:50 +0200 Subject: [PATCH] ci: add write permission --- .github/workflows/lint.yml | 4 +++- .github/workflows/preview.yml | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 40f2f6141..4900038f5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,8 @@ name: Lint on: workflow_call +permissions: write-all + jobs: prettier: timeout-minutes: 30 @@ -37,4 +39,4 @@ jobs: git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' git commit -am "chore: run prettier" - git push https://github.com/${{ github.repository }}.git HEAD:${{ github.event.pull_request.head.ref }} + git push origin HEAD:${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4ed379631..f632fbc7c 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,7 +1,6 @@ name: preview -on: - pull_request +on: pull_request jobs: lint: