Skip to content

Commit db72da4

Browse files
add renovate
1 parent 77b1e42 commit db72da4

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/renovatebot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: renovatebot
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.github/workflows/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
renovatebot-check:
13+
runs-on: ubuntu-24.04
14+
environment: security
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
18+
- name: Run renovatebot
19+
uses: ConsenSys/github-actions/renovatebot@0dbddeeb180c249e624dc1681c67f22325daedd5 # main
20+
with:
21+
GH_APP_ID: ${{ secrets.GH_APP_ID }}
22+
GH_PRIVATE_KEY: ${{ secrets.GH_PRIVATE_KEY }}
23+
GH_REPOSITORY: ${{ github.repository }}

renovate.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
],
6+
"dependencyDashboard": false,
7+
"packageRules": [
8+
{
9+
"description": "1. Pin all GitHub Actions to sha256 digests by default",
10+
"matchManagers": ["github-actions"],
11+
"pinDigests": true
12+
},
13+
{
14+
"description": "2. For trusted actions, allow updates",
15+
"matchManagers": ["github-actions"],
16+
"matchPackageNames": [
17+
"actions/**",
18+
"consensys/github-actions/**"
19+
],
20+
"pinDigests": true
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)