Skip to content

Commit

Permalink
feat(presets): pinGitHubActionDigestsToSemver (#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
HonkingGoose and TWiStErRob committed Jan 4, 2024
1 parent 6b7710f commit cf5a7d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/config/presets/internal/helpers.ts
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 cf5a7d6

Please sign in to comment.