Skip to content

Commit

Permalink
move workflow permissions to job level
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoepf committed Feb 6, 2025
1 parent 9ed1fd1 commit 5da9d9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Pre-commit Checks

permissions:
contents: read
pull-requests: write

on:
pull_request:
branches: [ main ]

jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # This is needed for commenting on PRs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down

0 comments on commit 5da9d9a

Please sign in to comment.