mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
move workflow permissions to job level
This commit is contained in:
parent
9ed1fd18d2
commit
5da9d9a4c8
1 changed files with 3 additions and 4 deletions
7
.github/workflows/pre-commit.yml
vendored
7
.github/workflows/pre-commit.yml
vendored
|
|
@ -1,9 +1,5 @@
|
|||
name: Pre-commit Checks
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
|
@ -11,6 +7,9 @@ on:
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue