davsclaus opened a new pull request, #30561:
URL: https://github.com/apache/camel/pull/30561

   ## Description
   
   [CAMEL-27347](https://issues.apache.org/jira/browse/CAMEL-27347): the 
catalog ships the Apache Camel security advisories and the known releases, 
generated from the camel-website repository (`content/security`, 
`content/releases`) by the `update-security-advisories` and 
`update-camel-releases` goals in opt-in profiles of camel-catalog. Nothing ran 
the advisories one: **main had 76 of the 137 published advisories**, the newest 
of 2026-07-05, so the CVE audit of the CLI, the TUI and the MCP server missed 
the recent Camel CVEs and their upgrade advice. The Camel Quarkus releases 
missed 3.40.1. (The Camel releases are current, because someone runs that 
profile by hand.)
   
   ### Changes
   
   - **Regenerated now**: 137 advisories (61 added, none removed or changed, 
checked by CVE id) and the Camel Quarkus releases (3.40.1 added).
   - **`.github/workflows/sync-catalog-website.yml`**: runs the sync goals 
every Monday and on demand (`workflow_dispatch`), and opens a PR when something 
changed, like `generate-sbom.yml`: on `main` both goals, on `camel-4.22.x` and 
`camel-4.18.x` only the releases (they have no advisories in the catalog). It 
counts the entries of each JSON before and after, and fails instead of opening 
a PR when a list got shorter: a sync only adds entries, so fewer means GitHub 
did not answer in full (the LTS branches do not have the fix below).
   - **Release guide**: a step before the dry run of `release:prepare` to run 
the workflow (or the goals locally) and merge its PR.
   - **The sync goals fail instead of writing a shorter list**: before, a 
rate-limited GitHub API listing (HTTP 403) gave an empty list, and a file that 
failed to download was skipped, so a run could write a JSON with fewer or no 
advisories. Now a failed listing, an empty listing or a failed download is an 
error. They send `GITHUB_TOKEN` to the GitHub API when it is set, as in the 
workflow, so shared runners are not limited by the anonymous rate limit (60 per 
hour); the files themselves come from `raw.githubusercontent.com`. Both goals 
share this in `CamelWebsiteContent`.
   
   Checking the advisories online at audit time, with this catalog copy as the 
fallback, follows in a separate PR on top of the CVE audit stack.
   
   ## Tests
   
   - `CamelWebsiteContentTest`: a local HTTP server; a rate-limited listing 
(403, the message names `GITHUB_TOKEN`), an empty listing and a failed download 
fail; the matching files are listed; the token goes to the GitHub API only.
   - The regeneration was run with the changed goals; the two steps of the 
workflow that count and compare the entries were run locally with bash: they 
pass for this sync and reject a list that got shorter.
   - `mvn -o test` of camel-package-maven-plugin: 155 tests, green.
   - The workflow itself has not run yet (it runs from main once merged; it can 
be started by hand from the Actions tab).
   
   _Claude Code on behalf of Claus Ibsen (davsclaus)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to