From ec87c2162f08572b47eb1fea55ed819fd1a39b08 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Thu, 1 Oct 2026 15:35:34 +0200 Subject: [PATCH 01/15] Pin geti-ci actions Signed-off-by: Zakharov, Ivan --- .github/actions/docker-build/action.yml | 2 +- .github/renovate.json5 | 22 ++++++++++++------- .github/workflows/_reusable-docker-build.yaml | 4 ++-- .../workflows/_reusable-security-scan.yaml | 4 ++-- .github/workflows/anomalib-studio.yaml | 2 +- .github/workflows/daily-docker-publish.yml | 2 +- .github/workflows/pr.yaml | 4 ++-- .github/workflows/promote-rc-app-release.yml | 2 +- .github/workflows/publish-rc-app.yml | 2 +- .github/workflows/tauri-build.yaml | 2 +- 10 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.github/actions/docker-build/action.yml b/.github/actions/docker-build/action.yml index 9cee97f0de..65f45e5c4a 100644 --- a/.github/actions/docker-build/action.yml +++ b/.github/actions/docker-build/action.yml @@ -43,7 +43,7 @@ runs: using: composite steps: - name: Cleanup runner - uses: open-edge-platform/geti-ci/actions/cleanup-runner@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/cleanup-runner@6f29a1ff715a9770e024317f30db57bdc0e16418 # cleanup-runner/v0.1.0 with: type: all diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 5b827ae077..2e4cd5e04c 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -28,14 +28,10 @@ // "never") so a fresh lock PR is opened whenever new lock changes appear. // These PRs are immortal by design; that is acceptable now that the lock // no longer reintroduces blocked CVEs and is mergeable. - - // FIXME: re-enable automerge once the issue is resolved - // https://github.com/open-edge-platform/anomalib/issues/3666 - // - // automerge: true, - // automergeType: "pr", - // reviewers: ["sys-geti"], - // platformAutomerge: true, + automerge: true, + automergeType: "pr", + reviewers: ["sys-geti"], + platformAutomerge: true, // Renovate does not assign reviewers and assignees to // automerge-enabled PR unless it fails status checks. @@ -167,6 +163,16 @@ schedule: ["* * 1 * *"], // every month }, + // Custom semver versioning for geti-ci actions to support tags like zizmor/v0.1.0 + { + groupName: "GitHub Actions", + matchManagers: ["github-actions"], + matchPackageNames: ["open-edge-platform/geti-ci"], + schedule: ["* * 1 * *"], // every month + versioning: + "regex:^(?[^/]+)/v?(?\\d+)\\.(?\\d+)\\.(?\\d+)$", + }, + // uv version used in GitHub Actions is updated manually { enabled: false, diff --git a/.github/workflows/_reusable-docker-build.yaml b/.github/workflows/_reusable-docker-build.yaml index 84d4775df3..6b4c8b7935 100644 --- a/.github/workflows/_reusable-docker-build.yaml +++ b/.github/workflows/_reusable-docker-build.yaml @@ -58,12 +58,12 @@ jobs: persist-credentials: false - name: Initial cleanup - uses: open-edge-platform/geti-ci/actions/cleanup-runner@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/cleanup-runner@6f29a1ff715a9770e024317f30db57bdc0e16418 # cleanup-runner/v0.1.0 with: type: "initial" - name: Pre-build cleanup - uses: open-edge-platform/geti-ci/actions/cleanup-runner@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/cleanup-runner@6f29a1ff715a9770e024317f30db57bdc0e16418 # cleanup-runner/v0.1.0 with: type: "pre-build" diff --git a/.github/workflows/_reusable-security-scan.yaml b/.github/workflows/_reusable-security-scan.yaml index 02fa5447eb..a1fbaac01d 100644 --- a/.github/workflows/_reusable-security-scan.yaml +++ b/.github/workflows/_reusable-security-scan.yaml @@ -97,7 +97,7 @@ jobs: with: persist-credentials: false - name: Run Bandit scan - uses: open-edge-platform/geti-ci/actions/bandit@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/bandit@b9abdfc0ecbe989816a7f2cf582af771f9abbb87 # bandit/v0.1.3 with: scan-scope: ${{ inputs.scan-scope }} severity-level: ${{ inputs.severity-level }} @@ -171,7 +171,7 @@ jobs: with: persist-credentials: false - name: Run Zizmor scan - uses: open-edge-platform/geti-ci/actions/zizmor@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/zizmor@27a17d738348699840c32f98edc9947f21278154 # zizmor/v0.1.5 with: scan-scope: ${{ inputs.scan-scope }} severity-level: ${{ inputs.severity-level }} diff --git a/.github/workflows/anomalib-studio.yaml b/.github/workflows/anomalib-studio.yaml index a466c62aaa..6e8c793ae3 100644 --- a/.github/workflows/anomalib-studio.yaml +++ b/.github/workflows/anomalib-studio.yaml @@ -39,7 +39,7 @@ jobs: - name: Check paths id: check_paths - uses: open-edge-platform/geti-ci/actions/check-paths@7e686c1248b3939f8ee8e04e2612da727e379d91 + uses: open-edge-platform/geti-ci/actions/check-paths@2ed3ce382d1dbd6db52c7c6b93ffdae280a1c06f # check-paths/v0.1.0 with: files_yaml: | test: diff --git a/.github/workflows/daily-docker-publish.yml b/.github/workflows/daily-docker-publish.yml index 6cf98e261f..ed6412f746 100644 --- a/.github/workflows/daily-docker-publish.yml +++ b/.github/workflows/daily-docker-publish.yml @@ -80,6 +80,6 @@ jobs: echo "tag=${TAG}" >> "$GITHUB_OUTPUT" - name: Sign Docker image - uses: open-edge-platform/geti-ci/actions/sign-image@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/sign-image@3690cbcc173cf90e0e0999b4822c3f8ebab9c137 # sign-image/v0.1.2 with: image-uri: ${{ steps.primary-tag.outputs.tag }} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f42bf99bae..5dd6548e69 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -125,7 +125,7 @@ jobs: - name: Check paths id: check-library-paths - uses: open-edge-platform/geti-ci/actions/check-paths@7e686c1248b3939f8ee8e04e2612da727e379d91 + uses: open-edge-platform/geti-ci/actions/check-paths@2ed3ce382d1dbd6db52c7c6b93ffdae280a1c06f # check-paths/v0.1.0 with: files_yaml: | test: @@ -222,7 +222,7 @@ jobs: - name: Check paths id: check-paths - uses: open-edge-platform/geti-ci/actions/check-paths@7e686c1248b3939f8ee8e04e2612da727e379d91 + uses: open-edge-platform/geti-ci/actions/check-paths@2ed3ce382d1dbd6db52c7c6b93ffdae280a1c06f # check-paths/v0.1.0 with: files_yaml: | test: diff --git a/.github/workflows/promote-rc-app-release.yml b/.github/workflows/promote-rc-app-release.yml index f862fe0b09..2ba5bc04f3 100644 --- a/.github/workflows/promote-rc-app-release.yml +++ b/.github/workflows/promote-rc-app-release.yml @@ -259,7 +259,7 @@ jobs: docker push "${TARGET_IMAGE}" - name: Sign Docker image - uses: open-edge-platform/geti-ci/actions/sign-image@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/sign-image@3690cbcc173cf90e0e0999b4822c3f8ebab9c137 # sign-image/v0.1.2 with: image-uri: ghcr.io/open-edge-platform/anomalib-studio-${{ matrix.device }}:${{ needs.validate.outputs.docker_patch_tag }} diff --git a/.github/workflows/publish-rc-app.yml b/.github/workflows/publish-rc-app.yml index 388cd44801..e2245c2988 100644 --- a/.github/workflows/publish-rc-app.yml +++ b/.github/workflows/publish-rc-app.yml @@ -197,7 +197,7 @@ jobs: use-cache: "false" # Disable cache for RC builds (security and reproducibility) - name: Sign Docker image - uses: open-edge-platform/geti-ci/actions/sign-image@7d25e47329bbfcde4ee51ab3581aea8613e245e2 + uses: open-edge-platform/geti-ci/actions/sign-image@3690cbcc173cf90e0e0999b4822c3f8ebab9c137 # sign-image/v0.1.2 with: image-uri: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/tauri-build.yaml b/.github/workflows/tauri-build.yaml index 721f7a709d..47bf4727ab 100644 --- a/.github/workflows/tauri-build.yaml +++ b/.github/workflows/tauri-build.yaml @@ -68,7 +68,7 @@ jobs: - name: Check paths id: check_paths - uses: open-edge-platform/geti-ci/actions/check-paths@7e686c1248b3939f8ee8e04e2612da727e379d91 + uses: open-edge-platform/geti-ci/actions/check-paths@2ed3ce382d1dbd6db52c7c6b93ffdae280a1c06f # check-paths/v0.1.0 with: files_yaml: | test: From 7e84de5e1e752c611f2703e3790804f0ac5c6ac7 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Thu, 1 Oct 2026 15:53:38 +0200 Subject: [PATCH 02/15] Address zizmor issue Signed-off-by: Zakharov, Ivan --- .github/workflows/npm-audit-fix.yml | 2 ++ .github/workflows/renovate.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/npm-audit-fix.yml b/.github/workflows/npm-audit-fix.yml index 04234b392a..88664480e8 100644 --- a/.github/workflows/npm-audit-fix.yml +++ b/.github/workflows/npm-audit-fix.yml @@ -96,6 +96,8 @@ jobs: with: app-id: ${{ secrets.RENOVATE_APP_ID }} private-key: ${{ secrets.RENOVATE_APP_PEM }} + permission-contents: write + permission-pull-requests: write - name: Create PR if lockfile changed if: steps.check-changes.outputs.changed == 'true' diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index ade0268720..687b9c22b4 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -76,6 +76,10 @@ jobs: with: app-id: ${{ secrets.RENOVATE_APP_ID }} private-key: ${{ secrets.RENOVATE_APP_PEM }} + permission-contents: write + permission-pull-requests: write + permission-issues: write + permission-workflows: write - name: Self-hosted Renovate uses: renovatebot/github-action@9fea9f0fbf80401026d11d03911d62b1f70fef1f # v46.3.3 From f6df94d66cc49c98700f11eda001707c03fd7728 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Thu, 1 Oct 2026 15:55:34 +0200 Subject: [PATCH 03/15] Address prettier issue Signed-off-by: Zakharov, Ivan --- .github/renovate.json5 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 2e4cd5e04c..3cb07a1ec7 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -169,8 +169,7 @@ matchManagers: ["github-actions"], matchPackageNames: ["open-edge-platform/geti-ci"], schedule: ["* * 1 * *"], // every month - versioning: - "regex:^(?[^/]+)/v?(?\\d+)\\.(?\\d+)\\.(?\\d+)$", + versioning: "regex:^(?[^/]+)/v?(?\\d+)\\.(?\\d+)\\.(?\\d+)$", }, // uv version used in GitHub Actions is updated manually From 8dd53b2b9b5afd6d7fd9a93d89759ac632962551 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Thu, 1 Oct 2026 16:11:56 +0200 Subject: [PATCH 04/15] Zizmor remediation with archived prettier repo Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-security-scan.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/_reusable-security-scan.yaml b/.github/workflows/_reusable-security-scan.yaml index a1fbaac01d..df2b9a7d73 100644 --- a/.github/workflows/_reusable-security-scan.yaml +++ b/.github/workflows/_reusable-security-scan.yaml @@ -177,6 +177,8 @@ jobs: severity-level: ${{ inputs.severity-level }} confidence-level: ${{ inputs.confidence-level }} fail-on-findings: ${{ inputs.fail-on-findings }} + # TODO: Resolve archived-uses issue with https://github.com/pre-commit/mirrors-prettier repository introduced in v1.18.0 + zizmor-version: v1.18.0 dast-scan: if: contains(inputs.tools, 'dast-scan') From 8d1551d5915fe03423c4d3281a25de92b5d4a96c Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Thu, 1 Oct 2026 17:53:28 +0200 Subject: [PATCH 05/15] Revert zizmor downgrade Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-security-scan.yaml | 2 -- .github/workflows/renovate.yml | 11 ++++++++++- .pre-commit-config.yaml | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/_reusable-security-scan.yaml b/.github/workflows/_reusable-security-scan.yaml index df2b9a7d73..a1fbaac01d 100644 --- a/.github/workflows/_reusable-security-scan.yaml +++ b/.github/workflows/_reusable-security-scan.yaml @@ -177,8 +177,6 @@ jobs: severity-level: ${{ inputs.severity-level }} confidence-level: ${{ inputs.confidence-level }} fail-on-findings: ${{ inputs.fail-on-findings }} - # TODO: Resolve archived-uses issue with https://github.com/pre-commit/mirrors-prettier repository introduced in v1.18.0 - zizmor-version: v1.18.0 dast-scan: if: contains(inputs.tools, 'dast-scan') diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 687b9c22b4..16bccbc3dd 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -76,10 +76,19 @@ jobs: with: app-id: ${{ secrets.RENOVATE_APP_ID }} private-key: ${{ secrets.RENOVATE_APP_PEM }} + # Repository permissions + permission-administration: read + permission-checks: write + permission-statuses: write permission-contents: write - permission-pull-requests: write + permission-vulnerability-alerts: read permission-issues: write + permission-metadata: read + permission-pull-requests: write permission-workflows: write + # Organization permissions + permission-organization-administration: read + permission-members: read - name: Self-hosted Renovate uses: renovatebot/github-action@9fea9f0fbf80401026d11d03911d62b1f70fef1f # v46.3.3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66e3ead1af..cd32727f2e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,7 +72,7 @@ repos: # packages in a different order than the rest of the codebase. args: ["--ignore=D100,D407,I001,E402,B018"] - - repo: https://github.com/pre-commit/mirrors-prettier + - repo: https://github.com/pre-commit/mirrors-prettier # zizmor: ignore[archived-uses] archived but read-only/frozen; local-only formatting hook, not used in CI rev: v4.0.0-alpha.8 hooks: - id: prettier From 475fa2de06df1f1bb07b198531f4da03d129e033 Mon Sep 17 00:00:00 2001 From: Ivan Zakharov Date: Fri, 2 Oct 2026 08:49:04 +0100 Subject: [PATCH 06/15] Potential fix for pull request finding 'Update inaccurate Prettier hook suppression rationale' Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ivan Zakharov --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd32727f2e..08d98bdd4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,7 +72,8 @@ repos: # packages in a different order than the rest of the codebase. args: ["--ignore=D100,D407,I001,E402,B018"] - - repo: https://github.com/pre-commit/mirrors-prettier # zizmor: ignore[archived-uses] archived but read-only/frozen; local-only formatting hook, not used in CI + # TODO: Replace this archived mirror when a maintained Prettier hook is available. + - repo: https://github.com/pre-commit/mirrors-prettier # zizmor: ignore[archived-uses] rev: v4.0.0-alpha.8 hooks: - id: prettier From 49b3b0265286f5fa2ad80a79bb475ff4db913e4c Mon Sep 17 00:00:00 2001 From: Ivan Zakharov Date: Fri, 2 Oct 2026 09:24:31 +0100 Subject: [PATCH 07/15] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ivan Zakharov --- .github/renovate.json5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 3cb07a1ec7..f4bcd8ec40 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -167,7 +167,7 @@ { groupName: "GitHub Actions", matchManagers: ["github-actions"], - matchPackageNames: ["open-edge-platform/geti-ci"], + matchPackagePatterns: ["^open-edge-platform/geti-ci/actions/"], schedule: ["* * 1 * *"], // every month versioning: "regex:^(?[^/]+)/v?(?\\d+)\\.(?\\d+)\\.(?\\d+)$", }, From d833d47a9525e8d3cc840d8f68bdf58e485ceb80 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Fri, 2 Oct 2026 10:44:25 +0200 Subject: [PATCH 08/15] Fix zizmor self-repository findings Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-test-suite.yaml | 2 +- .github/workflows/daily-docker-publish.yml | 2 +- .github/workflows/pr.yaml | 12 ++++++------ .github/workflows/publish-rc-app.yml | 2 +- .github/workflows/release-lib.yaml | 10 +++++----- .github/workflows/security-checks.yaml | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/_reusable-test-suite.yaml b/.github/workflows/_reusable-test-suite.yaml index 814c2fff07..be83e467ec 100644 --- a/.github/workflows/_reusable-test-suite.yaml +++ b/.github/workflows/_reusable-test-suite.yaml @@ -119,7 +119,7 @@ jobs: with: persist-credentials: false - name: Run tests - uses: ./.github/actions/pytest + uses: $/.github/actions/pytest with: python-version: ${{ inputs.python-version }} test-type: ${{ inputs.test-type }} diff --git a/.github/workflows/daily-docker-publish.yml b/.github/workflows/daily-docker-publish.yml index ed6412f746..56547ae49f 100644 --- a/.github/workflows/daily-docker-publish.yml +++ b/.github/workflows/daily-docker-publish.yml @@ -61,7 +61,7 @@ jobs: type=raw,value=${{ github.ref_name }} - name: Build and push Docker image - uses: ./.github/actions/docker-build + uses: $/.github/actions/docker-build with: device: ${{ matrix.device }} push: "true" diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5dd6548e69..57b50bd94a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -74,7 +74,7 @@ jobs: # PR title validation - only runs on actual pull requests, not merge groups pr-title-check: if: github.event_name == 'pull_request' - uses: ./.github/workflows/_reusable-pr-title-check.yaml + uses: $/.github/workflows/_reusable-pr-title-check.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -83,7 +83,7 @@ jobs: # Code quality - covers both library (src/) and application/ via prek workspace mode quality: if: github.event.pull_request.draft != true - uses: ./.github/workflows/_reusable-code-quality.yaml + uses: $/.github/workflows/_reusable-code-quality.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -92,7 +92,7 @@ jobs: # Security scanning security: if: github.event.pull_request.draft != true - uses: ./.github/workflows/_reusable-security-scan.yaml + uses: $/.github/workflows/_reusable-security-scan.yaml permissions: security-events: write # needed to upload results contents: read @@ -145,7 +145,7 @@ jobs: unit-tests: needs: check-library-paths if: needs.check-library-paths.outputs.run_library == 'true' && github.event.pull_request.draft != true - uses: ./.github/workflows/_reusable-test-suite.yaml + uses: $/.github/workflows/_reusable-test-suite.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -159,7 +159,7 @@ jobs: integration-tests: needs: check-library-paths if: needs.check-library-paths.outputs.run_library == 'true' && github.event.pull_request.draft != true - uses: ./.github/workflows/_reusable-test-suite.yaml + uses: $/.github/workflows/_reusable-test-suite.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -234,7 +234,7 @@ jobs: name: Build and upload docker image needs: check-paths if: needs.check-paths.outputs.run_build == 'true' && github.event.pull_request.draft != true - uses: ./.github/workflows/_reusable-docker-build.yaml + uses: $/.github/workflows/_reusable-docker-build.yaml permissions: contents: read # write permissions are required to update PR comments with image sizes diff --git a/.github/workflows/publish-rc-app.yml b/.github/workflows/publish-rc-app.yml index e2245c2988..3002182f77 100644 --- a/.github/workflows/publish-rc-app.yml +++ b/.github/workflows/publish-rc-app.yml @@ -188,7 +188,7 @@ jobs: type=raw,value=${{ needs.validate.outputs.rc_version }} - name: Build and push Docker image - uses: ./.github/actions/docker-build + uses: $/.github/actions/docker-build with: device: ${{ matrix.device }} push: "true" diff --git a/.github/workflows/release-lib.yaml b/.github/workflows/release-lib.yaml index 9b75fc5d35..b6598ff2ab 100644 --- a/.github/workflows/release-lib.yaml +++ b/.github/workflows/release-lib.yaml @@ -97,7 +97,7 @@ jobs: quality: needs: [version-check] - uses: ./.github/workflows/_reusable-code-quality.yaml + uses: $/.github/workflows/_reusable-code-quality.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -105,7 +105,7 @@ jobs: unit-tests: needs: [version-check] - uses: ./.github/workflows/_reusable-test-suite.yaml + uses: $/.github/workflows/_reusable-test-suite.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -118,7 +118,7 @@ jobs: integration-tests: needs: [version-check] - uses: ./.github/workflows/_reusable-test-suite.yaml + uses: $/.github/workflows/_reusable-test-suite.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: @@ -131,7 +131,7 @@ jobs: security: needs: [version-check] - uses: ./.github/workflows/_reusable-security-scan.yaml + uses: $/.github/workflows/_reusable-security-scan.yaml permissions: security-events: write # Required to upload SARIF scan results to the Security tab packages: read @@ -147,7 +147,7 @@ jobs: if: | !inputs.dry_run && !failure() && !cancelled() - uses: ./.github/workflows/_reusable-artifact-builder.yaml + uses: $/.github/workflows/_reusable-artifact-builder.yaml permissions: contents: read # Required by the called workflow to checkout the repository with: diff --git a/.github/workflows/security-checks.yaml b/.github/workflows/security-checks.yaml index 22b23d3607..eab77afbb1 100644 --- a/.github/workflows/security-checks.yaml +++ b/.github/workflows/security-checks.yaml @@ -99,7 +99,7 @@ permissions: {} # No permissions by default on workflow level jobs: security: - uses: ./.github/workflows/_reusable-security-scan.yaml + uses: $/.github/workflows/_reusable-security-scan.yaml permissions: contents: read packages: read # needed to pull images for scanning From 374fa759ccfee967b7b44720719bae60bcc4ff77 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Fri, 2 Oct 2026 12:11:57 +0200 Subject: [PATCH 09/15] Address semgrep issue Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-test-suite.yaml | 2 +- .github/workflows/daily-docker-publish.yml | 2 +- .github/workflows/publish-rc-app.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_reusable-test-suite.yaml b/.github/workflows/_reusable-test-suite.yaml index be83e467ec..13d10b2300 100644 --- a/.github/workflows/_reusable-test-suite.yaml +++ b/.github/workflows/_reusable-test-suite.yaml @@ -119,7 +119,7 @@ jobs: with: persist-credentials: false - name: Run tests - uses: $/.github/actions/pytest + uses: $/.github/actions/pytest # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin with: python-version: ${{ inputs.python-version }} test-type: ${{ inputs.test-type }} diff --git a/.github/workflows/daily-docker-publish.yml b/.github/workflows/daily-docker-publish.yml index 56547ae49f..c18027d519 100644 --- a/.github/workflows/daily-docker-publish.yml +++ b/.github/workflows/daily-docker-publish.yml @@ -61,7 +61,7 @@ jobs: type=raw,value=${{ github.ref_name }} - name: Build and push Docker image - uses: $/.github/actions/docker-build + uses: $/.github/actions/docker-build # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin with: device: ${{ matrix.device }} push: "true" diff --git a/.github/workflows/publish-rc-app.yml b/.github/workflows/publish-rc-app.yml index 3002182f77..cfd0f56110 100644 --- a/.github/workflows/publish-rc-app.yml +++ b/.github/workflows/publish-rc-app.yml @@ -188,7 +188,7 @@ jobs: type=raw,value=${{ needs.validate.outputs.rc_version }} - name: Build and push Docker image - uses: $/.github/actions/docker-build + uses: $/.github/actions/docker-build # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin with: device: ${{ matrix.device }} push: "true" From a75ab94e6d773379cbc33a199c62bcd30601fbd0 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Fri, 2 Oct 2026 13:42:59 +0200 Subject: [PATCH 10/15] Bump up zizmor-pre-commit version Signed-off-by: Zakharov, Ivan --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08d98bdd4e..c9d9636d87 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -92,7 +92,7 @@ repos: # zizmor detects security issues in GitHub Actions workflows. - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.9.0 + rev: v1.30.1 hooks: - id: zizmor args: ["--min-severity", "medium", "--min-confidence", "high"] From d556bf3a39f3dc1a2da3efc92cd7c49919afc7f0 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Mon, 5 Oct 2026 12:38:14 +0200 Subject: [PATCH 11/15] Revert $ syntax for local actions Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-test-suite.yaml | 2 +- .github/workflows/daily-docker-publish.yml | 2 +- .github/workflows/publish-rc-app.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_reusable-test-suite.yaml b/.github/workflows/_reusable-test-suite.yaml index 13d10b2300..814c2fff07 100644 --- a/.github/workflows/_reusable-test-suite.yaml +++ b/.github/workflows/_reusable-test-suite.yaml @@ -119,7 +119,7 @@ jobs: with: persist-credentials: false - name: Run tests - uses: $/.github/actions/pytest # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin + uses: ./.github/actions/pytest with: python-version: ${{ inputs.python-version }} test-type: ${{ inputs.test-type }} diff --git a/.github/workflows/daily-docker-publish.yml b/.github/workflows/daily-docker-publish.yml index c18027d519..ed6412f746 100644 --- a/.github/workflows/daily-docker-publish.yml +++ b/.github/workflows/daily-docker-publish.yml @@ -61,7 +61,7 @@ jobs: type=raw,value=${{ github.ref_name }} - name: Build and push Docker image - uses: $/.github/actions/docker-build # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin + uses: ./.github/actions/docker-build with: device: ${{ matrix.device }} push: "true" diff --git a/.github/workflows/publish-rc-app.yml b/.github/workflows/publish-rc-app.yml index cfd0f56110..e2245c2988 100644 --- a/.github/workflows/publish-rc-app.yml +++ b/.github/workflows/publish-rc-app.yml @@ -188,7 +188,7 @@ jobs: type=raw,value=${{ needs.validate.outputs.rc_version }} - name: Build and push Docker image - uses: $/.github/actions/docker-build # nosemgrep: yaml.github-actions.security.github-actions-mutable-action-tag.github-actions-mutable-action-tag # self-repository syntax has no ref to pin + uses: ./.github/actions/docker-build with: device: ${{ matrix.device }} push: "true" From 251ae25efbd37abfb78840c05e8faa154ec6f73e Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Mon, 5 Oct 2026 13:15:53 +0200 Subject: [PATCH 12/15] Use absolute repo path for local actions Signed-off-by: Zakharov, Ivan --- .github/workflows/_reusable-test-suite.yaml | 2 +- .github/workflows/daily-docker-publish.yml | 2 +- .github/workflows/publish-rc-app.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_reusable-test-suite.yaml b/.github/workflows/_reusable-test-suite.yaml index 814c2fff07..beb7099297 100644 --- a/.github/workflows/_reusable-test-suite.yaml +++ b/.github/workflows/_reusable-test-suite.yaml @@ -119,7 +119,7 @@ jobs: with: persist-credentials: false - name: Run tests - uses: ./.github/actions/pytest + uses: open-edge-platform/anomalib/.github/actions/pytest@1f503a6c3614e2637472cdb6d9ca21054c83ac26 with: python-version: ${{ inputs.python-version }} test-type: ${{ inputs.test-type }} diff --git a/.github/workflows/daily-docker-publish.yml b/.github/workflows/daily-docker-publish.yml index ed6412f746..a90454d9ef 100644 --- a/.github/workflows/daily-docker-publish.yml +++ b/.github/workflows/daily-docker-publish.yml @@ -61,7 +61,7 @@ jobs: type=raw,value=${{ github.ref_name }} - name: Build and push Docker image - uses: ./.github/actions/docker-build + uses: open-edge-platform/anomalib/.github/actions/docker-build@ec87c2162f08572b47eb1fea55ed819fd1a39b08 with: device: ${{ matrix.device }} push: "true" diff --git a/.github/workflows/publish-rc-app.yml b/.github/workflows/publish-rc-app.yml index e2245c2988..e2fd59c917 100644 --- a/.github/workflows/publish-rc-app.yml +++ b/.github/workflows/publish-rc-app.yml @@ -188,7 +188,7 @@ jobs: type=raw,value=${{ needs.validate.outputs.rc_version }} - name: Build and push Docker image - uses: ./.github/actions/docker-build + uses: open-edge-platform/anomalib/.github/actions/docker-build@ec87c2162f08572b47eb1fea55ed819fd1a39b08 with: device: ${{ matrix.device }} push: "true" From dd73828097dcbcef62cf03f45b3b68a0230bed86 Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Mon, 5 Oct 2026 14:33:39 +0200 Subject: [PATCH 13/15] Fix transformers low bound version in CI Signed-off-by: Zakharov, Ivan --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f6b68d8cc5..676003bd4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,9 @@ clip = [ # 'aten::_native_multi_head_attention' to ONNX opset version 14 is not supported "open-clip-torch>=2.23.0,<2.26.1", ] -vlm = ["ollama>=0.4.0", "openai", "python-dotenv", "transformers"] +# lower bound prevents resolver backtracking to ancient transformers releases +# whose pinned tokenizers version fails to build on current Rust toolchains +vlm = ["ollama>=0.4.0", "openai", "python-dotenv", "transformers>=4.30"] video = ["av>=10.0.0", "requests"] loggers = [ "comet-ml>=3.31.7", From 31ff0e5c9a6cb867ece40beb489e709b2ffc708a Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Mon, 5 Oct 2026 14:37:35 +0200 Subject: [PATCH 14/15] Update uv.lock to match current dependencies Signed-off-by: Zakharov, Ivan --- application/backend/uv.lock | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/application/backend/uv.lock b/application/backend/uv.lock index 26f01552bc..a26b065a69 100644 --- a/application/backend/uv.lock +++ b/application/backend/uv.lock @@ -75,6 +75,8 @@ dependencies = [ ] sdist = { url = "https://files.pythonhosted.org/packages/58/d9/22ce5786ac0c1653ae8b6c23bded02c1686d11f0dbb45b31ce128e0df985/aiohttp-3.14.3.tar.gz", hash = "sha256:9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc", size = 7971213, upload-time = "2026-07-23T01:57:27.037Z" } wheels = [ + { url = "https://files.pythonhosted.org/packages/57/be/5afd201cc0ab139029aadb75392efe85a293403d9dd3a3226161c21ce00c/aiohttp-3.14.3-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:2e9878ae68e4a5f1c0abe4dd497dbc3d51946f5837b56759e2a02e78fa90ef86", size = 506269, upload-time = "2026-07-23T01:54:49.075Z" }, + { url = "https://files.pythonhosted.org/packages/22/09/dec8189d62b45ade009f6792a2264b942a90cb88aeaf181239933cd72c3c/aiohttp-3.14.3-cp313-cp313-android_21_x86_64.whl", hash = "sha256:f3d2669fe7dec7fc359ecdb5984b29b50d85d5d00f8c1cb61de4f4a24ee42627", size = 515166, upload-time = "2026-07-23T01:54:51.894Z" }, { url = "https://files.pythonhosted.org/packages/28/24/2854869d29ed8a8b19d74f9ec6629515f7e04d02dd329d9d179201e58e47/aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:cc7cb243a68167172f48c1fd43cee91ec4b1d40cefd190edd43369d1a6bc9c82", size = 486263, upload-time = "2026-07-23T01:54:54.223Z" }, { url = "https://files.pythonhosted.org/packages/d4/dd/57187c8be2a35aea65eaee3bd2c3dcbbcf0204f5106c89637e3610380cd1/aiohttp-3.14.3-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:78253b573e6ffab5028924fc98bc281aae05445969982a10864bc360dea2016c", size = 492299, upload-time = "2026-07-23T01:54:56.236Z" }, { url = "https://files.pythonhosted.org/packages/b9/11/06ae6ed8f0d414edf4068861e233d8fe23ee699bfd4b3ceb8663db948a62/aiohttp-3.14.3-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7041d52c3a7fa20c9e8c182b534704abb19502c8bdcbde7ab23bfda6f642394f", size = 502235, upload-time = "2026-07-23T01:54:58.377Z" }, @@ -377,9 +379,9 @@ requires-dist = [ { name = "torchvision", marker = "extra == 'cpu'", specifier = ">=0.21.0", index = "https://download.pytorch.org/whl/cpu", conflict = { package = "anomalib", extra = "cpu" } }, { name = "tox", marker = "extra == 'dev'" }, { name = "tox", marker = "extra == 'test'" }, - { name = "transformers", marker = "extra == 'dev'" }, - { name = "transformers", marker = "extra == 'full'" }, - { name = "transformers", marker = "extra == 'vlm'" }, + { name = "transformers", marker = "extra == 'dev'", specifier = ">=4.30" }, + { name = "transformers", marker = "extra == 'full'", specifier = ">=4.30" }, + { name = "transformers", marker = "extra == 'vlm'", specifier = ">=4.30" }, { name = "triton-rocm", marker = "sys_platform == 'linux' and extra == 'rocm'", index = "https://download.pytorch.org/whl/rocm7.2", conflict = { package = "anomalib", extra = "rocm" } }, { name = "triton-xpu", marker = "(sys_platform == 'linux' and extra == 'xpu') or (sys_platform == 'win32' and extra == 'xpu')", index = "https://download.pytorch.org/whl/xpu", conflict = { package = "anomalib", extra = "xpu" } }, { name = "wandb", marker = "extra == 'dev'" }, @@ -583,6 +585,8 @@ version = "3.5.1" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/e5/3f/143b048436775b0f76ac3eec145c019e8173ccc2885c8f20319b996d5e83/charset_normalizer-3.5.1.tar.gz", hash = "sha256:6117b84ea48435e5356dc737f5121485c30920ba43375fa7b434fd753df0eac3", size = 171764, upload-time = "2026-08-15T08:20:44.807Z" } wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/61/2cb6ad133dbbb449fa2d37ccae973232f4827e799af258d15e589a3d1e9e/charset_normalizer-3.5.1-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:4f298bdadb8f0b9e5672877f647d1be9373ef5320c9e2f049795e26cad28b6a9", size = 211584, upload-time = "2026-08-15T08:17:33.597Z" }, + { url = "https://files.pythonhosted.org/packages/18/57/a305c968be1ca13f3dd1b32f445877e97addf55d80b65c7cb35fac82b777/charset_normalizer-3.5.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:88ca277405c2d3b71c4e1c2ee0e7966e807bcba86a69d11e19ba199d18ae4491", size = 223359, upload-time = "2026-08-15T08:17:35.022Z" }, { url = "https://files.pythonhosted.org/packages/09/0a/d3646670292ce8d8f8cc11ac067d44885e697a5591f57a9221128da5e7b3/charset_normalizer-3.5.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:9362dd90aa7dab48c0054a21187791ccf05473f7dba5d92b8033ae62164675e7", size = 194464, upload-time = "2026-08-15T08:17:36.452Z" }, { url = "https://files.pythonhosted.org/packages/de/93/d51ec556e01042fed6f993ea859311bc7917b466684182fbbceb6ca24762/charset_normalizer-3.5.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:977cdbd483a9cff38179bea4fd754289a6f2195c7abd414aba85410b3e66cc5e", size = 197676, upload-time = "2026-08-15T08:17:37.819Z" }, { url = "https://files.pythonhosted.org/packages/a4/a0/562247944386f7d4ef94467e84876600cc1e0f1b93239aaa9213d2bc3cbd/charset_normalizer-3.5.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e90251c0c7bdd54a100a0dce3c07b7e637278c93af29dbf78ebb89a58c4bac7d", size = 340473, upload-time = "2026-08-15T08:17:39.303Z" }, @@ -1732,6 +1736,7 @@ version = "6.8.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/14/95/989c1b5ca17b72128661530cd6e351a0a83cda9a4d6c036e9ed976c18931/multidict-6.8.0.tar.gz", hash = "sha256:5cd4637ce76312ba1e05eb9c5193fec231f64fee0944e135fa1e951242355b37", size = 122412, upload-time = "2026-09-09T13:57:57.967Z" } wheels = [ + { url = "https://files.pythonhosted.org/packages/84/1f/d7112c2dd7db02677097be72fb65542f51a5aa73cb472b87ec211ba9e0dd/multidict-6.8.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:ec0a4d066356054d569a66e0a94691a2058b680be5e710298f61db11a3c4609f", size = 54197, upload-time = "2026-09-09T13:54:20.814Z" }, { url = "https://files.pythonhosted.org/packages/ae/24/876015abbcb4a179d946579eb77b778eb5a948fc8381bc7928ba895bc051/multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:714597cb5d5e15a8a449d2ae23c45b486a9e8fa33c462c7a33d7f35b65d92943", size = 47787, upload-time = "2026-09-09T13:54:22.51Z" }, { url = "https://files.pythonhosted.org/packages/06/c1/ceb7d25f8a567599db2eb19b08cac58d67ff553cff42dcadbea9aba56a20/multidict-6.8.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:e0db3a4d1e264e225037a6023888972c25206a96e016021a5bea41c9a939f2a9", size = 48815, upload-time = "2026-09-09T13:54:23.986Z" }, { url = "https://files.pythonhosted.org/packages/18/e3/e1c6e9c3818c34b782f23ce5fdba3eaa34ec6750dc53078dfac80fa59be7/multidict-6.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:27747162712e85c84598d364425dbf1714ff335bdb6ba3171c4e5081196e8916", size = 83484, upload-time = "2026-09-09T13:54:25.674Z" }, From 41ae287df2ed1967e1cf602e8004943b724f000c Mon Sep 17 00:00:00 2001 From: "Zakharov, Ivan" Date: Mon, 5 Oct 2026 14:48:45 +0200 Subject: [PATCH 15/15] Update root uv.lock to match current dependencies Signed-off-by: Zakharov, Ivan --- uv.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uv.lock b/uv.lock index b729fe6a87..4c0bd12aca 100644 --- a/uv.lock +++ b/uv.lock @@ -613,9 +613,9 @@ requires-dist = [ { name = "torchvision", marker = "extra == 'cpu'", specifier = ">=0.21.0", index = "https://download.pytorch.org/whl/cpu", conflict = { package = "anomalib", extra = "cpu" } }, { name = "tox", marker = "extra == 'dev'" }, { name = "tox", marker = "extra == 'test'" }, - { name = "transformers", marker = "extra == 'dev'" }, - { name = "transformers", marker = "extra == 'full'" }, - { name = "transformers", marker = "extra == 'vlm'" }, + { name = "transformers", marker = "extra == 'dev'", specifier = ">=4.30" }, + { name = "transformers", marker = "extra == 'full'", specifier = ">=4.30" }, + { name = "transformers", marker = "extra == 'vlm'", specifier = ">=4.30" }, { name = "triton-rocm", marker = "sys_platform == 'linux' and extra == 'rocm'", index = "https://download.pytorch.org/whl/rocm7.2", conflict = { package = "anomalib", extra = "rocm" } }, { name = "triton-xpu", marker = "(sys_platform == 'linux' and extra == 'xpu') or (sys_platform == 'win32' and extra == 'xpu')", index = "https://download.pytorch.org/whl/xpu", conflict = { package = "anomalib", extra = "xpu" } }, { name = "wandb", marker = "extra == 'dev'" },