Skip to content

Commit 34049bb

Browse files
authored
chore: setup renovate (#8)
1 parent 1c18036 commit 34049bb

2 files changed

Lines changed: 49 additions & 5 deletions

File tree

.github/workflows/reusable-yamory-scan.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ jobs:
3333

3434
- name: Setup trivy
3535
env:
36-
TRIVY_VERSION: 0.68.2
37-
TRIVY_CHECKSUM: 68b3c0350490456f56fbf8ea604663c79af73f628f4c3bb0fd76bfcc26fafea6
36+
# renovate: datasource=github-release-attachments depName=aquasecurity/trivy
37+
TRIVY_VERSION: v0.68.2
38+
TRIVY_SHA256: 68b3c0350490456f56fbf8ea604663c79af73f628f4c3bb0fd76bfcc26fafea6
3839
run: |
39-
wget https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.deb
40-
echo "${TRIVY_CHECKSUM} trivy_${TRIVY_VERSION}_Linux-64bit.deb" > trivy-sha256sum.txt
40+
TRIVY_DEB="trivy_${TRIVY_VERSION#v}_Linux-64bit.deb"
41+
wget "https://github.com/aquasecurity/trivy/releases/download/${TRIVY_VERSION}/${TRIVY_DEB}"
42+
echo "${TRIVY_SHA256} ${TRIVY_DEB}" > trivy-sha256sum.txt
4143
sha256sum -c trivy-sha256sum.txt
42-
sudo dpkg -i trivy_${TRIVY_VERSION}_Linux-64bit.deb
44+
sudo dpkg -i "${TRIVY_DEB}"
4345
4446
- name: Login to GHCR
4547
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3

renovate.json5

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
extends: ['github>cybozu/renovate-config', ':prConcurrentLimitNone'],
3+
packageRules: [
4+
{
5+
description: 'Automerge Docker digest updates',
6+
matchDatasources: ['docker'],
7+
matchUpdateTypes: ['digest'],
8+
automerge: true,
9+
},
10+
{
11+
description: 'Automerge pnpm minor and patch updates',
12+
matchPackageNames: ['pnpm'],
13+
minimumReleaseAge: '14 days',
14+
matchUpdateTypes: ['minor', 'patch'],
15+
automerge: true,
16+
},
17+
{
18+
description: 'Automerge Node.js minor and patch updates',
19+
matchPackageNames: ['node'],
20+
minimumReleaseAge: '14 days',
21+
matchUpdateTypes: ['minor', 'patch'],
22+
automerge: true,
23+
},
24+
{
25+
description: 'Automerge trivy minor and patch updates',
26+
matchPackageNames: ['aquasecurity/trivy'],
27+
matchUpdateTypes: ['minor', 'patch'],
28+
automerge: true,
29+
},
30+
],
31+
customManagers: [
32+
{
33+
customType: 'regex',
34+
managerFilePatterns: [
35+
'/.github/workflows/.+\\.yaml$/',
36+
],
37+
matchStrings: [
38+
'# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s+(?:[A-Za-z0-9_]+?_SHA256\\s*:\\s*["\']?(?<currentDigest>[a-f0-9]+?)["\']?\\s)?',
39+
],
40+
},
41+
],
42+
}

0 commit comments

Comments
 (0)