Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

chore: use PAT to auto-approve Renovate PRs #161

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .config/cspell.json
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"
]
}
17 changes: 17 additions & 0 deletions .github/workflows/renovate-auto-approve.yml
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 }}
6 changes: 3 additions & 3 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 'Check spelling'
name: "Check spelling"

# yamllint disable-line rule:truthy
on:
Expand All @@ -13,6 +13,6 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

# yamllint disable-line rule:comments
- uses: streetsidesoftware/cspell-action@52cba17693dc12d7d8f521631037008a17c93e53 # v5.0.0
- uses: streetsidesoftware/cspell-action@6043e383e6abacdc8b8a0d97756586da8d0d985d # v5.1.0
with:
config: .cspell.json
config: .config/cspell.json
Loading