Skip to content

Commit 30ae351

Browse files
authored
chores: gh actions least privilege (#1013)
1 parent 345b99e commit 30ae351

5 files changed

Lines changed: 10 additions & 55 deletions

File tree

.github/workflows/backport.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ on:
55
- closed
66
- labeled
77

8-
permissions:
9-
pull-requests: write
10-
contents: write
11-
128
jobs:
139
backport:
10+
permissions:
11+
pull-requests: write
12+
contents: write
1413
runs-on: ubuntu-latest
1514
if: >
1615
github.event.pull_request.merged
@@ -21,6 +20,7 @@ jobs:
2120
&& contains(github.event.label.name, 'backport')
2221
)
2322
)
23+
2424
name: Backport
2525
steps:
2626
- name: Backport

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66
types:
77
- labeled
88

9-
permissions:
10-
contents: write
11-
129
jobs:
1310
benchmark-pr:
11+
permissions:
12+
contents: write
1413
runs-on: ubuntu-latest
1514
if: >
1615
(
@@ -56,6 +55,8 @@ jobs:
5655
echo 'EOF' >> $GITHUB_OUTPUT
5756
5857
benchmark-current:
58+
permissions:
59+
contents: write
5960
runs-on: ubuntu-latest
6061
needs: [benchmark-pr]
6162
name: Benchmark Current Version
@@ -102,6 +103,7 @@ jobs:
102103
runs-on: ubuntu-latest
103104
permissions:
104105
pull-requests: write
106+
contents: read
105107
steps:
106108
- name: Comment PR
107109
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1

.github/workflows/create-release-pr.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules
44
dist
55
lcov.info
6+
.worktrees

0 commit comments

Comments
 (0)