mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
gitlab-ci: only trigger safety job if API key is present
This commit is contained in:
parent
3c03fef28f
commit
b669ce654d
1 changed files with 10 additions and 7 deletions
|
@ -262,18 +262,21 @@ lint_format_bandit_checks:
|
||||||
# so important to scan that kind of install in CI.
|
# so important to scan that kind of install in CI.
|
||||||
# https://docs.safetycli.com/safety-docs/installation/gitlab
|
# https://docs.safetycli.com/safety-docs/installation/gitlab
|
||||||
safety:
|
safety:
|
||||||
only:
|
image: debian:bookworm-slim
|
||||||
|
rules:
|
||||||
|
# once only:/changes: are ported to rules:, this could be removed:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
when: never
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "push" && $SAFETY_API_KEY
|
||||||
changes:
|
changes:
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- .safety-policy.yml
|
- .safety-policy.yml
|
||||||
- pyproject.toml
|
- pyproject.toml
|
||||||
- setup.py
|
- setup.py
|
||||||
image: debian:bookworm-slim
|
|
||||||
<<: *apt-template
|
<<: *apt-template
|
||||||
variables:
|
variables:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
script:
|
script:
|
||||||
- test -n "$SAFETY_API_KEY" || exit 0
|
|
||||||
- apt-get install
|
- apt-get install
|
||||||
fdroidserver
|
fdroidserver
|
||||||
python3-biplist
|
python3-biplist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue