Skip to content

chore: update proto submodule to handle disable_tunnels flag #959

chore: update proto submodule to handle disable_tunnels flag

chore: update proto submodule to handle disable_tunnels flag #959

Workflow file for this run

name: Test backend
on:
push:
branches:
- dev
- 'release/**'
- 'stable/**'
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- dev
- 'release/**'
- 'stable/**'
paths-ignore:
- "*.md"
- "LICENSE"
env:
CARGO_TERM_COLOR: always
# sccache
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
test:
runs-on:
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
container: public.ecr.aws/docker/library/rust:1
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
submodules: recursive
- name: Scan code with Trivy
uses: aquasecurity/trivy-action@a9c7b0f06e461e9d4b4d1711f154ee024b8d7ab8 # v0.36.0
env:
TRIVY_IGNOREFILE: "./.trivyignore.yaml"
TRIVY_SHOW_SUPPRESSED: 1
with:
scan-type: 'fs'
scan-ref: '.'
exit-code: "1"
ignore-unfixed: true
severity: "CRITICAL,HIGH,MEDIUM"
scanners: "vuln"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@1583d6b38d7be47f593cb472781bbb21cab4321e # v0.0.10
- name: Install protoc
run: apt-get update && apt-get -y install protobuf-compiler
- name: Check format
run: |
rustup component add rustfmt
cargo fmt -- --check
- name: Run clippy linter
run: |
rustup component add clippy
cargo clippy --all-targets --all-features -- -D warnings
- name: Install cargo extensions
uses: taiki-e/install-action@9e1e5806d4a4822de933115878265be9aaa786d9 # v2.82.2
with:
tool: cargo-deny
- name: Run cargo deny
run: cargo deny check
- name: Run tests
run: cargo test --locked --no-fail-fast