CI / build-and-scan (push) Successful in 53s
## Summary - Custom Renovate manager for the CI tool images pinned in `docker run`/`docker create` commands (Trivy, gitleaks, hadolint), which the default managers do not detect. - Renovate will now open PRs to bump them; they are not automerged. ## Test plan - [ ] CI green on this PR - [ ] After merge, Renovate opens a PR bumping Trivy - [ ] That PR passes CI before merging Reviewed-on: #12 Co-authored-by: Djeex <[email protected]>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": ["config:recommended", "docker:pinDigests"],
|
|
"timezone": "Europe/Paris",
|
|
"minimumReleaseAge": "3 days",
|
|
"labels": ["bot"],
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"description": "Docker images pinned in CI 'docker run' / 'docker create' commands",
|
|
"managerFilePatterns": ["/^\\.gitea/workflows/.+\\.ya?ml$/"],
|
|
"matchStrings": [
|
|
"(?<depName>(?:zricethezav/gitleaks|hadolint/hadolint|aquasec/trivy)):(?<currentValue>v?\\d+\\.\\d+\\.\\d+(?:-[a-z]+)?)"
|
|
],
|
|
"datasourceTemplate": "docker"
|
|
}
|
|
],
|
|
"packageRules": [
|
|
{
|
|
"matchManagers": ["dockerfile"],
|
|
"matchUpdateTypes": ["patch"],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"matchManagers": ["dockerfile"],
|
|
"matchUpdateTypes": ["pin", "digest"],
|
|
"automerge": true
|
|
},
|
|
{
|
|
"matchUpdateTypes": ["major"],
|
|
"addLabels": ["major"]
|
|
},
|
|
{
|
|
"matchUpdateTypes": ["minor"],
|
|
"addLabels": ["minor"]
|
|
}
|
|
],
|
|
"vulnerabilityAlerts": {
|
|
"enabled": true,
|
|
"addLabels": ["bug"]
|
|
}
|
|
}
|