Skip to content

Commit 59f285d

Browse files
Configure Renovate (#1526)
* Add renovate.json Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update Renovate configuration - Move to `.github`. - Disable dependabot. - Harden permissions. - Improve Git checkout. - Specify allowed licenses. --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Martin Costello <[email protected]>
1 parent 5f35f24 commit 59f285d

File tree

6 files changed

+30
-37
lines changed

6 files changed

+30
-37
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,7 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "docker"
4-
directory: ".devcontainer"
5-
schedule:
6-
interval: daily
7-
time: "05:30"
8-
timezone: Europe/London
93
- package-ecosystem: "github-actions"
104
directory: "/"
115
schedule:
12-
interval: daily
13-
time: "05:30"
14-
timezone: Europe/London
15-
- package-ecosystem: nuget
16-
directory: "/"
17-
groups:
18-
xunit:
19-
patterns:
20-
- xunit*
21-
schedule:
22-
interval: daily
23-
time: "05:30"
24-
timezone: Europe/London
25-
open-pull-requests-limit: 99
26-
- package-ecosystem: npm
27-
directory: "/src/TodoApp"
28-
groups:
29-
babel:
30-
patterns:
31-
- "@babel/*"
32-
typescript-eslint:
33-
patterns:
34-
- "@typescript-eslint/*"
35-
schedule:
36-
interval: daily
37-
time: "05:30"
6+
interval: yearly
387
timezone: Europe/London
39-
open-pull-requests-limit: 99

.github/renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
3+
}

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747

4848
- name: Checkout code
4949
uses: actions/checkout@v4
50+
with:
51+
filter: 'tree:0'
52+
persist-credentials: false
53+
show-progress: false
5054

5155
- name: Setup .NET SDK
5256
uses: actions/setup-dotnet@v4

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
34+
with:
35+
filter: 'tree:0'
36+
persist-credentials: false
37+
show-progress: false
3438

3539
- name: Initialize CodeQL
3640
uses: github/codeql-action/init@v3

.github/workflows/dependency-review.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@ on:
77
- dotnet-vnext
88
- dotnet-nightly
99

10-
permissions:
11-
contents: read
10+
permissions: {}
1211

1312
jobs:
1413
dependency-review:
1514
runs-on: ubuntu-latest
1615

16+
permissions:
17+
contents: read
18+
1719
steps:
1820

1921
- name: Checkout code
2022
uses: actions/checkout@v4
23+
with:
24+
filter: 'tree:0'
25+
persist-credentials: false
26+
show-progress: false
2127

2228
- name: Review dependencies
2329
uses: actions/dependency-review-action@v4
30+
with:
31+
allow-licenses: 'Apache-2.0,BSD-2-Clause,BSD-3-Clause,MIT'

.github/workflows/lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ on:
1414
- dotnet-nightly
1515
workflow_dispatch:
1616

17-
permissions:
18-
contents: read
17+
permissions: {}
1918

2019
env:
2120
FORCE_COLOR: 3
@@ -25,10 +24,17 @@ jobs:
2524
lint:
2625
runs-on: ubuntu-latest
2726

27+
permissions:
28+
contents: read
29+
2830
steps:
2931

3032
- name: Checkout code
3133
uses: actions/checkout@v4
34+
with:
35+
filter: 'tree:0'
36+
persist-credentials: false
37+
show-progress: false
3238

3339
- name: Add actionlint problem matcher
3440
run: echo "::add-matcher::.github/actionlint-matcher.json"

0 commit comments

Comments
 (0)