Other: Introduce gobinsec cache.

This commit is contained in:
Jakub
2022-07-25 13:47:42 +02:00
parent ea39e2d842
commit 2a7aefac45
2 changed files with 25 additions and 3 deletions

View File

@ -38,6 +38,7 @@ stages:
- cache - cache
- test - test
- build - build
- check
- mirror - mirror
# Stage: CACHE # Stage: CACHE
@ -138,9 +139,6 @@ build-qml:
script: script:
- make build - make build
- git diff && git diff-index --quiet HEAD - git diff && git diff-index --quiet HEAD
- curl -L https://services.nvd.nist.gov/rest/json/cves/1.0/
- gobinsec -verbose -wait -config utils/gobinsec_conf.yml
cmd/Desktop-Bridge/deploy/linux/proton-bridge
artifacts: artifacts:
# Note: The latest artifacts for refs are locked against deletion, and kept # Note: The latest artifacts for refs are locked against deletion, and kept
# regardless of the expiry time. Introduced in GitLab 13.0 behind a # regardless of the expiry time. Introduced in GitLab 13.0 behind a
@ -235,6 +233,26 @@ build-windows-qa:
artifacts: artifacts:
name: "bridge-windows-qa-$CI_COMMIT_SHORT_SHA" name: "bridge-windows-qa-$CI_COMMIT_SHORT_SHA"
# Stage: CHECK
check-gobinsec:
stage: check
only:
- branches
cache:
key: gobinsec-cache
paths:
- gobinsec-cache.yml
policy: pull-push
before_script:
- mkdir build
- tar -xzf bridge_linux_*.tgz -C build
script:
- "[ ! -f ./gobinsec-cache.yml ] && wget bridgeteam.protontech.ch/bridgeteam/gobinsec-cache.yml"
- cat ./gobinsec-cache.yml
- gobinsec -cache -config utils/gobinsec_conf.yml build/proton-bridge
# Stage: MIRROR # Stage: MIRROR
mirror-repo: mirror-repo:

View File

@ -1,5 +1,9 @@
--- ---
file:
name: "./gobinsec-cache.yml"
expiration: 24h
ignore: ignore:
# golang.org/x/net wrong match, we are using 2871e0cb, fixed by 37e1c6af # golang.org/x/net wrong match, we are using 2871e0cb, fixed by 37e1c6af
- "CVE-2021-33194" - "CVE-2021-33194"