Add digest handling

Added pinDigests: true explicit setting.
Added SHA regex
This commit is contained in:
Nick Fedor 2025-02-01 01:13:43 -07:00 committed by GitHub
parent c3d909fe65
commit 82f4307fcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@
schedule: [ schedule: [
'every weekend', 'every weekend',
], ],
commitMessageAction: 'Update digest',
commitMessageTopic: '{{depName}}', commitMessageTopic: '{{depName}}',
commitMessageExtra: 'to {{newVersion}}', commitMessageExtra: 'to {{newVersion}}',
commitMessageSuffix: '', commitMessageSuffix: '',
@ -29,12 +30,14 @@
matchManagers: [ matchManagers: [
'github-actions', 'github-actions',
], ],
pinDigests: true,
automerge: true, automerge: true,
automergeType: 'branch', automergeType: 'branch',
ignoreTests: true, ignoreTests: true,
matchUpdateTypes: [ matchUpdateTypes: [
'minor', 'minor',
'patch', 'patch',
'digest',
], ],
}, },
{ {
@ -203,5 +206,14 @@
], ],
datasourceTemplate: "docker", datasourceTemplate: "docker",
}, },
{
customType: "regex",
description: ["Process GitHub Actions commits"],
fileMatch: ["\\.github/workflows/.*\\.ya?ml$"],
matchStrings: [
"uses: (?<depName>[^@/]+/[^@/]+)@(?<currentValue>[a-f0-9]{40})", // Matches SHA for GitHub Actions
],
datasourceTemplate: "github",
},
], ],
} }