Skip to content

Commit

Permalink
Add Jenkins security scan to common files (#597)
Browse files Browse the repository at this point in the history
* Add Jenkins security scan to common files

* Update common-files/.github/workflows/jenkins-security-scan.yml

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>

---------

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
  • Loading branch information
NotMyFault and timja committed Mar 2, 2023
1 parent 1f2aabc commit 57f4f5f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions common-files/.github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# More information about the Jenkins security scan can be found at the developer docs: https://www.jenkins.io/doc/developer/security/scan/

name: Jenkins Security Scan
on:
push:
branches:
- "master"
- "main"
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:

permissions:
security-events: write
contents: read
actions: read

jobs:
security-scan:
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
with:
java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
java-version: 11 # What version of Java to set up for the build.

0 comments on commit 57f4f5f

Please sign in to comment.