Skip to content

refactor(docker): use schema validated getJson#43775

Open
secustor wants to merge 4 commits into
renovatebot:mainfrom
secustor:fix/getjsonunchecked-08-docker
Open

refactor(docker): use schema validated getJson#43775
secustor wants to merge 4 commits into
renovatebot:mainfrom
secustor:fix/getjsonunchecked-08-docker

Conversation

@secustor

@secustor secustor commented Jun 3, 2026

Copy link
Copy Markdown
Member

Changes

Use getJson instead of getJsonUnchecked for the docker datasource.

08/13

Ignored following occurrence as we are not using the content at all

await http.getJsonUnchecked(apiCheckUrl, options);

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

secustor and others added 2 commits June 3, 2026 18:00
Replace all getJsonUnchecked calls in the Docker datasource with
Zod-validated getJson calls. Add RegistryAuthToken, RegistryTagsList,
and QuayTagsResponse schemas to schema.ts and add unit tests for them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot requested a review from viceice June 3, 2026 20:31
@secustor secustor changed the title Fix/getjsonunchecked 08 docker refactor(docker): use schema validated getJson Jun 3, 2026
Comment thread lib/modules/datasource/docker/index.ts
Comment thread lib/modules/datasource/docker/schema.ts Outdated
@secustor secustor requested a review from viceice June 9, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants