jenkins-security-scan.yml 764 B

1234567891011121314151617181920212223
  1. # More information about the Jenkins security scan can be found at the developer docs: https://www.jenkins.io/redirect/jenkins-security-scan/
  2. ---
  3. name: Jenkins Security Scan
  4. on:
  5. push:
  6. branches:
  7. - "master"
  8. - "main"
  9. pull_request:
  10. types: [opened, synchronize, reopened]
  11. workflow_dispatch:
  12. permissions:
  13. security-events: write
  14. contents: read
  15. actions: read
  16. jobs:
  17. security-scan:
  18. uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
  19. with:
  20. java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
  21. # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.