Skip to content

Commit 80862e9

Browse files
chore(ci): use OIDC for NPM publishing (#641)
1 parent b5f0446 commit 80862e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+120
-2077
lines changed

.github/workflows/const.yml

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

.github/workflows/depsynky.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./depsynky
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
depsynky:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './depsynky'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/entities.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./entities
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
entities:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './entities'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/es-node.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./es-node
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
es-node:
2327
runs-on: ubuntu-latest
@@ -39,4 +43,3 @@ jobs:
3943
uses: botpress/gh-actions/publish-if-not-exists@master
4044
with:
4145
path: './es-node'
42-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/genenv.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./genenv
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
genenv:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './genenv'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/jex.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./jex
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
jex:
2327
runs-on: ubuntu-latest
@@ -41,4 +45,3 @@ jobs:
4145
uses: botpress/gh-actions/publish-if-not-exists@master
4246
with:
4347
path: './jex'
44-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/log4bot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./log4bot
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
log4bot:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './log4bot'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/opapi.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./opapi
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
opapi:
2327
runs-on: ubuntu-latest
@@ -41,4 +45,3 @@ jobs:
4145
uses: botpress/gh-actions/publish-if-not-exists@master
4246
with:
4347
path: './opapi'
44-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/promex.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./promex
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
promex:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './promex'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

.github/workflows/ptb-schema.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ defaults:
1818
run:
1919
working-directory: ./ptb-schema
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
2125
jobs:
2226
ptb-schema:
2327
runs-on: ubuntu-latest
@@ -40,4 +44,3 @@ jobs:
4044
uses: botpress/gh-actions/publish-if-not-exists@master
4145
with:
4246
path: './ptb-schema'
43-
token: '${{ secrets.NPM_ACCESS_TOKEN }}'

0 commit comments

Comments
 (0)