diff --git a/.renovaterc.json b/.renovaterc.json index 360374de..65313ac0 100644 --- a/.renovaterc.json +++ b/.renovaterc.json @@ -4,5 +4,10 @@ ], "baseBranches": [ "chore/renovateBaseBranch" + ], + "prHourlyLimit": 10, + "prConcurrentLimit": 10, + "schedule": [ + "after 10pm every weekday" ] } diff --git a/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap b/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap index 19b3ef53..39fdaae8 100644 --- a/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap +++ b/src/rules/spec/githubActions/__snapshots__/component.test.ts.snap @@ -61,7 +61,7 @@ exports[`docker > should match all dependencies 2`] = ` [ "docker", "postgres", - "15.4-alpine", + "latest", ], [ "githubAction", @@ -431,7 +431,7 @@ exports[`docker > should match all dependencies 2`] = ` [ "githubAction", "snyk/actions/php", - undefined, + "latest", ], [ "githubAction", diff --git a/src/rules/spec/githubActions/component.test.ts b/src/rules/spec/githubActions/component.test.ts index ba1f062b..fdd0c994 100644 --- a/src/rules/spec/githubActions/component.test.ts +++ b/src/rules/spec/githubActions/component.test.ts @@ -25,7 +25,7 @@ jobs: postgres: env: POSTGRES_PASSWORD: postgres - image: postgres:15.4-alpine + image: postgres options: >- --health-cmd pg_isready --health-interval 10s diff --git a/src/rules/spec/githubActions/component.ts b/src/rules/spec/githubActions/component.ts index faf6be7d..662d6f88 100644 --- a/src/rules/spec/githubActions/component.ts +++ b/src/rules/spec/githubActions/component.ts @@ -65,7 +65,7 @@ export const detectGithubActionsComponent: ComponentMatcher = async ( for (const step of config.steps) { if (step.uses) { const [name, version] = step.uses.split('@'); - dependencies.push(['githubAction', name, version]); + dependencies.push(['githubAction', name, version || 'latest']); const matched = matchDependencies([name], 'githubAction'); if (matched.size > 0) { pl.addTechs(matched); @@ -76,7 +76,7 @@ export const detectGithubActionsComponent: ComponentMatcher = async ( if (config.container) { const [imageName, imageVersion] = config.container.split(':'); - dependencies.push(['docker', imageName, imageVersion]); + dependencies.push(['docker', imageName, imageVersion || 'latest']); const matched = matchDependencies([imageName], 'docker'); if (matched.size > 0) { pl.addTechs(matched); @@ -89,7 +89,7 @@ export const detectGithubActionsComponent: ComponentMatcher = async ( continue; } const [imageName, imageVersion] = service.image.split(':'); - dependencies.push(['docker', imageName, imageVersion]); + dependencies.push(['docker', imageName, imageVersion || 'latest']); const matched = matchDependencies([imageName], 'docker'); if (matched.size > 0) { pl.addTechs(matched); diff --git a/src/rules/spec/golang/lockfile.ts b/src/rules/spec/golang/lockfile.ts index d1565910..223de43c 100644 --- a/src/rules/spec/golang/lockfile.ts +++ b/src/rules/spec/golang/lockfile.ts @@ -40,7 +40,7 @@ export const detectGolangLockfile: ComponentMatcher = async ( continue; } - dependencies.push(['golang', url, version]); + dependencies.push(['golang', url, version || 'latest']); const matched = matchDependencies([url], 'golang'); if (matched.size <= 0) { continue; diff --git a/src/rules/spec/ruby/lockfile.ts b/src/rules/spec/ruby/lockfile.ts index 77127b4e..45ce8a94 100644 --- a/src/rules/spec/ruby/lockfile.ts +++ b/src/rules/spec/ruby/lockfile.ts @@ -36,7 +36,7 @@ export const detectRubyLockfile: ComponentMatcher = async (files, provider) => { const techs = matchDependencies(Object.keys(deps), 'ruby'); const depsFlatten: Analyser['dependencies'] = Object.entries(deps).map( ([name, value]) => { - return ['ruby', name, value]; + return ['ruby', name, value || 'latest']; } );