forked from jeremylong/DependencyCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.5 KB
/
pull_requests.yml
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
43
44
45
46
47
48
49
50
51
52
53
name: Pull Requests
on:
pull_request:
paths-ignore:
- '**/*.md'
- '**/*.txt'
jobs:
build:
name: Build dependency-check
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Check Maven Cache
id: maven-cache
uses: actions/[email protected]
with:
path: ~/.m2/repository/
key: mvn-repo
- name: Set up JDK 1.8
id: jdk-8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- uses: pnpm/[email protected]
with:
version: 6.0.2
- name: Build with Maven
id: build
run: |
mvn -s settings.xml clean package verify site -DreleaseTesting --no-transfer-progress --batch-mode
mvn se.bjurr.violations:violation-comments-to-github-maven-plugin:violation-comments --no-transfer-progress --batch-mode -DpullRequestId=${{ github.event.pull_request.number }} -DoAuth2Token=${{ secrets.GITHUB_TOKEN }}
- name: Archive IT test logs
id: archive-logs
uses: actions/upload-artifact@v2
with:
name: it-test-logs
retention-days: 7
path: maven/target/it/**/build.log
semgrep:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/[email protected]
- name: Semgrep
id: semgrep
uses: returntocorp/semgrep-action@v1
with:
config: p/r2c
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}