Skip to content

Commit a5b8581

Browse files
committed
BAU: Remove usage of DEPENDABOT_PAT secret
This was never actually used because: 1. `contents:write` and `pull_request:write` are explicitly granted on the job, so dependabot can do what it needs with the default GITHUB_TOKEN. 2. The PAT was added to the repo secrets, not the dependabot secrets, so the workflow couldn't access it anyway.
1 parent b9db2d9 commit a5b8581

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

.github/workflows/update-provider-locks.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ jobs:
2020
with:
2121
# Use the pull request head ref to ensure we're on the PR branch
2222
ref: ${{ github.head_ref }}
23-
# Use PAT for Dependabot PRs, regular token for others
24-
# The current PAT is whi-tw's, it needs repo:write permissions
25-
# We need to update it if they move on from the team, or if it expires.
26-
token: ${{ github.actor == 'dependabot[bot]' && secrets.DEPENDABOT_PAT || secrets.GITHUB_TOKEN }}
2723

2824
- name: Install `tfupdate` with mise
2925
uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1

0 commit comments

Comments
 (0)