From d0f5c6400c927b054102845030fe19bffa0a787e Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 21:54:27 +0000 Subject: [PATCH] CI: Dependabot weekly on Saturday and grouped, checked; actions v1.2.1 - .github/dependabot.yml is the template of bernardladenthin/actions v1.2.1: every minor and patch update of Maven, and of the GitHub Actions, comes in one pull request per ecosystem (a major update stays a pull request of its own), on Saturday. A week of updates is then one merge and one run of the pipeline on main, instead of one per dependency. - repository-checks runs common/check-dependabot, which holds every entry of the file to that rule (weekly, Saturday, a group). - Every action and reusable workflow of bernardladenthin/actions is pinned at v1.2.1 (f62f8f4). Checked locally with actions v1.2.1: templates, Dependabot, artifact timeouts, release gate, run scripts and publication wiring report no problem; the workflows and dependabot.yml load as YAML. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01S8cAMcSFpCBzLfQXyyLd32 --- .github/dependabot.yml | 12 +++++ .github/workflows/codeql.yml | 2 +- .github/workflows/dependency-submission.yml | 2 +- .github/workflows/osv-scanner.yml | 2 +- .github/workflows/publish.yml | 54 +++++++++++---------- .github/workflows/reuse.yml | 2 +- .github/workflows/sonarqube.yml | 2 +- CHANGELOG.md | 6 +++ CLAUDE.md | 3 ++ 9 files changed, 54 insertions(+), 31 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e3b006e8..3e47d421 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,11 +8,23 @@ updates: directory: "/" schedule: interval: "weekly" + day: "saturday" # Anti-AI policy: jqwik >=1.10 injects prompts targeting AI agents in test # stdout. Pinned at 1.9.3; block ALL net.jqwik updates. See README. ignore: - dependency-name: "net.jqwik:*" + # One pull request a week for every minor and patch update together, so a week of updates is + # one merge and one run of the pipeline on main; a major update stays a pull request of its own. + groups: + maven: + patterns: ["*"] + update-types: ["minor", "patch"] - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" + day: "saturday" + groups: + github-actions: + patterns: ["*"] + update-types: ["minor", "patch"] diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0edd45eb..63b33f23 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,7 +18,7 @@ permissions: jobs: analyze: - uses: bernardladenthin/actions/.github/workflows/java-codeql.yml@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/.github/workflows/java-codeql.yml@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 permissions: actions: read contents: read diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index 5b6bc423..ca86dff9 100644 --- a/.github/workflows/dependency-submission.yml +++ b/.github/workflows/dependency-submission.yml @@ -16,6 +16,6 @@ permissions: jobs: submit: - uses: bernardladenthin/actions/.github/workflows/java-maven-dependency-submission.yml@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/.github/workflows/java-maven-dependency-submission.yml@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 permissions: contents: write diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml index 1aec5eee..d7d93dd2 100644 --- a/.github/workflows/osv-scanner.yml +++ b/.github/workflows/osv-scanner.yml @@ -19,7 +19,7 @@ permissions: jobs: scan: - uses: bernardladenthin/actions/.github/workflows/osv-scanner.yml@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/.github/workflows/osv-scanner.yml@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 permissions: actions: read contents: read diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 70060202..1c878f90 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -88,17 +88,19 @@ jobs: with: persist-credentials: false - name: Files equal their templates in bernardladenthin/actions - uses: bernardladenthin/actions/common/check-templates@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/check-templates@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Release gate (every job gates both publish jobs, or release-gate-exemptions.txt says why) - uses: bernardladenthin/actions/common/check-release-gate@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/check-release-gate@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Run scripts parse (bash -n over every bash run script of the workflows and actions) - uses: bernardladenthin/actions/common/check-run-scripts@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/check-run-scripts@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Artifact timeouts (every upload/download-artifact step times out after ARTIFACT_TIMEOUT_MINUTES) - uses: bernardladenthin/actions/common/check-artifact-timeouts@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/check-artifact-timeouts@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - name: Dependabot (every update weekly on Saturday, grouped) + uses: bernardladenthin/actions/common/check-dependabot@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Maven versions (warns where a dependency or plugin differs from a sibling repository) - uses: bernardladenthin/actions/java/check-maven-versions@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/check-maven-versions@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Publication wiring and release asset contract (dry run) - uses: bernardladenthin/actions/java/check-publication@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/check-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 # --------------------------------------------------------------------------- # GPG signing-key preflight: what maven-gpg-plugin does at deploy time, so a @@ -117,7 +119,7 @@ jobs: runs-on: ubuntu-latest environment: maven-central steps: - - uses: bernardladenthin/actions/common/verify-gpg-key@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/common/verify-gpg-key@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: private-key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} @@ -138,7 +140,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - - uses: bernardladenthin/actions/java/verify-signing-key-gradle@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/java/verify-signing-key-gradle@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: private-key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} @@ -205,7 +207,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Display CPU Info - uses: bernardladenthin/actions/common/print-host-info@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/print-host-info@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 with: java-version-file: .java-version @@ -296,7 +298,7 @@ jobs: # Echo the crash logs into the job log (workspace/policies/ci-test-diagnostics.md 3.1). - name: Print crash logs (on failure) if: failure() - uses: bernardladenthin/actions/java/print-crash-logs@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/print-crash-logs@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: modules: srcmorph srcmorph-cli srcmorph-maven-plugin - name: Upload crash & surefire dumps @@ -349,7 +351,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Display CPU Info - uses: bernardladenthin/actions/common/print-host-info@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/common/print-host-info@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 with: { java-version-file: .java-version, distribution: temurin, cache: maven } - name: Test under vmlens (one class — staged scope) @@ -422,13 +424,13 @@ jobs: # META-INF/versions/** are skipped because a classpath JVM never loads them. The # java/verify-bytecode action of bernardladenthin/actions. - name: Verify Java 8 bytecode (no class newer than major 52) - uses: bernardladenthin/actions/java/verify-bytecode@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/verify-bytecode@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: max-major: "52" paths: | smoke-jars - name: Run the jar - uses: bernardladenthin/actions/java/smoke-fatjar-cli@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/smoke-fatjar-cli@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: jar-dir: smoke-jars jar-glob: 'srcmorph.jar' @@ -440,7 +442,7 @@ jobs: # the working directory, so a launch that resolves them anywhere else (a wrong base directory, # a lost subtree) fails here; run from examples/, the two would be the same directory. - name: Run the jar from the root and count the planned files - uses: bernardladenthin/actions/java/smoke-fatjar-cli@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/smoke-fatjar-cli@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: jar-dir: smoke-jars jar-glob: 'srcmorph.jar' @@ -624,7 +626,7 @@ jobs: # a release is tagged on. - name: Require a SNAPSHOT version if: inputs.publish_to_central - uses: bernardladenthin/actions/java/check-release-ref@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/check-release-ref@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: snapshot @@ -639,7 +641,7 @@ jobs: persist-credentials: false # The tag names exactly the project version (v1.2.3 for 1.2.3), which is no SNAPSHOT. - name: Require the release version the tag names - uses: bernardladenthin/actions/java/check-release-ref@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/check-release-ref@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: release @@ -684,7 +686,7 @@ jobs: *) echo "::error::Refusing to publish non-SNAPSHOT version '$VERSION' from the snapshot job. Snapshot publishing requires a -SNAPSHOT version; releases go through the v* tag path."; exit 1 ;; esac # The collect step runs actionlib of bernardladenthin/actions (on PYTHONPATH from here). - - uses: bernardladenthin/actions/common/setup@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/common/setup@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Show effective POM (debug) run: mvn --batch-mode --no-transfer-progress -P release -DskipUpload=true help:effective-pom - name: Stage snapshot @@ -695,7 +697,7 @@ jobs: run: python3 -m actionlib.java.releaseassets central-assets --maven-only - name: Finalize and secure the signed publication id: finalize - uses: bernardladenthin/actions/java/finalize-publication@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/finalize-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: snapshot maven-assets: central-assets @@ -712,7 +714,7 @@ jobs: permissions: contents: write steps: - - uses: bernardladenthin/actions/java/publish-github@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/java/publish-github@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -750,7 +752,7 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE # The collect step runs actionlib of bernardladenthin/actions (on PYTHONPATH from here). - - uses: bernardladenthin/actions/common/setup@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/common/setup@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 - name: Show effective POM (debug) run: mvn --batch-mode --no-transfer-progress -P release -DskipUpload=true help:effective-pom - name: Stage release @@ -761,7 +763,7 @@ jobs: run: python3 -m actionlib.java.releaseassets central-assets --maven-only - name: Finalize and secure the signed publication id: finalize - uses: bernardladenthin/actions/java/finalize-publication@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/finalize-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: release maven-assets: central-assets @@ -775,7 +777,7 @@ jobs: permissions: contents: write steps: - - uses: bernardladenthin/actions/java/publish-github@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/java/publish-github@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} @@ -800,7 +802,7 @@ jobs: with: persist-credentials: false - name: Transfer frozen artifacts (no rebuild, signing or validation polling) - uses: bernardladenthin/actions/java/publish-central@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/publish-central@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -821,7 +823,7 @@ jobs: with: persist-credentials: false - name: Transfer frozen artifacts (no rebuild, signing or validation polling) - uses: bernardladenthin/actions/java/publish-central@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/java/publish-central@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} @@ -839,7 +841,7 @@ jobs: id-token: write attestations: write steps: - - uses: bernardladenthin/actions/java/attest-publication@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/java/attest-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -855,7 +857,7 @@ jobs: id-token: write attestations: write steps: - - uses: bernardladenthin/actions/java/attest-publication@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + - uses: bernardladenthin/actions/java/attest-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 4ee9060e..1d6d3093 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -14,4 +14,4 @@ permissions: jobs: test: - uses: bernardladenthin/actions/.github/workflows/reuse.yml@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/.github/workflows/reuse.yml@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 48f4863d..0e9da305 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -18,6 +18,6 @@ permissions: jobs: build: - uses: bernardladenthin/actions/.github/workflows/java-sonarqube.yml@68dde11a60623d76c22a3f1975355a236a6ccd39 # v1.2.0 + uses: bernardladenthin/actions/.github/workflows/java-sonarqube.yml@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e4cf6c9..0f846e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -378,6 +378,12 @@ The entries below hold the details; what a 1.4.0 user changes: search scores from `scores/` (Pearson and Spearman, the card's 32 runs by default). ### Changed +- - **Dependabot: one grouped pull request per ecosystem a week, on Saturday.** + `.github/dependabot.yml` is the template of bernardladenthin/actions v1.2.1: every minor and + patch update of Maven, and of the GitHub Actions, comes in one pull request (a major update + stays a pull request of its own), on Saturday, so a week of updates is one merge and one run of + the pipeline on `main`. `common/check-dependabot` in `repository-checks` holds the file to that + rule, and every action and reusable workflow of bernardladenthin/actions is pinned at v1.2.1. - **CI: every artifact upload and download step times out**, after the minutes of the repository variable `ARTIFACT_TIMEOUT_MINUTES`, else 20 (7 steps in `publish.yml`). In a Publish run of java-llama.cpp an `upload-artifact` step hung for hours after a build of a minute and a half, diff --git a/CLAUDE.md b/CLAUDE.md index 773dcd85..8ad3aa31 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -778,6 +778,9 @@ in **`.github/actions-config.json`**: repository variable `ARTIFACT_TIMEOUT_MINUTES`, else 20 minutes (the workflow's top-level `env` reads it; [`../workspace/policies/ci-artifact-timeouts.md`](../workspace/policies/ci-artifact-timeouts.md)), instead of GitHub's 360; +- **Dependabot**: every entry of `.github/dependabot.yml` (the template's) runs weekly on + Saturday and has a group -- minor and patch updates as one pull request per ecosystem, a + major update as one of its own; - **Maven versions** (warnings only): a dependency or plugin (incl. the Spotless formatter version) used here in another version than in a sibling of the `java-maven` family (each sibling's POMs come from its own configuration), and Kotlin Gradle plugins behind the POMs' Kotlin;