Skip to content

Commit 9721d08

Browse files
authored
switch to default github token for ci visibility benchmark (#5639)
1 parent b1727dd commit 9721d08

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci-visibility-performance.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,20 @@ jobs:
1818
ci-visibility-tests:
1919
name: CI Visibility performance and correctness tests
2020
runs-on: ubuntu-latest
21-
env:
22-
ROBOT_CI_GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.ROBOT_CI_GITHUB_PERSONAL_ACCESS_TOKEN }}
2321
steps:
22+
- uses: actions/create-github-app-token@db3cdf40984fe6fd25ae19ac2bf2f4886ae8d959 # v2.0.5
23+
id: app-token
24+
with:
25+
app-id: ${{ vars.APP_ID }}
26+
private-key: ${{ secrets.PRIVATE_KEY }}
27+
repositories: |
28+
dd-trace-js
29+
test-environment
2430
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
with:
32+
token: ${{ steps.app-token.outputs.token }}
2533
- uses: ./.github/actions/node/oldest-maintenance-lts
2634
- name: CI Visibility Performance Overhead Test
2735
run: yarn bench:e2e:ci-visibility
36+
env:
37+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

benchmark/e2e-ci/benchmark-run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getBranchUnderTest () {
2020
const getCommonHeaders = () => {
2121
return {
2222
'Content-Type': 'application/json',
23-
authorization: `Bearer ${process.env.ROBOT_CI_GITHUB_PERSONAL_ACCESS_TOKEN}`,
23+
authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
2424
Accept: 'application/vnd.github.v3+json',
2525
'user-agent': 'dd-trace benchmark tests'
2626
}

0 commit comments

Comments
 (0)