diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 63b33f23..7bbf1595 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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/.github/workflows/java-codeql.yml@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 permissions: actions: read contents: read diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml index ca86dff9..c7baf497 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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/.github/workflows/java-maven-dependency-submission.yml@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 permissions: contents: write diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml index d7d93dd2..6a6bb735 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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/.github/workflows/osv-scanner.yml@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 permissions: actions: read contents: read diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1c878f90..86510bf9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -88,19 +88,19 @@ jobs: with: persist-credentials: false - name: Files equal their templates in bernardladenthin/actions - uses: bernardladenthin/actions/common/check-templates@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/check-templates@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Release gate (every job gates both publish jobs, or release-gate-exemptions.txt says why) - uses: bernardladenthin/actions/common/check-release-gate@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/check-release-gate@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Run scripts parse (bash -n over every bash run script of the workflows and actions) - uses: bernardladenthin/actions/common/check-run-scripts@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/check-run-scripts@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Artifact timeouts (every upload/download-artifact step times out after ARTIFACT_TIMEOUT_MINUTES) - uses: bernardladenthin/actions/common/check-artifact-timeouts@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/check-artifact-timeouts@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Dependabot (every update weekly on Saturday, grouped) - uses: bernardladenthin/actions/common/check-dependabot@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/check-dependabot@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Maven versions (warns where a dependency or plugin differs from a sibling repository) - uses: bernardladenthin/actions/java/check-maven-versions@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/check-maven-versions@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Publication wiring and release asset contract (dry run) - uses: bernardladenthin/actions/java/check-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/check-publication@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 # --------------------------------------------------------------------------- # GPG signing-key preflight: what maven-gpg-plugin does at deploy time, so a @@ -119,7 +119,7 @@ jobs: runs-on: ubuntu-latest environment: maven-central steps: - - uses: bernardladenthin/actions/common/verify-gpg-key@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/common/verify-gpg-key@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: private-key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} @@ -140,7 +140,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false - - uses: bernardladenthin/actions/java/verify-signing-key-gradle@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/java/verify-signing-key-gradle@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: private-key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} @@ -207,7 +207,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Display CPU Info - uses: bernardladenthin/actions/common/print-host-info@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/print-host-info@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0 with: java-version-file: .java-version @@ -298,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/print-crash-logs@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: modules: srcmorph srcmorph-cli srcmorph-maven-plugin - name: Upload crash & surefire dumps @@ -351,7 +351,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Display CPU Info - uses: bernardladenthin/actions/common/print-host-info@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/common/print-host-info@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - 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) @@ -424,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/verify-bytecode@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: max-major: "52" paths: | smoke-jars - name: Run the jar - uses: bernardladenthin/actions/java/smoke-fatjar-cli@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/smoke-fatjar-cli@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: jar-dir: smoke-jars jar-glob: 'srcmorph.jar' @@ -442,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/smoke-fatjar-cli@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: jar-dir: smoke-jars jar-glob: 'srcmorph.jar' @@ -626,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/check-release-ref@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: snapshot @@ -641,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/check-release-ref@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: release @@ -686,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/common/setup@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Show effective POM (debug) run: mvn --batch-mode --no-transfer-progress -P release -DskipUpload=true help:effective-pom - name: Stage snapshot @@ -697,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/finalize-publication@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: snapshot maven-assets: central-assets @@ -714,7 +714,7 @@ jobs: permissions: contents: write steps: - - uses: bernardladenthin/actions/java/publish-github@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/java/publish-github@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -752,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/common/setup@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 - name: Show effective POM (debug) run: mvn --batch-mode --no-transfer-progress -P release -DskipUpload=true help:effective-pom - name: Stage release @@ -763,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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/finalize-publication@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: release maven-assets: central-assets @@ -777,7 +777,7 @@ jobs: permissions: contents: write steps: - - uses: bernardladenthin/actions/java/publish-github@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/java/publish-github@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} @@ -802,7 +802,7 @@ jobs: with: persist-credentials: false - name: Transfer frozen artifacts (no rebuild, signing or validation polling) - uses: bernardladenthin/actions/java/publish-central@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/publish-central@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -823,7 +823,7 @@ jobs: with: persist-credentials: false - name: Transfer frozen artifacts (no rebuild, signing or validation polling) - uses: bernardladenthin/actions/java/publish-central@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/java/publish-central@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} @@ -841,7 +841,7 @@ jobs: id-token: write attestations: write steps: - - uses: bernardladenthin/actions/java/attest-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/java/attest-publication@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: snapshot assets-complete: ${{ needs.publish-snapshot.outputs.assets_complete }} @@ -857,7 +857,7 @@ jobs: id-token: write attestations: write steps: - - uses: bernardladenthin/actions/java/attest-publication@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + - uses: bernardladenthin/actions/java/attest-publication@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 with: channel: release assets-complete: ${{ needs.publish-release.outputs.assets_complete }} diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 1d6d3093..782f3327 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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/.github/workflows/reuse.yml@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 0e9da305..4b8b40d3 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@f62f8f48b84f4789ef57af563d364b2c0b658ab0 # v1.2.1 + uses: bernardladenthin/actions/.github/workflows/java-sonarqube.yml@379fb9448915b8ce7153f6ec5fa65544205196db # v1.2.2 secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index b90edf7b..8a7bbb15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -384,6 +384,11 @@ The entries below hold the details; what a 1.4.0 user changes: 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. +- **bernardladenthin/actions v1.2.2.** The snapshot publication no longer deletes the `snapshot` tag + when GitHub refuses the workflow token the move (a 403 after a change to a workflow file): the + tag stays where it is, the run warns with the command that moves it, and the pre-release is + updated all the same. Before, the fallback deleted the tag, could not create it again, and left + the pre-release a draft (java-llama.cpp, Publish run 42708115919). - **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,