Skip to content

Commit

Permalink
feat(manager/github-actions): extract complex github tags (#27941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokann committed Mar 26, 2024
1 parent 9c25dbb commit 6ad6022
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Expand Up @@ -10,7 +10,6 @@ exports[`modules/manager/github-actions/extract extractPackageFile() extracts mu
"depName": "actions/bin",
"depType": "action",
"replaceString": "actions/bin/shellcheck@master",
"skipReason": "invalid-version",
"versioning": "docker",
},
{
Expand Down Expand Up @@ -127,7 +126,6 @@ exports[`modules/manager/github-actions/extract extractPackageFile() extracts mu
"depName": "actions/bin",
"depType": "action",
"replaceString": "actions/bin/shellcheck@master",
"skipReason": "invalid-version",
"versioning": "docker",
},
{
Expand All @@ -147,7 +145,6 @@ exports[`modules/manager/github-actions/extract extractPackageFile() extracts mu
"depName": "actions/docker",
"depType": "action",
"replaceString": "actions/docker/cli@master",
"skipReason": "invalid-version",
"versioning": "docker",
},
{
Expand Down
3 changes: 2 additions & 1 deletion lib/modules/manager/github-actions/extract.spec.ts
Expand Up @@ -371,7 +371,6 @@ describe('modules/manager/github-actions/extract', () => {
{
currentValue: '01aecc#v2.1.0',
replaceString: 'actions/checkout@01aecc#v2.1.0',
skipReason: 'invalid-version',
},
{
currentDigest: '689fcce700ae7ffc576f2b029b51b2ffb66d3abd',
Expand Down Expand Up @@ -404,6 +403,8 @@ describe('modules/manager/github-actions/extract', () => {
'actions-runner-controller/execute-assert-arc-e2e@f1d7c52253b89f0beae60141f8465d9495cdc2cf # actions-runner-controller-0.23.5',
},
]);

expect(res!.deps[14]).not.toHaveProperty('skipReason');
});

it('extracts actions with fqdn', () => {
Expand Down
3 changes: 0 additions & 3 deletions lib/modules/manager/github-actions/extract.ts
Expand Up @@ -100,9 +100,6 @@ function extractWithRegex(content: string): PackageDependency[] {
dep.currentDigestShort = currentValue;
} else {
dep.currentValue = currentValue;
if (!dockerVersioning.api.isValid(currentValue)) {
dep.skipReason = 'invalid-version';
}
}
deps.push(dep);
}
Expand Down

0 comments on commit 6ad6022

Please sign in to comment.