Skip to content

Commit a41b00c

Browse files
authored
Tidy NGINX PAT usage (#7886)
1 parent 916e99f commit a41b00c

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/cherry-pick.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
fetch-depth: 0
24-
token: ${{ secrets.NGINX_PAT }}
24+
token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: Set release branch variable
2727
id: branch
@@ -35,6 +35,5 @@ jobs:
3535
uses: carloscastrojumo/github-cherry-pick-action@503773289f4a459069c832dc628826685b75b4b3 # v1.0.10
3636
with:
3737
branch: ${{ steps.branch.outputs.branch }}
38-
token: ${{ secrets.NGINX_PAT }}
39-
author: nginx-bot <[email protected]>
38+
token: ${{ secrets.GITHUB_TOKEN }}
4039
title: "[cherry-pick] {old_title}"

.github/workflows/create-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ jobs:
6666
git push --dry-run origin "${branch}"
6767
fi
6868
env:
69-
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
release:
4848
permissions:
4949
contents: write
50+
pull-requests: write
5051
runs-on: ubuntu-22.04
5152
steps:
5253
- name: Branch
@@ -60,7 +61,7 @@ jobs:
6061
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6162
with:
6263
ref: ${{ steps.branch.outputs.branch }}
63-
token: ${{ secrets.NGINX_PAT }}
64+
token: ${{ secrets.GITHUB_TOKEN }}
6465

6566
- name: Replace
6667
run: |
@@ -72,10 +73,9 @@ jobs:
7273
- name: Create Pull Request
7374
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
7475
with:
75-
token: ${{ secrets.NGINX_PAT }}
76+
token: ${{ secrets.GITHUB_TOKEN }}
7677
commit-message: Release ${{ github.event.inputs.new_version }}
7778
title: Release ${{ github.event.inputs.new_version }}
7879
branch: docs/release-${{ github.event.inputs.new_version }}
79-
author: nginx-bot <[email protected]>
8080
body: |
8181
This automated PR updates the docs for ${{ github.event.inputs.new_version }} release.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
echo "Warning: Tag ${tag} already exists. Not making any changes"
123123
fi
124124
env:
125-
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
125+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126126

127127
mend:
128128
if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'mend') }}

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
results_file: results.sarif
4040
results_format: sarif
41-
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
41+
repo_token: ${{ secrets.GITHUB_TOKEN }}
4242

4343
# Publish the results for public repositories to enable scorecard badges. For more details, see
4444
# https://github.com/ossf/scorecard-action#publishing-results.

.github/workflows/update-docker-sha.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
update-docker-sha:
4747
permissions:
4848
contents: write
49+
pull-requests: write
4950
runs-on: ubuntu-22.04
5051
needs: [vars]
5152
steps:
@@ -79,7 +80,7 @@ jobs:
7980
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
8081
id: pr
8182
with:
82-
token: ${{ secrets.NGINX_PAT }}
83+
token: ${{ secrets.GITHUB_TOKEN }}
8384
commit-message: Update docker images ${{ steps.update_images.outputs.docker_md5 }}
8485
title: Docker image update ${{ steps.update_images.outputs.docker_md5 }}
8586
branch: deps/image-update-${{ needs.vars.outputs.source_branch }}-${{ steps.update_images.outputs.docker_md5 }}
@@ -96,5 +97,5 @@ jobs:
9697
run: gh pr merge --auto --squash "$PR_URL"
9798
env:
9899
PR_URL: ${{ steps.pr.outputs.pull-request-url }}
99-
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
100+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100101
if: ${{ !inputs.dry_run && steps.update_images.outputs.change_detected == 'true' }}

.github/workflows/update-kubernetes-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Create Pull Request
4646
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4747
with:
48-
token: ${{ secrets.NGINX_PAT }}
48+
token: ${{ secrets.GITHUB_TOKEN }}
4949
commit-message: update kubernetes version to ${{ steps.k8s-version.outputs.version }} in helm schema
5050
title: update kubernetes version to ${{ steps.k8s-version.outputs.version }} in helm schema
5151
branch: chore/k8s-${{ steps.k8s-version.outputs.version }}

.github/workflows/version-bump.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
version-bump:
2828
permissions:
2929
contents: write
30+
pull-requests: write
3031
runs-on: ubuntu-22.04
3132
steps:
3233
- name: Checkout Repository
@@ -50,11 +51,10 @@ jobs:
5051
- name: Create Pull Request
5152
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
5253
with:
53-
token: ${{ secrets.NGINX_PAT }}
54+
token: ${{ secrets.GITHUB_TOKEN }}
5455
commit-message: Version Bump for ${{ github.event.inputs.ic_version }}
5556
title: Version Bump for ${{ github.event.inputs.ic_version }}
5657
branch: chore/version-bump-${{ github.event.inputs.ic_version }}
57-
author: nginx-bot <[email protected]>
5858
labels: chore
5959
body: |
6060
This automated PR updates the NIC & Helm chart versions for the upcoming ${{ github.event.inputs.ic_version }} release.

0 commit comments

Comments
 (0)