Skip to content
Snippets Groups Projects
Commit 9b72b9fa authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

Merge remote-tracking branch 'upstream/master'

# Conflicts:
#	.gitlab-ci.yml
#	CHANGELOG.md
#	README.md
#	templates/gitlab-ci-gitleaks.yml
parents 583a2c54 aa08ffa9
No related branches found
No related tags found
No related merge requests found
Pipeline #157467 passed
# variables in the GitLab CI/CD variables:
# GITLAB_TOKEN to support the semantic-release
# DOCKER_AUTH_CONFIG to support the usage of private docker images as job docker image
# TMPL_RELEASE_ENABLED to enable the semantic-release job
# TBC_NAMESPACE: smartdatalab/public/ci-cd-components
include: include:
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/extract@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/extract@master
inputs: inputs:
extract-script-job-tags: ["docker"] extract-script-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitlab-ci/validation@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/gitlab-ci/validation@master
inputs: inputs:
check-links-job-tags: ["docker"] check-links-job-tags: ["docker"]
tbc-check-job-tags: ["docker"] tbc-check-job-tags: ["docker"]
tbc-check-image: cicd-docker-dev.artifact.tecnalia.com/tbc-check:master tbc-check-image: cicd-docker-dev.artifact.tecnalia.com/tbc-check:master
gitlab-ci-lint-job-tags: ["docker"] gitlab-ci-lint-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/kicker/validation@master - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/kicker/validation@master
inputs: inputs:
kicker-validation-job-tags: ["docker"] kicker-validation-job-tags: ["docker"]
schema-base-url: "https://git.code.tecnalia.com/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files" schema-base-url: "https://git.code.tecnalia.com/api/v4/projects/smartdatalab%2Fpublic%2Fci-cd-components%2Fkicker/repository/files"
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/bash/gitlab-ci-bash@master yajsv-image: "cicd-docker-dev.artifact.tecnalia.com/yajsv:latest"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/bash/gitlab-ci-bash@master
inputs: inputs:
bash-shellcheck-job-tags: ["docker"] bash-shellcheck-job-tags: ["docker"]
- component: git.code.tecnalia.com/smartdatalab/public/ci-cd-components/semantic-release/gitlab-ci-semrel@master shellcheck-files: "*.sh"
- component: $CI_SERVER_FQDN/$TBC_NAMESPACE/semantic-release/gitlab-ci-semrel@master
inputs: inputs:
semantic-release-job-tags: ["docker"] semantic-release-job-tags: ["docker"]
stages:
- build
- publish
variables: variables:
GITLAB_CI_FILES: "templates/gitlab-ci-gitleaks.yml" GITLAB_CI_FILES: "templates/gitlab-ci-gitleaks.yml"
BASH_SHELLCHECK_FILES: "*.sh" BASH_SHELLCHECK_FILES: "*.sh"
GIT_STRATEGY: clone GIT_STRATEGY: clone
stages:
- build
- publish
semantic-release: semantic-release:
rules: rules:
# on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
......
## [2.5.2](https://git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitleaks/compare/2.5.1...2.5.2) (2024-05-20)
### Bug Fixes
* **workflow:** disable MR pipeline from prod & integ branches ([3d43c7f](https://git.code.tecnalia.com/smartdatalab/public/ci-cd-components/gitleaks/commit/3d43c7f96d6e623bf20df17f0302b2dbe22b6fa2))
## [2.5.2](https://gitlab.com/to-be-continuous/gitleaks/compare/2.5.1...2.5.2) (2024-05-05) ## [2.5.2](https://gitlab.com/to-be-continuous/gitleaks/compare/2.5.1...2.5.2) (2024-05-05)
......
...@@ -9,17 +9,17 @@ When run on other branches, Gitleaks will run a quick analysis on the current br ...@@ -9,17 +9,17 @@ When run on other branches, Gitleaks will run a quick analysis on the current br
## Usage ## Usage
This template can be used both as a [CI/CD component](https://docs.gitlab.com/ee/ci/components/#use-a-component-in-a-cicd-configuration) This template can be used both as a [CI/CD component](https://docs.gitlab.com/ee/ci/components/#use-a-component)
or using the legacy [`include:project`](https://docs.gitlab.com/ee/ci/yaml/index.html#includeproject) syntax. or using the legacy [`include:project`](https://docs.gitlab.com/ee/ci/yaml/index.html#includeproject) syntax.
### Use as a CI/CD component ### Use as a CI/CD component
Add the following to your `gitlab-ci.yml`: Add the following to your `.gitlab-ci.yml`:
```yaml ```yaml
include: include:
# 1: include the component # 1: include the component
- component: gitlab.com/to-be-continuous/gitleaks/gitlab-ci-gitleaks@2.5.2 - component: $CI_SERVER_FQDN/to-be-continuous/gitleaks/gitlab-ci-gitleaks@2.6.0
# 2: set/override component inputs # 2: set/override component inputs
inputs: inputs:
args: "--no-banner" # ⚠ this is only an example args: "--no-banner" # ⚠ this is only an example
...@@ -27,13 +27,13 @@ include: ...@@ -27,13 +27,13 @@ include:
### Use as a CI/CD template (legacy) ### Use as a CI/CD template (legacy)
Add the following to your `gitlab-ci.yml`: Add the following to your `.gitlab-ci.yml`:
```yaml ```yaml
include: include:
# 1: include the template # 1: include the template
- project: 'to-be-continuous/gitleaks' - project: 'to-be-continuous/gitleaks'
ref: '2.5.2' ref: '2.6.0'
file: '/templates/gitlab-ci-gitleaks.yml' file: '/templates/gitlab-ci-gitleaks.yml'
variables: variables:
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{ {
"name": "GITLEAKS_ARGS", "name": "GITLEAKS_ARGS",
"description": "[Options](https://github.com/zricethezav/gitleaks/wiki/Options) for a full Gitleaks analysis (on master or develop branches)", "description": "[Options](https://github.com/zricethezav/gitleaks/wiki/Options) for a full Gitleaks analysis (on master or develop branches)",
"default": "--verbose", "default": "--verbose --redact",
"advanced": true "advanced": true
}, },
{ {
......
...@@ -24,7 +24,7 @@ spec: ...@@ -24,7 +24,7 @@ spec:
default: '' default: ''
args: args:
description: '[Options](https://github.com/zricethezav/gitleaks/wiki/Options) for a full Gitleaks analysis (on master or develop branches)' description: '[Options](https://github.com/zricethezav/gitleaks/wiki/Options) for a full Gitleaks analysis (on master or develop branches)'
default: '--verbose' default: '--verbose --redact'
gitleaks-job-tags: gitleaks-job-tags:
description: tags to filter applicable runners for Sonar job description: tags to filter applicable runners for Sonar job
default: [] default: []
...@@ -230,7 +230,7 @@ gitleaks: ...@@ -230,7 +230,7 @@ gitleaks:
entrypoint: [""] entrypoint: [""]
services: services:
- name: "$TBC_TRACKING_IMAGE" - name: "$TBC_TRACKING_IMAGE"
command: ["--service", "gitleaks", "2.5.2"] command: ["--service", "gitleaks", "2.6.0"]
stage: test stage: test
needs: [] needs: []
variables: variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment