|
1 | 1 | group: bluezone |
2 | | -language: go |
3 | | -go: |
4 | | - - 1.21.3 |
5 | | -addons: |
6 | | - apt: |
7 | | - packages: |
8 | | - - python3.12 |
9 | | - - python3-pip |
10 | | - - python3-setuptools |
11 | | -install: |
12 | | - # Required to install detect-secrets |
13 | | - - echo -e "machine github.ibm.com\n login $CI_USER_TOKEN" > ~/.netrc |
14 | | - - sudo python3 -m pip install -U pip |
15 | | - - sudo pip3 install pyOpenSSL --upgrade |
16 | | - - sudo pip3 install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets" |
17 | | - - curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin |
18 | | -before_script: |
19 | | - - go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor") |
20 | | - - go test $(go list ./... | grep -v "fixtures" | grep -v "vendor") |
21 | | - - detect-secrets scan --update .secrets.baseline |
22 | | - - detect-secrets audit .secrets.baseline --report --fail-on-unaudited --omit-instructions |
23 | | - - gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./... |
24 | | -script: |
25 | | - - go build |
| 2 | +jobs: |
| 3 | + include: |
| 4 | + - language: python |
| 5 | + python: 3.12 |
| 6 | + install: |
| 7 | + - echo -e "machine github.ibm.com\n login $CI_USER_TOKEN" > ~/.netrc |
| 8 | + - sudo python3 -m pip install -U pip |
| 9 | + - sudo pip3 install pyOpenSSL --upgrade |
| 10 | + - sudo pip3 install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets" |
| 11 | + script: |
| 12 | + - detect-secrets scan --update .secrets.baseline |
| 13 | + - detect-secrets audit .secrets.baseline --report --fail-on-unaudited --omit-instructions |
| 14 | + - language: go |
| 15 | + go: 1.21.3 |
| 16 | + install: |
| 17 | + # Required to install detect-secrets |
| 18 | + - echo -e "machine github.ibm.com\n login $CI_USER_TOKEN" > ~/.netrc |
| 19 | + - curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $GOPATH/bin |
| 20 | + before_script: |
| 21 | + - go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor") |
| 22 | + - go test $(go list ./... | grep -v "fixtures" | grep -v "vendor") |
| 23 | + - gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./... |
| 24 | + script: |
| 25 | + - go build |
| 26 | + |
26 | 27 | notifications: |
27 | 28 | slack: |
28 | 29 | rooms: ibm-cloudplatform:RZfnTv0P664KhVAtEAjcEBPJ |
|
0 commit comments