Skip to content

ci: pin checkout, setup-buildx-action, login-action +22 more to commit SHA #381

ci: pin checkout, setup-buildx-action, login-action +22 more to commit SHA

ci: pin checkout, setup-buildx-action, login-action +22 more to commit SHA #381

Workflow file for this run

name: Security Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
if: hashFiles('package.json') != ''
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '18'
- name: Install Node dependencies
if: hashFiles('package.json') != ''
run: npm ci
- name: Run npm audit
if: hashFiles('package.json') != ''
run: npm audit --audit-level=moderate
continue-on-error: true
- name: Setup Python
if: hashFiles('requirements.txt') != '' || hashFiles('pyproject.toml') != ''
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.12'
- name: Run pip-audit
if: hashFiles('requirements.txt') != '' || hashFiles('pyproject.toml') != ''
run: |
pip install pip-audit
pip-audit
continue-on-error: true
- name: Run Snyk Security Scan
uses: snyk/actions/node@9cf6ca713d71123d2d229cc3d7f145b96ea3c518 # master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high