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
10 changes: 5 additions & 5 deletions docs/usage/key-concepts/how-renovate-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Here's an overview of the workflow:
flowchart TB
subgraph INITIALIZATION
direction TB
MC[Merge configurations \n most important to least: \n cli > env > file > default]
MC[Merge configurations <br> most important to least: <br> cli > env > file > default]
MC --> IP[Initialize platform]
IP --> AD[Query the platform for repositories]
AD --> NFIL[Narrow the list with filters]
Expand Down Expand Up @@ -77,8 +77,8 @@ flowchart TB
UFEF -->|file 2| FED2[...]
FED -->|dep 1| D1[...]
D1 -..-> CU
FED -->|dep 2| D2[use datasource to \n fetch versions]
D2 --> J[use versioning to find \n next valid update]
FED -->|dep 2| D2[use datasource to <br> fetch versions]
D2 --> J[use versioning to find <br> next valid update]
FED2 -...-> CU
UD -....-> CU
J --> CU[Look up updates]
Expand All @@ -87,8 +87,8 @@ flowchart TB
subgraph WRITEU[WRITE UPDATES]
direction TB
FEU{{For each update}}
FEU --> AUCOND[Check if branch needed: \n existing/rebase/concurrent amount]
AUCOND --> AU[Create branch\nApply update\nCreate PR]
FEU --> AUCOND[Check if branch needed: <br> existing/rebase/concurrent amount]
AUCOND --> AU[Create branch<br>Apply update<br>Create PR]
end

subgraph FINALIZE[FINALIZE]
Expand Down
1 change: 1 addition & 0 deletions lib/data/monorepo.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@
"panda-css": "https://github.com/chakra-ui/panda",
"parcel": "https://github.com/parcel-bundler/parcel",
"payloadcms": "https://github.com/payloadcms/payload",
"pdfme": "https://github.com/pdfme/pdfme",
"percy-cli": "https://github.com/percy/cli",
"picassojs": "https://github.com/qlik-oss/picasso.js",
"pixijs": [
Expand Down
55 changes: 55 additions & 0 deletions lib/modules/datasource/docker/schema.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,61 @@ describe('modules/datasource/docker/schema', () => {
});
});

it('parses OCI image index and ignores unknown sub manifests', () => {
const manifest = {
schemaVersion: 2,
mediaType: 'application/vnd.oci.image.index.v1+json',
manifests: [
{
mediaType: 'application/vnd.oci.image.manifest.v1+json',
size: 7143,
digest:
'sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f',
platform: {
architecture: 'ppc64le',
os: 'linux',
},
},
{
mediaType: 'application/vnd.oci.image.manifest.v1+json',
size: 7682,
digest:
'sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270',
platform: {
architecture: 'amd64',
os: 'linux',
},
},
{
annotations: {
'com.docker.official-images.bashbrew.arch': 'windows-amd64',
},
digest:
'sha256:68b622deabed02180f6c985925143b02076942a3d5390e7bae36c037d646eee2',
mediaType: 'application/vnd.docker.distribution.manifest.v2+json',
platform: {
architecture: 'amd64',
os: 'windows',
'os.version': '10.0.17763.7314',
},
size: 3042,
},
],
annotations: {
'com.example.key1': 'value1',
'com.example.key2': 'value2',
},
};
const parsedManifest = OciImageIndexManifest.parse(manifest);

expect(parsedManifest).toMatchObject({
schemaVersion: 2,
mediaType: 'application/vnd.oci.image.index.v1+json',
});

expect(parsedManifest.manifests).toHaveLength(2);
});

it('parses OCI flux artifact', () => {
const manifest = {
schemaVersion: 2,
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/docker/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export type OciImageManifest = z.infer<typeof OciImageManifest>;
*/
export const OciImageIndexManifest = ManifestObject.extend({
mediaType: z.literal('application/vnd.oci.image.index.v1+json'),
manifests: z.array(
manifests: LooseArray(
Descriptor.extend({
mediaType: z.enum([
'application/vnd.oci.image.manifest.v1+json',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"@types/mdast": "3.0.15",
"@types/moo": "0.5.10",
"@types/ms": "2.1.0",
"@types/node": "22.15.16",
"@types/node": "22.15.17",
"@types/parse-link-header": "2.0.3",
"@types/punycode": "2.1.4",
"@types/semver": "7.7.0",
Expand Down
Loading
Loading