Skip to content

Commit 9f62ed8

Browse files
authored
ci: add id-token permissions to ci workflows (#3873)
1 parent 723eea5 commit 9f62ed8

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
name: CI
33

4+
permissions: {}
5+
46
env:
57
CI: true
68

@@ -130,6 +132,8 @@ jobs:
130132
- build
131133
- test
132134
runs-on: ${{ matrix.os }}
135+
permissions:
136+
id-token: write
133137
strategy:
134138
matrix:
135139
node-version: [lts/*]

.github/workflows/nightly-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: nightly release
2+
3+
permissions: {}
4+
25
on:
36
push:
47
branches:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Release
22

3+
permissions:
4+
id-token: write
5+
contents: write
6+
37
# trigger by `git tag` push only via `yarn release`
48
on:
59
push:

.github/workflows/reproduire.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: Reproduire
2+
3+
permissions:
4+
issues: write
5+
26
on:
37
issues:
48
types: [labeled]
59

6-
permissions:
7-
issues: write
810

911
jobs:
1012
reproduire:

0 commit comments

Comments
 (0)