Skip to content

Commit 737dcaf

Browse files
committed
Merge branch 'docs/data/add-backward-compatibility' of github.com:samet-akcay/anomalib into docs/data/add-backward-compatibility
2 parents 2fd4b73 + ea9b946 commit 737dcaf

File tree

118 files changed

+5668
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+5668
-486
lines changed

.github/actions/code-quality/pre-commit/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ runs:
6969
steps:
7070
# Set up Python environment with caching
7171
- name: Set up Python
72-
uses: actions/setup-python@v5
72+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
7373
with:
7474
python-version: ${{ inputs.python-version }}
7575
cache: pip # Enable pip caching
7676
cache-dependency-path: .pre-commit-config.yaml
7777

7878
# Set up Node.js for JavaScript-related hooks
7979
- name: Set up Node.js
80-
uses: actions/setup-node@v4
80+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
8181
with:
8282
node-version: ${{ inputs.node-version }}
8383

@@ -92,7 +92,7 @@ runs:
9292
- name: Cache pre-commit hooks
9393
if: inputs.cache == 'true'
9494
id: pre-commit-cache
95-
uses: actions/cache@v3
95+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
9696
with:
9797
path: ~/.cache/pre-commit
9898
# Cache key includes Python and Node versions to ensure correct environment

.github/actions/pytest/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ runs:
9494
steps:
9595
# Set up Python with pip caching
9696
- name: Set up Python environment
97-
uses: actions/setup-python@v5
97+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
9898
with:
9999
python-version: ${{ inputs.python-version }}
100100
cache: ${{ inputs.enable-cache == 'true' && 'pip' || '' }}
@@ -186,7 +186,7 @@ runs:
186186
187187
- name: Upload test results
188188
if: always() && steps.test-execution.outcome == 'failure'
189-
uses: actions/upload-artifact@v4
189+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
190190
with:
191191
name: pytest-results-${{ inputs.test-type }}
192192
path: pytest_output.log

.github/actions/security/bandit/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ runs:
8888
using: composite
8989
steps:
9090
- name: Set up Python
91-
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
91+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
9292
with:
9393
python-version: "3.10"
9494

@@ -101,7 +101,7 @@ runs:
101101
- name: Get changed files
102102
if: inputs.scan-scope == 'changed'
103103
id: changed-files
104-
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
104+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
105105
with:
106106
files: |
107107
**/*.py
@@ -163,13 +163,13 @@ runs:
163163
# Upload results after full scope analysis
164164
- name: Upload reports
165165
if: hashFiles('bandit-report.*') != '' # if any report is available
166-
uses: actions/upload-artifact@v4
166+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
167167
with:
168168
name: bandit-results
169169
path: bandit-report.*
170170
retention-days: 7
171171
- name: Upload sarif
172172
if: hashFiles('bandit-report.sarif') != '' # if SARIF is available, upload it
173-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.8
173+
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
174174
with:
175175
sarif_file: bandit-report.sarif

.github/actions/security/clamav/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ runs:
168168
# Upload results
169169
- name: Upload reports
170170
if: hashFiles('security-results/clamav*') != '' # if any report is available
171-
uses: actions/upload-artifact@v4
171+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
172172
with:
173173
name: clamav-results
174174
path: security-results/clamav

.github/actions/security/semgrep/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ runs:
9191
- name: Get changed files
9292
if: inputs.scan-scope == 'changed'
9393
id: changed-files
94-
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
94+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
9595
with:
9696
files: |
9797
**/*.*
@@ -170,13 +170,13 @@ runs:
170170
# Upload results after full scope analysis
171171
- name: Upload reports
172172
if: hashFiles('security-results/semgrep/*') != '' # if any report is available
173-
uses: actions/upload-artifact@v4
173+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
174174
with:
175175
name: semgrep-results
176176
path: security-results/semgrep
177177
retention-days: 7
178178
- name: Upload sarif
179179
if: hashFiles('security-results/semgrep/semgrep-results.sarif') != '' # if SARIF is available, upload it
180-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.8
180+
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
181181
with:
182182
sarif_file: security-results/semgrep/semgrep-results.sarif

.github/actions/security/trivy/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ runs:
111111
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
112112

113113
- name: Cache Trivy vulnerability database
114-
uses: actions/cache@v3
114+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
115115
with:
116116
path: ~/.cache/trivy
117117
key: trivy-db-${{ runner.os }}-${{ hashFiles('**/trivy-db/**') }}
@@ -220,13 +220,13 @@ runs:
220220
# Upload results after full scope analysis
221221
- name: Upload reports
222222
if: hashFiles('security-results/trivy/*') != '' # if any report is available
223-
uses: actions/upload-artifact@v4
223+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
224224
with:
225225
name: trivy-results
226226
path: security-results/trivy
227227
retention-days: 7
228228
- name: Upload sarif
229229
if: hashFiles('security-results/trivy/trivy-results.sarif') != '' # if SARIF is available, upload it
230-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.8
230+
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
231231
with:
232232
sarif_file: security-results/trivy/trivy-results.sarif

.github/actions/security/zizmor/action.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ inputs:
5151
zizmor-version:
5252
description: "Zizmor version"
5353
required: false
54-
default: "1.9.0"
54+
# renovate: datasource=github-releases depName=zizmorcore/zizmor
55+
default: 1.11.0
5556

5657
outputs:
5758
scan_result:
@@ -65,7 +66,7 @@ runs:
6566
using: composite
6667
steps:
6768
- name: Install uv
68-
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
69+
uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
6970
with:
7071
enable-cache: true
7172
activate-environment: true
@@ -75,7 +76,7 @@ runs:
7576
- name: Get changed files
7677
if: inputs.scan-scope == 'changed'
7778
id: changed-files
78-
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
79+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
7980
with:
8081
files: .github/**
8182

@@ -136,13 +137,13 @@ runs:
136137
# Upload results after full scope analysis
137138
- name: Upload reports
138139
if: hashFiles('zizmor-report.*') != '' # if any report is available
139-
uses: actions/upload-artifact@v4
140+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
140141
with:
141142
name: zizmor-results
142143
path: zizmor-report.*
143144
retention-days: 7
144145
- name: Upload sarif
145146
if: hashFiles('zizmor-report.sarif') != '' # if SARIF is available, upload it
146-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.8
147+
uses: github/codeql-action/upload-sarif@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
147148
with:
148149
sarif_file: zizmor-report.sarif

.github/dependabot.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/renovate.json5

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// Dependency Update Configuration
2+
//
3+
// See https://docs.renovatebot.com/configuration-options/
4+
// See https://json5.org/ for JSON5 syntax
5+
6+
// [!] While updating the Renovate config, test changes on your own fork.
7+
// 1. Modify the Renovate configuration, which is located in .github/renovate.json5 and push your changes to the default branch of your fork.
8+
// 2. Enable the Renovate GitHub app in your GitHub account.
9+
// Verify that Renovate is activated in the repository settings within the Renovate Dashboard.
10+
// To enable the dashboard set `dependencyDashboard` to true
11+
// 3. Trigger the Renovate app from the dashboard, or push a new commit to your fork’s default branch to re-trigger Renovate.
12+
// 4. Use the dashboard to initiate Renovate and create a PR on your fork, then check that the proposed PRs are modifying the correct parts.
13+
// 5. Once you’ve validated that the Renovate configuration works on your fork, submit a PR,
14+
// and include links in the description to share details about the testing you've conducted.
15+
16+
{
17+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
18+
19+
// regenerate lock weekly https://docs.renovatebot.com/configuration-options/#lockfilemaintenance
20+
lockFileMaintenance: {
21+
enabled: true,
22+
schedule: ["* * * * 0"], // weekly
23+
},
24+
25+
extends: ["config:base", ":gitSignOff", "helpers:pinGitHubActionDigests"],
26+
// https://docs.renovatebot.com/presets-default/#gitsignoff
27+
// https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigests
28+
29+
// if necessary, add supported releases branches here
30+
// it is possible to enable/disable specific upgrades per branch with
31+
// `matchBaseBranches` in specific rule
32+
baseBranches: ["main"],
33+
34+
enabledManagers: ["github-actions", "pep621", "custom.regex"],
35+
36+
// Set limit to 10
37+
ignorePresets: [":prHourlyLimit2"],
38+
prHourlyLimit: 10,
39+
40+
packageRules: [
41+
// weekly dependencies upgrades
42+
{
43+
enabled: true,
44+
matchManagers: ["pep621"],
45+
schedule: ["* * * * 0"], // weekly
46+
},
47+
48+
// Python version is upgraded manually
49+
{
50+
enabled: false,
51+
matchDatasources: ["python-version"],
52+
matchDepNames: ["python"],
53+
matchDepTypes: ["requires-python"],
54+
},
55+
56+
// disable open-clip-torch upgrades as
57+
// open-clip-torch throws error on v2.26.1
58+
{
59+
enabled: false,
60+
matchDatasources: ["pypi"],
61+
matchDepNames: ["open-clip-torch"],
62+
matchDepTypes: ["project.optional-dependencies"],
63+
},
64+
65+
// Group GitHub Actions updates
66+
{
67+
enabled: true,
68+
separateMajorMinor: false,
69+
groupName: "GitHub Actions",
70+
matchManagers: ["github-actions"],
71+
matchPackagePatterns: ["*"],
72+
schedule: ["* * 1 * *"], // every month
73+
},
74+
75+
// Python version used in GitHub Actions is updated manually
76+
{
77+
enabled: false,
78+
matchDatasources: ["github-releases"],
79+
matchDepNames: ["python"],
80+
matchDepTypes: ["uses-with"],
81+
},
82+
],
83+
84+
// is used to upgrade Zizmor version
85+
customManagers: [
86+
{
87+
fileMatch: ["^\\.github/actions/security/zizmor/[^/]+\\.ya?ml$"],
88+
// https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
89+
matchStrings: [
90+
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+default: (?<currentValue>.*)",
91+
],
92+
},
93+
],
94+
95+
// Enable security upgrades
96+
vulnerabilityAlerts: {
97+
enabled: true,
98+
},
99+
osvVulnerabilityAlerts: true,
100+
dependencyDashboard: true,
101+
}

.github/workflows/_reusable-artifact-builder.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ jobs:
7878
outputs:
7979
artifact-name: ${{ steps.set-artifact-name.outputs.name }}
8080
steps:
81-
- uses: actions/checkout@v4
81+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
8282
with:
8383
persist-credentials: false
84-
- uses: actions/setup-python@v5
84+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
8585
with:
8686
python-version: ${{ inputs.python-version }}
8787
- name: Build package
@@ -96,13 +96,13 @@ jobs:
9696
- name: Set artifact name
9797
id: set-artifact-name
9898
run: echo "name=dist-$(date +%s)" >> $GITHUB_OUTPUT
99-
- uses: actions/upload-artifact@v4
99+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
100100
with:
101101
name: ${{ steps.set-artifact-name.outputs.name }}
102102
path: dist/
103103
retention-days: 5
104104
- name: Cache pip dependencies
105-
uses: actions/cache@v4
105+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
106106
with:
107107
path: |
108108
~/.cache/pip
@@ -111,7 +111,7 @@ jobs:
111111
restore-keys: |
112112
${{ runner.os }}-pip-
113113
- name: Cache build artifacts
114-
uses: actions/cache@v4
114+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
115115
with:
116116
path: |
117117
dist/

0 commit comments

Comments
 (0)