-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (48 loc) · 1.52 KB
/
pr.yml
File metadata and controls
59 lines (48 loc) · 1.52 KB
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
54
55
56
57
58
59
name: pr
on:
pull_request:
branches:
- main
workflow_dispatch:
# Allow workflow to be triggered manually.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
detect-secrets:
name: detect-secrets
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install detect-secrets
run: |
pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@0.13.1+ibm.64.dss#egg=detect-secrets"
- name: Run detect-secrets
run: |
detect-secrets scan --update .secrets.baseline --exclude-files 'build/signing\.key\.enc'
detect-secrets -v audit --report --fail-on-unaudited --fail-on-live --fail-on-audited-real .secrets.baseline
build-test:
name: Build and Test (Java ${{ matrix.java-version }})
needs: detect-secrets
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java-version: ['11', '17']
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'maven'
- name: Build and test
run: mvn verify -fae -DskipITs --settings build/.github.settings.xml