Skip to content

Commit

Permalink
fix: pre-commit auto update permissions
Browse files Browse the repository at this point in the history
Enable write permissions for auto update
workflow.

Signed-off-by: Maryam Tahhan <[email protected]>
Refs: sustainable-computing-io#1869
  • Loading branch information
maryamtahhan committed Dec 2, 2024
1 parent a447077 commit 3e953a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pre-commit-auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 3e953a4

Please sign in to comment.