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
38 changes: 19 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: gh api ${{ env.PR_URL }} | jq -rc '${{ env.JQ_FILTER }}' >> "$GITHUB_OUTPUT"

- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: blob:none # we don't need all blobs
sparse-checkout: ${{ env.SPARSE_CHECKOUT }}
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: blob:none # we don't need all blobs
sparse-checkout: ${{ env.SPARSE_CHECKOUT }}
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
steps:
- name: Checkout code
if: needs.setup.outputs.os-matrix-is-full && runner.os != 'Linux'
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: blob:none # we don't need all blobs
sparse-checkout: ${{ env.SPARSE_CHECKOUT }}
Expand All @@ -203,7 +203,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
include: ${{ fromJSON(needs.setup.outputs.test-shard-matrix) }}

steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -415,13 +415,13 @@ jobs:
if: success() && github.event_name != 'merge_group' && github.event.pull_request.draft != true
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: blob:none # we don't need all blobs
show-progress: false

- name: Download coverage reports
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
pattern: coverage-*
path: coverage
Expand All @@ -444,7 +444,7 @@ jobs:
if: success() && github.event.pull_request.draft != true
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
filter: blob:none # we don't need all blobs
sparse-checkout: ${{ env.SPARSE_CHECKOUT }}
Expand All @@ -457,7 +457,7 @@ jobs:
os: ${{ runner.os }}

- name: Download coverage reports
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
pattern: coverage-*
path: coverage
Expand Down Expand Up @@ -535,7 +535,7 @@ jobs:
if: github.event.pull_request.draft != true
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand All @@ -562,12 +562,12 @@ jobs:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:fulltest')
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

- name: Download dist
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: renovate-dist
path: dist/
Expand Down Expand Up @@ -601,7 +601,7 @@ jobs:
if: github.event.pull_request.draft != true
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down Expand Up @@ -648,7 +648,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand All @@ -659,7 +659,7 @@ jobs:
os: ${{ runner.os }}

- name: Download dist
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: renovate-dist
path: dist/
Expand Down Expand Up @@ -698,7 +698,7 @@ jobs:
packages: write

steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # zero stands for full checkout, which is required for semantic-release
filter: blob:none # we don't need all blobs, only the full tree
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.event.pull_request.draft != true
steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/find-issues-with-missing-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
GH_TOKEN: ${{ github.token }}

steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Search for issues with missing labels
run: bash ./tools/find-issues-with-missing-labels.sh
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: 'Checkout code'
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
show-progress: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- full

steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/undesirable-test-additions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # Fetch all history for comparison
sparse-checkout: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ws_scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
WS_SCAN:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
show-progress: false

Expand Down
32 changes: 18 additions & 14 deletions lib/modules/datasource/aws-eks-addon/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ import { z } from 'zod/v4';
import { regEx } from '../../../util/regex';
import { Json } from '../../../util/schema-utils/v4';

export const EksAddonsFilterSchema = z.object({
addonName: z.string().nonempty().regex(regEx('^[a-z0-9][a-z0-9-]*[a-z0-9]$')),
kubernetesVersion: z
.string()
.regex(regEx('^(?<major>\\d+)\\.(?<minor>\\d+)$'))
.optional(),
default: z
.union([z.boolean(), z.string().transform((value) => value === 'true')])
.optional(),
region: z.string().optional(),
profile: z.string().optional(),
});
export const EksAddonsFilter = Json.pipe(
z.object({
addonName: z
.string()
.nonempty()
.regex(regEx('^[a-z0-9][a-z0-9-]*[a-z0-9]$')),
kubernetesVersion: z
.string()
.regex(regEx('^(?<major>\\d+)\\.(?<minor>\\d+)$'))
.optional(),
default: z
.union([z.boolean(), z.string().transform((value) => value === 'true')])
.optional(),
region: z.string().optional(),
profile: z.string().optional(),
}),
);

export type EksAddonsFilter = z.infer<typeof EksAddonsFilterSchema>;
export const EksAddonsFilter = Json.pipe(EksAddonsFilterSchema);
export type EksAddonsFilter = z.infer<typeof EksAddonsFilter>;
4 changes: 2 additions & 2 deletions lib/modules/datasource/buildpacks-registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Result } from '../../../util/result';
import { Datasource } from '../datasource';
import { ReleasesConfig } from '../schema';
import type { GetReleasesConfig, Release, ReleaseResult } from '../types';
import { BuildpacksRegistryResponseSchema } from './schema';
import { BuildpacksRegistryResponse } from './schema';

export class BuildpacksRegistryDatasource extends Datasource {
static readonly id = 'buildpacks-registry';
Expand Down Expand Up @@ -42,7 +42,7 @@ export class BuildpacksRegistryDatasource extends Datasource {
packageName,
);

return this.http.getJsonSafe(url, BuildpacksRegistryResponseSchema);
return this.http.getJsonSafe(url, BuildpacksRegistryResponse);
})
.transform(({ versions, latest }): ReleaseResult => {
const releases: Release[] = versions;
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/datasource/buildpacks-registry/schema.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BuildpacksRegistryResponseSchema } from './schema';
import { BuildpacksRegistryResponse } from './schema';

describe('modules/datasource/buildpacks-registry/schema', () => {
it('parses buildpack-registry schema', () => {
Expand Down Expand Up @@ -26,7 +26,7 @@ describe('modules/datasource/buildpacks-registry/schema', () => {
},
],
};
expect(BuildpacksRegistryResponseSchema.parse(response)).toMatchObject({
expect(BuildpacksRegistryResponse.parse(response)).toMatchObject({
latest: {
homepage: 'https://github.com/heroku/buildpacks-python',
},
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/buildpacks-registry/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from 'zod';
/**
* Response from registry.buildpacks.io
*/
export const BuildpacksRegistryResponseSchema = z.object({
export const BuildpacksRegistryResponse = z.object({
latest: z
.object({
homepage: z.string().optional(),
Expand Down
9 changes: 3 additions & 6 deletions lib/modules/datasource/cdnjs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import type {
Release,
ReleaseResult,
} from '../types';
import {
CdnjsAPISriResponseSchema,
CdnjsAPIVersionResponseSchema,
} from './schema';
import { CdnjsAPISriResponse, CdnjsAPIVersionResponse } from './schema';

export class CdnjsDatasource extends Datasource {
static readonly id = 'cdnjs';
Expand Down Expand Up @@ -50,7 +47,7 @@ export class CdnjsDatasource extends Datasource {
return this.http.getJsonSafe(
url,
{ cacheProvider: memCacheProvider },
CdnjsAPIVersionResponseSchema,
CdnjsAPIVersionResponse,
);
})
.transform(({ versions, homepage, repository }): ReleaseResult => {
Expand Down Expand Up @@ -100,7 +97,7 @@ export class CdnjsDatasource extends Datasource {
.transform(({ registryUrl }) => {
const url = `${registryUrl}libraries/${library}/${newValue}?fields=sri`;

return this.http.getJsonSafe(url, CdnjsAPISriResponseSchema);
return this.http.getJsonSafe(url, CdnjsAPISriResponse);
})
.transform(({ sri }): string => {
return sri?.[assetName];
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/datasource/cdnjs/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export const Versions = z

export const Sri = z.record(z.string());

export const CdnjsAPIVersionResponseSchema = z.object({
export const CdnjsAPIVersionResponse = z.object({
homepage: Homepage,
repository: Repository,
versions: Versions,
});

export const CdnjsAPISriResponseSchema = z.object({
export const CdnjsAPISriResponse = z.object({
sri: Sri,
});
4 changes: 2 additions & 2 deletions lib/modules/datasource/conda/prefix-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isNotNullOrUndefined } from '../../../util/array';
import type { Http } from '../../../util/http';
import { MaybeTimestamp } from '../../../util/timestamp';
import type { Release, ReleaseResult } from '../types';
import { type File, PagedResponseSchema } from './schema/prefix-dev';
import { type File, PagedResponse } from './schema/prefix-dev';

const MAX_PREFIX_DEV_GRAPHQL_PAGE = 100;

Expand Down Expand Up @@ -93,7 +93,7 @@ async function getPagedResponse(
},
},
},
PagedResponseSchema,
PagedResponse,
);

const currentPage = res.body.data.package?.variants;
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/conda/schema/prefix-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const File = z.object({

export type File = z.infer<typeof File>;

export const PagedResponseSchema = z.object({
export const PagedResponse = z.object({
data: z.object({
package: z
.object({
Expand Down
Loading
Loading