Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/security_tests_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,30 @@ jobs:
source: "github"
s2i: "latest"


- name: Build (tfserving proxy)
id: build-tfserving-proxy
continue-on-error: true
working-directory: ./servers/tfserving_proxy
run: |
export TFSERVING_IMAGE_TAG="sec-tests/tfserving-$(date +%s)-$(openssl rand -hex 4)"
echo "TFSERVING_IMAGE_TAG=$TFSERVING_IMAGE_TAG" >> $GITHUB_ENV
make IMAGE_NAME=$TFSERVING_IMAGE_TAG VERSION=test BASE_IMAGE=${{ env.PYTHON_BASE_IMAGE}}:test docker-build
- name: Scan TF-serving proxy
id: scan-tfserving-proxy
if: steps.build-tfserving-proxy.outcome == 'success'
uses: snyk/actions/docker@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: ${{ env.TFSERVING_IMAGE_TAG}}:test
args: --fail-on=upgradable --app-vulns --severity-threshold=high

- name: Clean up Docker image
if: always()
run: docker rmi ${{ env.SKLEARN_IMAGE_TAG}}:test

- name: Build (sklearn)
id: build-sklearn
continue-on-error: true
Expand Down Expand Up @@ -239,6 +263,7 @@ jobs:
if [ "${{ steps.scan-alibi-explain.outcome }}" != "success" ] || \
[ "${{ steps.scan-xgboost.outcome }}" != "success" ] || \
[ "${{ steps.scan-sklearn.outcome }}" != "success" ] || \
[ "${{ steps.scan-tfserving-proxy.outcome }}" != "success" ] || \
[ "${{ steps.scan-python-base.outcome }}" != "success" ] || \
[ "${{ steps.scan-conda.outcome }}" != "success" ] || \
[ "${{ steps.scan-mlflow.outcome }}" != "success" ]; then
Expand Down
4 changes: 3 additions & 1 deletion servers/tfserving_proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ IMAGE_NAME_BASE = tfserving-proxy
IMAGE_NAME = ${DOCKER_REGISTRY}/${IMAGE_NAME_BASE}
KIND_NAME ?= kind

BASE_IMAGE = ${DOCKER_REGISTRY}/seldon-core-s2i-python38:${VERSION}

docker-build:
s2i build \
-E environment \
. \
${DOCKER_REGISTRY}/seldon-core-s2i-python38:${VERSION} \
${BASE_IMAGE} \
${IMAGE_NAME}:${VERSION}

docker-push:
Expand Down
Loading