Commit 1832db54 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'docs-migrate-secure-integration-doc-example-to-rules-syntax' into 'master'

Docs: Migrate secure integration doc to rules

See merge request gitlab-org/gitlab!35782
parents 64b0213f 17cb7d21
......@@ -100,13 +100,12 @@ the project repository contains Java source code and the `dependency_scanning` f
```yaml
mysec_dependency_scanning:
except:
variables:
- $DEPENDENCY_SCANNING_DISABLED
only:
variables:
- $GITLAB_FEATURES =~ /\bdependency_scanning\b/ &&
$CI_PROJECT_REPOSITORY_LANGUAGES =~ /\bjava\b/
rules:
- if: $DEPENDENCY_SCANNING_DISABLED
when: never
- if: $GITLAB_FEATURES =~ /\bdependency_scanning\b/
exists:
- '**/*.java'
```
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