|
16 | 16 | if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')" |
17 | 17 |
|
18 | 18 | steps: |
| 19 | + - name: Generate GitHub App token |
| 20 | + id: generate_token |
| 21 | + uses: actions/create-github-app-token@v1 |
| 22 | + with: |
| 23 | + app-id: ${{ secrets.APP_ID }} |
| 24 | + private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 25 | + |
19 | 26 | - name: Checkout kernel source |
20 | 27 | uses: actions/checkout@v4 |
21 | 28 | with: |
|
28 | 35 | repository: ctrliq/kernel-container-build |
29 | 36 | ref: automated-testing-v1 |
30 | 37 | path: kernel-container-build |
31 | | - token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} |
| 38 | + token: ${{ steps.generate_token.outputs.token }} |
32 | 39 |
|
33 | 40 | # Host deps + KVM / FUSE validation |
34 | 41 | - name: Install host dependencies & verify KVM/FUSE |
@@ -92,13 +99,20 @@ jobs: |
92 | 99 | needs: build |
93 | 100 |
|
94 | 101 | steps: |
| 102 | + - name: Generate GitHub App token |
| 103 | + id: generate_token |
| 104 | + uses: actions/create-github-app-token@v1 |
| 105 | + with: |
| 106 | + app-id: ${{ secrets.APP_ID }} |
| 107 | + private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 108 | + |
95 | 109 | - name: Checkout kernel-container-build (test branch) |
96 | 110 | uses: actions/checkout@v4 |
97 | 111 | with: |
98 | 112 | repository: ctrliq/kernel-container-build |
99 | 113 | ref: automated-testing-v1 |
100 | 114 | path: kernel-container-build |
101 | | - token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} |
| 115 | + token: ${{ steps.generate_token.outputs.token }} |
102 | 116 |
|
103 | 117 | - name: Install host dependencies |
104 | 118 | run: | |
@@ -146,13 +160,20 @@ jobs: |
146 | 160 | needs: boot |
147 | 161 |
|
148 | 162 | steps: |
| 163 | + - name: Generate GitHub App token |
| 164 | + id: generate_token |
| 165 | + uses: actions/create-github-app-token@v1 |
| 166 | + with: |
| 167 | + app-id: ${{ secrets.APP_ID }} |
| 168 | + private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 169 | + |
149 | 170 | - name: Checkout kernel-container-build (test branch) |
150 | 171 | uses: actions/checkout@v4 |
151 | 172 | with: |
152 | 173 | repository: ctrliq/kernel-container-build |
153 | 174 | ref: automated-testing-v1 |
154 | 175 | path: kernel-container-build |
155 | | - token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} |
| 176 | + token: ${{ steps.generate_token.outputs.token }} |
156 | 177 |
|
157 | 178 | - name: Install host dependencies |
158 | 179 | run: | |
@@ -226,10 +247,17 @@ jobs: |
226 | 247 | sudo apt-get install -y gh |
227 | 248 | fi |
228 | 249 |
|
| 250 | + - name: Generate GitHub App token for comparison |
| 251 | + id: generate_token_compare |
| 252 | + uses: actions/create-github-app-token@v1 |
| 253 | + with: |
| 254 | + app-id: ${{ secrets.APP_ID }} |
| 255 | + private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 256 | + |
229 | 257 | - name: Determine base branch for comparison |
230 | 258 | id: base_branch |
231 | 259 | env: |
232 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 260 | + GH_TOKEN: ${{ steps.generate_token_compare.outputs.token }} |
233 | 261 | run: | |
234 | 262 | BASE_BRANCH="" |
235 | 263 | BRANCH_NAME="${{ github.ref_name }}" |
@@ -487,9 +515,16 @@ jobs: |
487 | 515 | git checkout origin/main -- .github/scripts/create-pr-body.sh |
488 | 516 | chmod +x .github/scripts/create-pr-body.sh |
489 | 517 |
|
| 518 | + - name: Generate GitHub App token |
| 519 | + id: generate_token |
| 520 | + uses: actions/create-github-app-token@v1 |
| 521 | + with: |
| 522 | + app-id: ${{ secrets.APP_ID }} |
| 523 | + private-key: ${{ secrets.APP_PRIVATE_KEY }} |
| 524 | + |
490 | 525 | - name: Create Pull Request |
491 | 526 | env: |
492 | | - GH_TOKEN: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }} |
| 527 | + GH_TOKEN: ${{ steps.generate_token.outputs.token }} |
493 | 528 | run: | |
494 | 529 | # Reuse base branch from compare-results stage (already computed) |
495 | 530 | BASE_BRANCH="${{ needs.compare-results.outputs.base_branch }}" |
|
0 commit comments