Skip to content

Commit c8cc151

Browse files
better way to address token
1 parent 3cf06fa commit c8cc151

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/style.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
permissions:
8+
contents: read
9+
statuses: write
10+
711
jobs:
812

913
style:
1014
runs-on: ubuntu-22.04
11-
permissions:
12-
contents: read
13-
statuses: write
1415
env:
15-
GH_TOKEN: ${{ secrets.token }}
16+
GH_TOKEN: ${{ github.token }}
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:
@@ -34,11 +35,8 @@ jobs:
3435

3536
typing:
3637
runs-on: ubuntu-22.04
37-
permissions:
38-
contents: read
39-
statuses: write
4038
env:
41-
GH_TOKEN: ${{ secrets.token }}
39+
GH_TOKEN: ${{ github.token }}
4240
steps:
4341
- uses: actions/setup-python@v5
4442
with:

0 commit comments

Comments
 (0)