mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
32 lines
753 B
YAML
32 lines
753 B
YAML
name: Security Checks
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
sca-deps:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: aquasecurity/trivy-action@0.33.1
|
|
with:
|
|
scan-type: 'fs'
|
|
format: 'table'
|
|
severity: 'CRITICAL,HIGH'
|
|
ignore-unfixed: true
|
|
|
|
|
|
secrets-gitleaks:
|
|
if: github.event.pull_request.head.repo.fork == false
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: gitleaks/gitleaks-action@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
|
|
with:
|
|
config-path: .gitleaks.toml |