Skip to content

Commit f792e91

Browse files
committed
docs(examples): use OIDC token instead of CodSpeed token
1 parent 6a8e2b8 commit f792e91

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

examples/nodejs-typescript-codspeed.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
name: Run benchmarks
1413
codspeed:
14+
name: Run benchmarks
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read # required to checkout the repository
18+
id-token: write # required to authenticate with CodSpeed
1619
steps:
1720
- uses: actions/checkout@v4
1821

@@ -26,4 +29,3 @@ jobs:
2629
with:
2730
mode: instrumentation
2831
run: node -r esbuild-register benches/bench.ts
29-
token: ${{ secrets.CODSPEED_TOKEN }}

examples/python-pytest-codspeed.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
codspeed:
1414
name: Run benchmarks
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read # required to checkout the repository
18+
id-token: write # required to authenticate with CodSpeed
1619
steps:
1720
- uses: actions/checkout@v4
1821

@@ -28,4 +31,3 @@ jobs:
2831
with:
2932
mode: instrumentation
3033
run: pytest tests/ --codspeed
31-
token: ${{ secrets.CODSPEED_TOKEN }}

examples/rust-cargo-codspeed.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
codspeed:
1414
name: Run benchmarks
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read # required to checkout the repository
18+
id-token: write # required to authenticate with CodSpeed
1619
steps:
1720
- uses: actions/checkout@v4
1821

@@ -31,4 +34,3 @@ jobs:
3134
with:
3235
mode: instrumentation
3336
run: cargo codspeed run
34-
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)