Skip to content

Commit 0f7f158

Browse files
authored
[chore] update xray scan jobs with only condition (#5054)
* [chore] update xray scan jobs with only condition * switch to rules from only/except
1 parent 94a7491 commit 0f7f158

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ fossa:
191191
- echo "${ARTIFACTORY_BASE_URL}/${local_repo}/${target}" | tee xray_artifact_path
192192

193193
.xray-scan-package:
194-
only:
195-
- main
194+
rules:
195+
- if: $CI_PIPELINE_SOURCE == "schedule"
196+
when: never
197+
- if: $CI_COMMIT_BRANCH == "main"
196198
extends: .binary-scan
197199
stage: xray-scan
198200
variables:

0 commit comments

Comments
 (0)