diff --git a/.renovate/customManagers.json5 b/.renovate/customManagers.json5 index b45893b..540e887 100644 --- a/.renovate/customManagers.json5 +++ b/.renovate/customManagers.json5 @@ -42,6 +42,21 @@ ], datasourceTemplate: "github-releases", }, + { + customType: "regex", + description: "Process DevSecNinja/.github refs pinned by SHA with a main branch comment", + managerFilePatterns: [ + "/.github/workflows/.+\\.ya?ml$/", + "/workflow-templates/.+\\.ya?ml$/", + ], + matchStrings: [ + "# renovate: datasource=github-tags depName=(?DevSecNinja/\\.github)\\n(?\\s+)uses: (?DevSecNinja/\\.github/[^@\\s]+)@(?[a-f0-9]{40}) # main", + ], + currentValueTemplate: "0.0.0", + datasourceTemplate: "github-tags", + versioningTemplate: "semver", + autoReplaceStringTemplate: "# renovate: datasource=github-tags depName={{{depName}}}\n{{{indent}}}uses: {{{packagePath}}}@{{#if newDigest}}{{{newDigest}}}{{else}}{{{currentDigest}}}{{/if}} # {{{newValue}}}", + }, { customType: "regex", description: "Update DevSecNinja/dotfiles log.sh release pin",