fix(dataflow): make each replica use unique subscription names (#6021) #521
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: V2 Security Tests | |
on: | |
push: | |
branches: [ v2 ] | |
workflow_dispatch: | |
inputs: | |
docker-tag: | |
description: 'Docker tag for scan' | |
default: 'latest' | |
required: false | |
jobs: | |
security-operator: | |
runs-on: ubuntu-latest | |
container: snyk/snyk:golang-1.21 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: security-golang | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
GOFLAGS: "-buildvcs=false" | |
run: | | |
snyk test --file=operator/go.mod --fail-on=upgradable --severity-threshold=high | |
security-scheduler: | |
runs-on: ubuntu-latest | |
container: snyk/snyk:golang-1.21 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: security-golang | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
GOFLAGS: "-buildvcs=false" | |
run: | | |
snyk test --file=scheduler/go.mod --fail-on=upgradable --severity-threshold=high | |
security-image-operator: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldonv2-controller:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=operator/Dockerfile | |
security-image-scheduler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-scheduler:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.scheduler | |
security-image-data-flow-engine: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-dataflow-engine:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.dataflow | |
security-image-envoy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-envoy:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.envoy | |
security-image-modelgateway: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-modelgateway:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.modelgateway | |
security-image-pipelinegateway: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-pipelinegateway:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.pipelinegateway | |
security-image-agent: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-agent:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.agent | |
security-image-rclone: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-rclone:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=scheduler/Dockerfile.rclone | |
security-image-hodometer: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set default docker tag for builds from v2 branch | |
id: docker-tag | |
run: | | |
USER_INPUT="${{ github.event.inputs.docker-tag }}" | |
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT | |
- name: security-docker-image | |
uses: snyk/actions/docker@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
image: seldonio/seldon-hodometer:${{ steps.docker-tag.outputs.value }} | |
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=hodometer/Dockerfile.hodometer |