Security Scans #209
This file contains hidden or 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: | |
| # Run security checks every day at 2 AM UTC | |
| - cron: "0 2 * * *" | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - release** | |
| permissions: {} | |
| jobs: | |
| zizmor-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write # Needed to upload the results to code-scanning dashboard | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run Zizmor scan | |
| uses: open-edge-platform/geti-ci/actions/zizmor@4ec90fb54c7be053e40b9e3ecdf399cf501596ca | |
| with: | |
| scan-scope: "all" | |
| severity-level: "LOW" | |
| confidence-level: "LOW" | |
| fail-on-findings: false # reports only | |
| bandit-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write # Needed to upload the results to code-scanning dashboard | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run Bandit scan | |
| uses: open-edge-platform/geti-ci/actions/bandit@4ec90fb54c7be053e40b9e3ecdf399cf501596ca | |
| with: | |
| scan-scope: "all" | |
| severity-level: "LOW" | |
| confidence-level: "LOW" | |
| config_file: "pyproject.toml" | |
| fail-on-findings: false # reports only | |
| trivy-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write # Needed to upload the results to code-scanning dashboard | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run Trivy scan | |
| id: trivy | |
| uses: open-edge-platform/geti-ci/actions/trivy@4ec90fb54c7be053e40b9e3ecdf399cf501596ca | |
| with: | |
| scan_type: "fs" | |
| scan-scope: all | |
| severity: LOW | |
| scanners: "vuln,secret,config" | |
| format: "sarif" | |
| timeout: "15m" | |
| ignore_unfixed: "false" | |
| semgrep-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write # Needed to upload the results to code-scanning dashboard | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run Semgrep scan | |
| id: semgrep | |
| uses: open-edge-platform/geti-ci/actions/semgrep@4ec90fb54c7be053e40b9e3ecdf399cf501596ca | |
| with: | |
| scan-scope: "all" | |
| severity: "LOW" | |
| fail-on-findings: false # reports only |