File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : ' 1'
2+ # 'ibmcloud cr images --restrict continuous-delivery' for image options
3+ setup :
4+ skip : true
5+
6+ test :
7+ abort_on_failure : false
8+ image : icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
9+ script : |
10+ #!/usr/bin/env bash
11+
12+ if [[ "$PIPELINE_DEBUG" == 1 ]]; then
13+ trap env EXIT
14+ env
15+ set -x
16+ fi
17+
18+ cd "$WORKSPACE/$(load_repo app-repo path)"
19+
20+ dnf update
21+ wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
22+ tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
23+ export PATH=$PATH:/usr/local/go/bin
24+ export GOPATH=$HOME/go
25+ export PATH=$PATH:$GOPATH/bin
26+ curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -d -b $GOPATH/bin
27+ # Actual Tests
28+ go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor")
29+ go test $(go list ./... | grep -v "fixtures" | grep -v "vendor")
30+ gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./...
31+
32+ # See .cra/cveignore file for skipped checks.
33+ compliance-checks :
34+ image : icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
35+ dind : true
36+ abort_on_failure : false
37+ image_pull_policy : IfNotPresent
38+ skip : false
39+ runAfter : null
40+ script : |
41+ #!/bin/sh
42+ yum update -yq && yum install -yq python3-pip
43+ python3 --version
44+
45+ "/opt/commons/compliance-checks/run.sh"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments