Commit 17cb7d21 authored by Lucas Charles's avatar Lucas Charles

Docs: Migrate secure integration doc to rules

Remove older only/except example in favor of
rules syntax
parent f06309ee
...@@ -100,13 +100,12 @@ the project repository contains Java source code and the `dependency_scanning` f ...@@ -100,13 +100,12 @@ the project repository contains Java source code and the `dependency_scanning` f
```yaml ```yaml
mysec_dependency_scanning: mysec_dependency_scanning:
except: rules:
variables: - if: $DEPENDENCY_SCANNING_DISABLED
- $DEPENDENCY_SCANNING_DISABLED when: never
only: - if: $GITLAB_FEATURES =~ /\bdependency_scanning\b/
variables: exists:
- $GITLAB_FEATURES =~ /\bdependency_scanning\b/ && - '**/*.java'
$CI_PROJECT_REPOSITORY_LANGUAGES =~ /\bjava\b/
``` ```
Any additional job policy should only be configured by users based on their needs. Any additional job policy should only be configured by users based on their needs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment