test-main-commit-job-annocheck:
  extends:
    - .fail_if_coredump_generated
  tags:
    - libvirt
    - cryptsetup-rhel-9
  stage: test
  interruptible: true
  allow_failure: true
  variables:
    DISTRO: cryptsetup-rhel-9
    RUN_SSH_PLUGIN_TEST: "1"
  rules:
    - if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /v2\..\.x$/
  script:
    - sudo /opt/run-annocheck.sh
