Skip to content

Commit 1946ec5

Browse files
ci: self-hosted renovate (#7690)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 19fa405 commit 1946ec5

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/renovate.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Renovate
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 * * *'
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: read
10+
id-token: write # For CodeArtifact OIDC
11+
12+
jobs:
13+
renovate:
14+
runs-on: depot-ubuntu-latest-16
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v5
18+
19+
- name: Authenticate with CodeArtifact
20+
id: codeartifact
21+
uses: ./.github/actions/codeartifact-login
22+
23+
- name: Generate GitHub App token
24+
id: app-token
25+
uses: actions/create-github-app-token@v1
26+
with:
27+
app-id: ${{ vars.FLAGSMITH_ENGINEERING_GH_APP_ID }}
28+
private-key: ${{ secrets.FLAGSMITH_ENGINEERING_GH_APP_PRIVATE_KEY }}
29+
30+
- name: Run Renovate
31+
uses: renovatebot/github-action@v46.1.14
32+
env:
33+
RENOVATE_TOKEN: ${{ steps.app-token.outputs.token }}
34+
RENOVATE_REPOSITORIES: ${{ github.repository }}
35+
RENOVATE_GIT_AUTHOR: ${{ vars.RENOVATE_GIT_AUTHOR }}
36+
RENOVATE_HOST_RULES: >-
37+
[{"matchHost":"flagsmith-production-084060095745.d.codeartifact.eu-west-2.amazonaws.com","username":"aws","password":"${{ steps.codeartifact.outputs.token }}"}]

renovate.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"security:only-security-updates",
55
":semanticCommitTypeAll(deps)"
66
],
7+
"recreateClosed": true,
8+
"rebaseWhen": "always",
79
"packageRules": [
810
{
911
"matchManagers": ["uv"],

0 commit comments

Comments
 (0)