Skip to content

Commit

Permalink
feat(presets): pinGitHubActionDigestsToSemver (renovatebot#23663)
Browse files Browse the repository at this point in the history
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
  • Loading branch information
2 people authored and zT-1337 committed Jan 24, 2024
1 parent 75f1280 commit 7e8f91f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/config/presets/internal/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,15 @@ export const presets: Record<string, Preset> = {
},
],
},
pinGitHubActionDigestsToSemver: {
description: 'Convert pinned GitHub Action digests to SemVer.',
packageRules: [
{
extends: ['helpers:pinGitHubActionDigests'],
extractVersion: '^(?<version>v\\d+\\.\\d+\\.\\d+)$',
versioning:
'regex:^v(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$',
},
],
},
};

0 comments on commit 7e8f91f

Please sign in to comment.