Skip to content

Commit e4e3fb9

Browse files
authored
checkout with autopush token (#1122)
1 parent 469f76d commit e4e3fb9

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/Nightly_Perf_Env_CI.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
concurrency:
1919
group: performance-environment
2020

21+
permissions: write-all
2122
jobs:
2223
initialize_nightly:
2324
name: initialize perf nightly
@@ -348,6 +349,10 @@ jobs:
348349
steps:
349350
- name: Checkout repository
350351
uses: actions/checkout@v4
352+
with:
353+
repository: redhat-performance/benchmark-runner
354+
fetch-depth: 0
355+
token: ${{ secrets.AUTOPUSH }}
351356
- name: Install dependencies
352357
run: |
353358
python -m pip install --upgrade pip
@@ -420,5 +425,5 @@ jobs:
420425
git add "$GITHUB_WORKSPACE"/benchmark_runner/grafana/perf/jsonnet/main.libsonnet
421426
git commit -m "Update grafana json file [skip ci]"
422427
423-
git pull https://$GITHUB_TOKEN@${{ secrets.GIT_REPOSITORY }} main
424-
git push https://$GITHUB_TOKEN@${{ secrets.GIT_REPOSITORY }} main
428+
git pull origin main
429+
git push origin main

.github/workflows/Perf_Env_Build_Test_CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ concurrency:
1515

1616
permissions: write-all
1717
jobs:
18-
1918
unittest:
2019
# run all python versions, in other jobs run the latest python
2120
name: unittest
@@ -293,7 +292,8 @@ jobs:
293292
matrix:
294293
python-version: [ '3.12' ]
295294
steps:
296-
- uses: actions/checkout@main
295+
- name: Checkout repository
296+
uses: actions/checkout@v4
297297
with:
298298
repository: redhat-performance/benchmark-runner
299299
fetch-depth: 0
@@ -413,6 +413,10 @@ jobs:
413413
steps:
414414
- name: Checkout repository
415415
uses: actions/checkout@v4
416+
with:
417+
repository: redhat-performance/benchmark-runner
418+
fetch-depth: 0
419+
token: ${{ secrets.AUTOPUSH }}
416420
- name: Set up Python ${{ matrix.python-version }}
417421
uses: actions/setup-python@v5
418422
with:
@@ -488,4 +492,4 @@ jobs:
488492
git commit benchmark_runner/grafana/perf/jsonnet/main.libsonnet -m "Update main.libsonnet file [skip ci]"
489493
490494
git pull origin main
491-
git push origin mainF
495+
git push origin main

0 commit comments

Comments
 (0)