shiftleft-analysis.yml 978 B

1234567891011121314151617181920212223242526272829303132333435
  1. # This workflow integrates Scan with GitHub's code scanning feature
  2. # Scan is a free open-source security tool for modern DevOps teams from ShiftLeft
  3. # Visit https://slscan.io/en/latest/integrations/code-scan for help
  4. name: SL Scan
  5. on:
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. # The branches below must be a subset of the branches above
  10. branches: [ master ]
  11. schedule:
  12. - cron: '16 22 * * 4'
  13. jobs:
  14. Scan-Build:
  15. # Scan runs on ubuntu, mac and windows
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v2
  19. # potentially add composer install steo here
  20. - name: Perform Scan
  21. uses: ShiftLeftSecurity/scan-action@master
  22. env:
  23. WORKSPACE: ""
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. SCAN_AUTO_BUILD: true
  26. with:
  27. output: reports
  28. # Scan auto-detects the languages.
  29. - name: Upload report
  30. uses: github/codeql-action/upload-sarif@v2
  31. with:
  32. sarif_file: reports