Skip to content

Commit 9f505e4

Browse files
authored
ci: switch Renovate to the shared team config (#88)
1 parent 3ce8dee commit 9f505e4

4 files changed

Lines changed: 21 additions & 71 deletions

File tree

‎.github/actions/build-test-pack-deploy/action.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,20 @@ runs:
8989

9090
- name: Login to Octopus Deploy
9191
if: github.event.pull_request.head.repo.fork != true && (! contains(github.ref, '/dependabot/'))
92-
uses: OctopusDeploy/login@5e2331a069ebc144b20ded22766dfce025dd9e73 # v2
92+
uses: OctopusDeploy/login@v2
9393
with:
9494
server: ${{ inputs.octopus-url }}
9595
service_account_id: 42e00747-07e1-4214-979c-af3381e6d951
9696

9797
- name: Push to Octopus
98-
uses: OctopusDeploy/push-package-action@88c472a064af6485c4d0cc07d587213895a74a2e # v4
98+
uses: OctopusDeploy/push-package-action@v4
9999
if: github.event.pull_request.head.repo.fork != true && (! contains(github.ref, '/dependabot/'))
100100
with:
101101
packages: |
102102
${{ steps.bundle.outputs.path }}
103103
104104
- name: Create Release in Octopus
105-
uses: OctopusDeploy/create-release-action@2fceebb1d9cc8624d726a77e2faf93948de6741d # v4
105+
uses: OctopusDeploy/create-release-action@v4
106106
if: github.event.pull_request.head.repo.fork != true && (! contains(github.ref, '/dependabot/'))
107107
with:
108108
project: "OpenFeature Java Provider"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Renovate approve
2+
on:
3+
pull_request:
4+
types: [synchronize, auto_merge_enabled]
5+
jobs:
6+
renovate-approve:
7+
uses: OctopusDeploy/team-bmbb-renovate-config/.github/workflows/renovate-approve.yml@main
8+
permissions:
9+
pull-requests: write

‎.github/workflows/renovate.yml‎

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
1-
name: Renovate update dependencies
1+
name: Renovate
22
on:
33
schedule:
4-
# UTC 10:00 PM Sunday - Thursday (AEST 8:00 AM, Monday - Friday)
5-
- cron: "0 22 * * 0-4"
4+
- cron: "0 3 * * 1-5"
5+
timezone: Australia/Brisbane
66
workflow_dispatch:
7-
inputs:
8-
dry-run:
9-
description: "Dry run"
10-
required: false
11-
default: false
12-
type: boolean
13-
14-
permissions:
15-
contents: read
16-
177
jobs:
188
renovate:
19-
name: Renovate
20-
runs-on: ubuntu-latest
21-
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v7
24-
- name: Renovate
25-
uses: renovatebot/github-action@6d26fcf0275dc65624cbc3d51fe78bc773f98321 # v46.3.6
26-
with:
27-
configurationFile: renovate-config.js
28-
token: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
29-
env:
30-
RENOVATE_DRY_RUN: ${{ inputs.dry-run && 'full' || null }}
9+
uses: OctopusDeploy/team-bmbb-renovate-config/.github/workflows/renovate.yml@main
10+
permissions:
11+
contents: read
12+
secrets:
13+
RENOVATE_GITHUB_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}

‎renovate-config.js‎

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
11
module.exports = {
2-
platform: 'github',
3-
timezone: 'Australia/Brisbane',
4-
requireConfig: 'optional',
5-
onboarding: false,
6-
7-
repositories: ['OctopusDeploy/openfeature-provider-java'],
8-
reviewers: ['team:team-devex'],
9-
branchPrefix: 'renovate/',
10-
11-
// Limit concurrent PRs for better manageability
12-
prConcurrentLimit: 5,
13-
14-
// Add labels to PRs
15-
labels: ['dependencies'],
16-
17-
// Wait until a release has been published for at least 2 days before updating,
18-
// to avoid picking up versions that get yanked or hotfixed shortly after release.
19-
minimumReleaseAge: '2 days',
20-
21-
// Enable vulnerability alerts
22-
osvVulnerabilityAlerts: true,
2+
extends: ['github>OctopusDeploy/team-bmbb-renovate-config:default.json5'],
233

244
// Produce conventional-commit PR titles so validate-pr-title passes
255
semanticCommits: 'enabled',
266

27-
// Extend with recommended config
28-
globalExtends: ['config:recommended'],
29-
307
// Only manage Maven deps and GitHub Actions (leaves the `specification` submodule alone)
318
enabledManagers: ['maven', 'github-actions'],
329

@@ -37,24 +14,5 @@ module.exports = {
3714
matchUpdateTypes: ['minor', 'patch'],
3815
semanticCommitType: 'feat',
3916
},
40-
{
41-
// GitHub Actions: pin third-party actions to a commit SHA for security.
42-
matchManagers: ['github-actions'],
43-
matchPackageNames: [
44-
'!actions/**', // Trust official GitHub actions (checkout, setup-java, etc.); don't pin.
45-
],
46-
pinDigests: true,
47-
},
48-
{
49-
// pin/pinDigest/digest updates have no release timestamp, so
50-
// minimumReleaseAge can never be satisfied and its stability check
51-
// would leave those PRs pending forever.
52-
// https://github.com/renovatebot/renovate/issues/40288
53-
matchUpdateTypes: ['pin', 'pinDigest', 'digest'],
54-
minimumReleaseAge: null,
55-
prBodyNotes: [
56-
'**Manual supply-chain check:** `minimumReleaseAge` cannot be enforced for pin/digest updates because they have no release timestamp. Before merging, confirm this commit SHA has been published for at least **2 days**.',
57-
],
58-
},
5917
],
6018
};

0 commit comments

Comments
 (0)