From 3e953a40ef49377f0124d1e94fafab8f918676de Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Mon, 2 Dec 2024 04:22:30 -0500 Subject: [PATCH] fix: pre-commit auto update permissions Enable write permissions for auto update workflow. Signed-off-by: Maryam Tahhan Refs: #1869 --- .github/workflows/pre-commit-auto-update.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 543ef4ec86..1124e8df2b 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -4,7 +4,9 @@ on: # yamllint disable-line rule:truthy schedule: - cron: 0 0 1 * * -permissions: read-all +permissions: + contents: write + pull-requests: write jobs: auto-update: @@ -26,8 +28,10 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} branch: update/pre-commit-autoupdate + delete-branch: true title: Auto-update pre-commit hooks commit-message: Auto-update pre-commit hooks body: | Update pre-commit hooks to latest version labels: dependencies + draft: false