Merge pull request #1 from jaytmiller/migrate-rb2 #1
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: Security Scans | |
on: | |
schedule: # weekly | |
- cron: '0 0 * * 0' | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
security-scanning: | |
name: "${{ matrix.DEPLOYMENT_NAME }} -- Security" | |
runs-on: ubuntu-22.04 | |
strategy: | |
max-parallel: 5 | |
fail-fast: false | |
matrix: | |
DEPLOYMENT_NAME: [ jwebbinar, roman, tike] | |
USE_FROZEN: [ 0 ] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Set Up Environment | |
shell: bash | |
run: | | |
scripts/image-configure ${{ matrix.DEPLOYMENT_NAME }} --use-frozen ${{ matrix.USE_FROZEN }} | |
pip install -r requirements.txt | |
df -h | |
- name: Bandit Scan | |
shell: bash | |
continue-on-error: false | |
run: | | |
source setup-env | |
scripts/sscan-bandit | |
- name: Anchore Scan | |
uses: anchore/scan-action@v3 | |
with: | |
fail-build: true | |
severity-cutoff: high | |
output-format: table | |
path: deployments/${{ matrix.DEPLOYMENT_NAME }}/env-frozen |