Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/reusable-yamory-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ jobs:

- name: Setup trivy
env:
TRIVY_VERSION: 0.68.2
TRIVY_CHECKSUM: 68b3c0350490456f56fbf8ea604663c79af73f628f4c3bb0fd76bfcc26fafea6
# renovate: datasource=github-release-attachments depName=aquasecurity/trivy
TRIVY_VERSION: v0.68.2
TRIVY_SHA256: 68b3c0350490456f56fbf8ea604663c79af73f628f4c3bb0fd76bfcc26fafea6
run: |
wget https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.deb
echo "${TRIVY_CHECKSUM} trivy_${TRIVY_VERSION}_Linux-64bit.deb" > trivy-sha256sum.txt
TRIVY_DEB="trivy_${TRIVY_VERSION#v}_Linux-64bit.deb"
wget "https://github.com/aquasecurity/trivy/releases/download/${TRIVY_VERSION}/${TRIVY_DEB}"
echo "${TRIVY_SHA256} ${TRIVY_DEB}" > trivy-sha256sum.txt
sha256sum -c trivy-sha256sum.txt
sudo dpkg -i trivy_${TRIVY_VERSION}_Linux-64bit.deb
sudo dpkg -i "${TRIVY_DEB}"

- name: Login to GHCR
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
Expand Down
42 changes: 42 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
extends: ['github>cybozu/renovate-config', ':prConcurrentLimitNone'],
packageRules: [
{
description: 'Automerge Docker digest updates',
matchDatasources: ['docker'],
matchUpdateTypes: ['digest'],
automerge: true,
},
{
description: 'Automerge pnpm minor and patch updates',
matchPackageNames: ['pnpm'],
minimumReleaseAge: '14 days',
matchUpdateTypes: ['minor', 'patch'],
automerge: true,
},
{
description: 'Automerge Node.js minor and patch updates',
matchPackageNames: ['node'],
minimumReleaseAge: '14 days',
matchUpdateTypes: ['minor', 'patch'],
automerge: true,
},
{
description: 'Automerge trivy minor and patch updates',
matchPackageNames: ['aquasecurity/trivy'],
matchUpdateTypes: ['minor', 'patch'],
automerge: true,
},
],
customManagers: [
{
customType: 'regex',
managerFilePatterns: [
'/.github/workflows/.+\\.yaml$/',
],
matchStrings: [
'# 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)?',
],
},
],
}
Loading