-
Notifications
You must be signed in to change notification settings - Fork 38
43 lines (35 loc) · 920 Bytes
/
security-scan.yml
File metadata and controls
43 lines (35 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: PR Audit
on:
push:
branches: [ main, master ]
pull_request_target:
types: [ opened, synchronize ]
schedule:
- cron: '0 9 * * 1' # Weekly on Monday at 9 AM UTC
permissions:
contents: read
pull-requests: write
security-events: write
jobs:
jfrog-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Set up JFrog CLI
uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: ${{ secrets.JF_URL }}
JF_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
- name: Run JFrog Audit
run: jf audit
- name: Run Tests
run: mvn clean test -B