From 5b9f37c6556388e28d2cd168810b728cca4c0e46 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Tue, 19 Mar 2024 13:49:33 -0700 Subject: [PATCH] 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. --- .github/workflows/nfr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nfr.yml b/.github/workflows/nfr.yml index 21c8f2795e..31f661c4df 100644 --- a/.github/workflows/nfr.yml +++ b/.github/workflows/nfr.yml @@ -46,6 +46,8 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + with: + token: ${{ secrets.NGINX_PAT }} - name: Setup Golang Environment uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 @@ -160,8 +162,9 @@ jobs: - name: Open a PR with the results uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2 with: + token: ${{ secrets.NGINX_PAT }} commit-message: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}} - author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> + author: nginx-bot branch: tests/nfr-tests-${{ inputs.version }}${{ inputs.nginx_plus == true && '-plus' || ''}} delete-branch: true title: NFR Test Results for NGF version ${{ inputs.version }} ${{ inputs.nginx_plus == true && '(Plus)' || ''}}