Skip to content

Example CI SAST

Example CI SAST #8

# clone down repository with sub-modules and then build the Dockerfile to run all the tools against the code
# add a caching layer for pulling down the docker containers
name: Example CI SAST
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Build Dockerfile
run: docker build -t example-ci-sast:latest --rm .
- name: Run Dockerfile
run: docker run --rm -v "${PWD}":/app -w /app example-ci-sast:latest
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: SAST results
path: output/*