Newer
Older
- dev_pulling_repo
- dev_secrets_in_repo
- dev_linting_code
- dev_linting_docker
variables:
GITLAB_API: "https://labs.etsi.org/api/v4"
CI_JOB_TOKEN: $CI_JOB_TOKEN
script:
- git clone https://oauth2:${CI_JOB_TOKEN}@labs.etsi.org/rep/ocf/capif.git
script:
- pip install trufflehog
- trufflehog capif --exclude_paths cicd/exclusions --max_depth=5
# define the process to do linting code: Sonarque, ruff?
image: hadolint/hadolint:latest-debian
script:
- find . -name 'capif/services/Dockerfile*' -exec hadolint --no-fail -f gitlab_codeclimate {} + > docker-lint.json
# - hadolint services/nginx/Dockerfile
# - hadolint services/register/Dockerfile
artifacts:
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
when: always
reports:
codequality:
- docker-lint.json
interruptible: true