Skip to content

Commit 5b9f37c

Browse files
authored
Use nginx-bot in NFR PR (#1728)
Problem: GitHub won't run Actions for commits created by a bot using the default token Solution: Use nginx-bot (that is not actually a bot) with a PAT.
1 parent bb70021 commit 5b9f37c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/nfr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
steps:
4747
- name: Checkout Repository
4848
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
49+
with:
50+
token: ${{ secrets.NGINX_PAT }}
4951

5052
- name: Setup Golang Environment
5153
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
@@ -160,8 +162,9 @@ jobs:
160162
- name: Open a PR with the results
161163
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
162164
with:
165+
token: ${{ secrets.NGINX_PAT }}
163166
commit-message: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}}
164-
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
167+
author: nginx-bot <integrations@nginx.com>
165168
branch: tests/nfr-tests-${{ inputs.version }}${{ inputs.nginx_plus == true && '-plus' || ''}}
166169
delete-branch: true
167170
title: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}}

0 commit comments

Comments
 (0)