Skip to content

Commit 7664936

Browse files
move checks under merge_group (#376)
Signed-off-by: Barabanov <alexander.barabanov@intel.com>
1 parent 2e0b8ca commit 7664936

2 files changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/pre_commit.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -56,36 +56,3 @@ jobs:
5656
- name: Run python unit tests
5757
run: |
5858
uv run pytest tests/unit
59-
Zizmor-Scan-PR:
60-
runs-on: ubuntu-latest
61-
permissions:
62-
contents: read
63-
steps:
64-
- name: Checkout code
65-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
66-
with:
67-
persist-credentials: false
68-
- name: Run Zizmor scan
69-
uses: open-edge-platform/anomalib/.github/actions/security/zizmor@f6ec1c57363a9894ff57184a5bfb78efa8f3de1b
70-
with:
71-
scan-scope: "changed"
72-
severity-level: "LOW"
73-
confidence-level: "LOW"
74-
fail-on-findings: true
75-
Bandit-Scan-PR:
76-
runs-on: ubuntu-latest
77-
permissions:
78-
contents: read
79-
steps:
80-
- name: Checkout code
81-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
82-
with:
83-
persist-credentials: false
84-
- name: Run Bandit scan
85-
uses: open-edge-platform/anomalib/.github/actions/security/bandit@f6ec1c57363a9894ff57184a5bfb78efa8f3de1b
86-
with:
87-
scan-scope: "changed"
88-
severity-level: "LOW"
89-
confidence-level: "LOW"
90-
config_file: "./pyproject.toml"
91-
fail-on-findings: true

.github/workflows/test_precommit.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,36 @@ jobs:
5959
uv run python -c "from model_api.models import DetectionModel; DetectionModel.create_model('./data/otx_models/detection_model_with_xai_head.xml').save('ovms_models/ssd_mobilenet_v1_fpn_coco/1/ssd_mobilenet_v1_fpn_coco.xml')"
6060
docker run -d --rm -v $GITHUB_WORKSPACE/ovms_models/:/models -p 8000:8000 openvino/model_server:latest --model_path /models/ssd_mobilenet_v1_fpn_coco/ --model_name ssd_mobilenet_v1_fpn_coco --rest_port 8000 --log_level DEBUG --target_device CPU
6161
uv run python examples/serving_api/run.py data/coco128/images/train2017/000000000009.jpg # detects 4 objects
62+
Zizmor-Scan-PR:
63+
runs-on: ubuntu-latest
64+
permissions:
65+
contents: read
66+
steps:
67+
- name: Checkout code
68+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
69+
with:
70+
persist-credentials: false
71+
- name: Run Zizmor scan
72+
uses: open-edge-platform/anomalib/.github/actions/security/zizmor@f6ec1c57363a9894ff57184a5bfb78efa8f3de1b
73+
with:
74+
scan-scope: "changed"
75+
severity-level: "LOW"
76+
confidence-level: "LOW"
77+
fail-on-findings: true
78+
Bandit-Scan-PR:
79+
runs-on: ubuntu-latest
80+
permissions:
81+
contents: read
82+
steps:
83+
- name: Checkout code
84+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
85+
with:
86+
persist-credentials: false
87+
- name: Run Bandit scan
88+
uses: open-edge-platform/anomalib/.github/actions/security/bandit@f6ec1c57363a9894ff57184a5bfb78efa8f3de1b
89+
with:
90+
scan-scope: "changed"
91+
severity-level: "LOW"
92+
confidence-level: "LOW"
93+
config_file: "./pyproject.toml"
94+
fail-on-findings: true

0 commit comments

Comments
 (0)