This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use PAT to auto-approve Renovate PRs (#161)
Uses the new PAT `secrets.PAT_FOR_PR_AUTO_APPROVAL` to approve Renovate PRs. Temporary created access tokens via GitHub App do not work here as the app is not a valid approver. To use the auto-merge feature, make sure that the owner of the PAT is in the list of approvers.
- Loading branch information
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ | ||
"cpus", | ||
"Hapag", | ||
"Infracost", | ||
"oidc", | ||
"Repology", | ||
"tflint", | ||
"tfsec" | ||
], | ||
"ignoreWords": [ | ||
"amannn", | ||
"codeowners", | ||
"codeql", | ||
"datasource", | ||
"dorny", | ||
"hmarr", | ||
"ibiqlik", | ||
"kayman", | ||
"ludeeus", | ||
"markdownlint", | ||
"mktemp", | ||
"rhysd", | ||
"ruleset", | ||
"sarif", | ||
"shellcheck", | ||
"shuf", | ||
"shunsuke", | ||
"signoff" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Approve all Renovate PRs automatically | ||
|
||
# yamllint disable-line rule:truthy | ||
on: pull_request_target | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
if: github.actor == 'renovate[bot]' | ||
steps: | ||
- uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1 | ||
with: | ||
review-message: "Auto approved Renovate PR by organization" | ||
github-token: ${{ secrets.PAT_FOR_PR_AUTO_APPROVAL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters