From f0fdc13b2091d485c838cd3093827565dbe4f1e3 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Tue, 5 Mar 2024 10:29:23 +0800 Subject: [PATCH] chore: add permissions to deploy job --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 14f4ba63f..b9c068fad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,10 +6,14 @@ on: - cron: "0 2 * * 2" workflow_dispatch: +permissions: + contents: write + jobs: deploy: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - run: gh pr create -B main -H develop --title 'Prod deploy' --fill env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}