Skip to content

Commit 8449668

Browse files
authored
Use GITHUB_TOKEN for opening automated PRs (#3783)
Problem: NGINX_PAT no longer works for opening PRs Solution: Use GITHUB_TOKEN with pull request permissions instead
1 parent 7d184bb commit 8449668

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939
with:
4040
fetch-depth: 0
41-
token: ${{ github.actor == 'renovate[bot]' && secrets.NGINX_PAT || github.token }}
4241

4342
- name: Setup Golang Environment
4443
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

.github/workflows/nfr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
- name: Open a PR with the results
193193
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
194194
with:
195-
token: ${{ secrets.NGINX_PAT }}
195+
token: ${{ secrets.GITHUB_TOKEN }}
196196
commit-message: NFR Test Results for NGF version ${{ needs.vars.outputs.version }}
197197
author: nginx-bot <[email protected]>
198198
committer: nginx-bot <[email protected]>

.github/workflows/release-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
runs-on: ubuntu-24.04
2121
permissions:
2222
contents: write
23+
pull-requests: write
2324
steps:
2425
- name: Branch
2526
id: branch
@@ -83,7 +84,7 @@ jobs:
8384
- name: Create Pull Request
8485
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
8586
with:
86-
token: ${{ secrets.NGINX_PAT }}
87+
token: ${{ secrets.GITHUB_TOKEN }}
8788
commit-message: Release ${{ inputs.version }}
8889
title: Release ${{ inputs.version }}
8990
draft: true

.github/workflows/renovate-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050
with:
5151
ref: ${{ github.head_ref }}
52-
token: ${{ secrets.NGINX_PAT }}
5352

5453
- name: Setup Golang Environment
5554
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0

0 commit comments

Comments
 (0)