Example CI SAST #8
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
# 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/* |