We have a kotlin based repo in github and we are using AWS Code Artifact to store our private packages. I am trying to use renovate to check for dependency updates from AWS Code Artifact and create pull requests accordingly.
Knowing the fact that Renovate Bot (managed one) doesnt support the AWS Code Artifact, so I am trying to create a CICD for this and self host it using github actions. Below is my renovate.yml file content
name: Renovate
on:
schedule:
- cron: '*/10 * * * *'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install Renovate
run: npm install -g renovate
- name: Replace GitHub token in renovate-config.json
run: sed -i 's/REPLACE_WITH_GITHUB_TOKEN/${{ secrets.GITHUB_TOKEN }}/g' renovate-config.json
- name: Run Renovate
run: renovate --config=renovate-config.json
env:
CODEARTIFACT_AUTH_TOKEN: ${{ secrets.CODEARTIFACT_AUTH_TOKEN }}
Here is the renovate-config.json file
{
"platform": "github",
"endpoint": "https://api.github.com",
"token": "<token>",
"repositories": ["githubuser/repnoname"],
"packageRules": [
{
"matchDatasources": ["maven"],
"registryUrls": [
"https://domain-123456789.d.codeartifact.us-east-1.amazonaws.com/maven/repo/"
]
}
]
}
But when the github actions running it is keep showing this error
renovate --config=renovate-config.json
shell: /usr/bin/bash -e {0}
env:
CODEARTIFACT_AUTH_TOKEN: ***
WARN: Config needs migrating
"originalConfig": {
"platform": "github",
"endpoint": "https://api.github.com",
"repositories": ["githubuser/reponame"],
"packageRules": [
{
"matchDatasources": ["maven"],
"registryUrls": [
"https://domain-123456789.d.codeartifact.us-east-1.amazonaws.com/maven/repo/"
]
}
]
},
"migratedConfig": {
"platform": "github",
"endpoint": "https://api.github.com",
"repositories": ["githubusr/reponame"],
"packageRules": [
{
"matchDatasources": ["maven"],
"registryUrls": [
"https://domain-12345678.d.codeartifact.us-east-1.amazonaws.com/maven/repo/"
]
}
]
}
error: unknown option '--config=renovate-config.json'
Error: Process completed with exit code 1.
Any idea why? or is there any other way of doing the same. Ultimate goal is to config renovate to access AWS Code artifacts so it can create related PRs.