Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/containerbase/devcontainer:14.4.10
FROM ghcr.io/containerbase/devcontainer:14.4.12
5 changes: 5 additions & 0 deletions docs/usage/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
.md-typeset a {
text-decoration: underline;
}

.md-typeset .parents {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
2 changes: 1 addition & 1 deletion lib/config/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ const options: Readonly<RenovateOptions>[] = [
description:
'Change this value to override the default Renovate sidecar image.',
type: 'string',
default: 'ghcr.io/renovatebot/base-image:13.15.0',
default: 'ghcr.io/renovatebot/base-image:13.15.1',
globalOnly: true,
deprecationMsg:
'The usage of `binarySource=docker` is deprecated, and will be removed in the future',
Expand Down
26 changes: 26 additions & 0 deletions lib/modules/manager/github-actions/community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,31 @@ const SetupHatch = z
};
});

const SetupGolangciLint = z
.object({
uses: matchAction('golangci/golangci-lint-action'),
with: z.object({ version: z.string().optional() }),
})
.transform(({ with: val }): PackageDependency => {
let skipStage: StageName | undefined;
let skipReason: SkipReason | undefined;

if (!val.version) {
skipStage = 'extract';
skipReason = 'unspecified-version';
}

return {
datasource: GithubReleasesDatasource.id,
depName: 'golangci/golangci-lint',
packageName: 'golangci/golangci-lint',
...(skipStage && { skipStage }),
...(skipReason && { skipReason }),
currentValue: val.version,
depType: 'uses-with',
};
});

/**
* schema here should match the whole step,
* there may be some actions use env as arguments version.
Expand All @@ -256,4 +281,5 @@ export const CommunityActions = z.union([
SetupDeno,
SetupRuby,
SetupHatch,
SetupGolangciLint,
]);
31 changes: 31 additions & 0 deletions lib/modules/manager/github-actions/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,37 @@ describe('modules/manager/github-actions/extract', () => {
},
],
},
{
step: {
uses: 'golangci/golangci-lint-action@v9',
with: { version: 'v2.5.0' },
},
expected: [
{
currentValue: 'v2.5.0',
datasource: 'github-releases',
depName: 'golangci/golangci-lint',
depType: 'uses-with',
packageName: 'golangci/golangci-lint',
},
],
},
{
step: {
uses: 'golangci/golangci-lint-action@v9',
with: {},
},
expected: [
{
skipStage: 'extract',
skipReason: 'unspecified-version',
datasource: 'github-releases',
depName: 'golangci/golangci-lint',
depType: 'uses-with',
packageName: 'golangci/golangci-lint',
},
],
},
])('extract from $step.uses', ({ step, expected }) => {
const yamlContent = yaml.dump({ jobs: { build: { steps: [step] } } });

Expand Down
1 change: 1 addition & 0 deletions lib/modules/manager/github-actions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ Renovate also supports some commonly used community actions:
- `sigoden/install-binary`
- `prefix-dev/setup-pixi`
- `pypa/hatch@install`
- `golangci/golangci-lint-action`
2 changes: 2 additions & 0 deletions lib/modules/versioning/api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as apk from './apk/index.ts';
import * as awsEksAddon from './aws-eks-addon/index.ts';
import * as amazonMachineImage from './aws-machine-image/index.ts';
import * as azureRestApi from './azure-rest-api/index.ts';
Expand Down Expand Up @@ -54,6 +55,7 @@ import * as unity3dPackages from './unity3d-packages/index.ts';
const api = new Map<string, VersioningApi | VersioningApiConstructor>();
export default api;

api.set(apk.id, apk.api);
api.set(awsEksAddon.id, awsEksAddon.api);
api.set(amazonMachineImage.id, amazonMachineImage.api);
api.set(azureRestApi.id, azureRestApi.api);
Expand Down
Loading
Loading