[libgsf/set-sast-config-1] Configure SAST in `.gitlab-ci.yml`, creating this file if it does not already exist
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsf/set-sast-config-1] Configure SAST in `.gitlab-ci.yml`, creating this file if it does not already exist
- Date: Wed, 9 Mar 2022 23:17:59 +0000 (UTC)
commit bf83096b04c1e2ec8e52be4027ccddf771dc97d4
Author: Morten Welinder <mwelinder gmail com>
Date: Wed Mar 9 23:17:58 2022 +0000
Configure SAST in `.gitlab-ci.yml`, creating this file if it does not already exist
.gitlab-ci.yml | 45 ++++++++++++++++++++++-----------------------
1 file changed, 22 insertions(+), 23 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad72591c..2815f24d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,33 +1,32 @@
-# use the official ubuntu image
-# see https://hub.docker.com/_/ubuntu/
-
+# You can override the included template(s) by including variable overrides
+# SAST customization:
https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
+# Secret Detection customization:
https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
+# Dependency Scanning customization:
https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
+# Container Scanning customization:
https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
+# Note that environment variables can be set in several places
+# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
image: ubuntu
-
build:
stage: build
- # instead of calling g++ directly you can also use some build toolkit like make
- # install the necessary build tools when needed
- # before_script:
- # - apt update && apt -y install make autoconf
before_script:
- - DEBIAN_FRONTEND=noninteractive apt update
- - DEBIAN_FRONTEND=noninteractive apt -y install autoconf automake zlib1g-dev libglib2.0-dev libxml2-dev
gtk-doc-tools autopoint libtool libbz2-dev libgdk-pixbuf2.0-dev make
+ - DEBIAN_FRONTEND=noninteractive apt update
+ - DEBIAN_FRONTEND=noninteractive apt -y install autoconf automake zlib1g-dev libglib2.0-dev
+ libxml2-dev gtk-doc-tools autopoint libtool libbz2-dev libgdk-pixbuf2.0-dev make
script:
- - ./autogen.sh --disable-dependency-tracking
- - make
-
+ - "./autogen.sh --disable-dependency-tracking"
+ - make
artifacts:
paths:
- - gsf/.libs/libgsf-1.a
- - gsf/.libs/libgsf-1.so
- - gsf/.libs/libgsf-1.so.*
- # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
- # cache:
- # paths:
- # - "*.o"
-
-# run tests using the binary built before
+ - gsf/.libs/libgsf-1.a
+ - gsf/.libs/libgsf-1.so
+ - gsf/.libs/libgsf-1.so.*
test:
stage: test
script:
- - echo "Run Tests Here"
+ - echo "Run Tests Here"
+stages:
+- test
+sast:
+ stage: test
+include:
+- template: Security/SAST.gitlab-ci.yml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]