Skip to content

Commit de25d02

Browse files
committed
fix: merge sysdig variable override in other rule to avoid wrong execution
1 parent 076b188 commit de25d02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitlab-ci/base/jobs/sysdig.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ sysdig-container_scanning:
5050
rules:
5151
- if: $CONTAINER_SCANNING_DISABLED == 'true' || $CONTAINER_SCANNING_DISABLED == '1'
5252
when: never
53-
- if: $SYSDIG_SECURE_TOKEN
53+
- if: $CI_COMMIT_BRANCH && $SYSDIG_SECURE_TOKEN
5454
variables:
5555
SECURE_API_TOKEN: "${SYSDIG_SECURE_TOKEN}"
56-
- if: $CI_COMMIT_BRANCH && $SYSDIG_SECURE_TOKEN
5756
- if: $CI_COMMIT_BRANCH && $SECURE_API_TOKEN
5857

5958
sysdig-legacy-container_scanning:

0 commit comments

Comments
 (0)