diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e909428e16748..1062df1d4f63d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,6 +57,7 @@ stages: - maintenance_jobs - deps_build - deps_fetch + - lint - source_test - source_test_stats - software_composition_analysis diff --git a/.gitlab/lint/technical_linters.yml b/.gitlab/lint/technical_linters.yml index 59cdf548d4cfb..964f9633066b3 100644 --- a/.gitlab/lint/technical_linters.yml +++ b/.gitlab/lint/technical_linters.yml @@ -1,3 +1,4 @@ +--- .lint: stage: lint image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES @@ -8,3 +9,13 @@ validate_modules: needs: [] script: - inv -e modules.validate + +lint_licenses: + extends: .lint + script: + - !reference [.retrieve_linux_go_deps] + - !reference [.retrieve_linux_go_tools_deps] + - inv -e install-tools + - inv -e lint-licenses + needs: ["go_tools_deps", "go_deps"] +